app/soc/logic/models/base.py
changeset 2190 399fc9411abc
parent 2161 3b5e0e0880cd
child 2203 e2c6e6722d69
equal deleted inserted replaced
2189:8c9ab031a6b3 2190:399fc9411abc
   161 
   161 
   162     Args:
   162     Args:
   163       fields: the dict from which to extract the key values
   163       fields: the dict from which to extract the key values
   164     """
   164     """
   165 
   165 
   166     if not all( (i in fields for i in ['scope_path', 'link_id']) ):
   166     if ('scope_path' not in fields) or ('link_id' not in fields):
   167       raise InvalidArgumentError
   167       raise InvalidArgumentError
   168 
   168 
   169     return [fields['scope_path'], fields['link_id']]
   169     return [fields['scope_path'], fields['link_id']]
   170 
   170 
   171   def getKeyFieldNames(self):
   171   def getKeyFieldNames(self):