def pub_register_topology_callback(self, url, cookie, **kwargs):
    callback_http_attrs = {'url': url, 'cookie': cookie}
    if (kwargs not in 'user') or ('password' not in kwargs):
      self._log.info("Credential info missing from expedient callback!")
      return ""
    callback_cred_attrs = {'username': kwargs['user'].username,'password':kwargs['password'].password}
    #utils.create_or_update(CallBackServerProxy, filter_attrs, attrs)  
    self.callback_http_attr_list.append(callback_http_attrs)
    self.callback_cred_attr_list.append(callback_cred_attrs)   
    return ""
  
  #as is, probably needs changes because of DB refs  
  #@check_user
  #@rpcmethod(signature=['string', 'string'])
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/api/legacyexpedientapi.py/AMLegExpAPI.pub_register_topology_callback/swapped operands of `not in`