app/soc/logic/models/host.py
changeset 410 2af7f84f4fc7
parent 409 9d24850db88f
child 429 e50e18936f06
equal deleted inserted replaced
409:9d24850db88f 410:2af7f84f4fc7
    39     self._name = "host"
    39     self._name = "host"
    40     self._model = soc.models.host.Host
    40     self._model = soc.models.host.Host
    41     self._keyName = key_name.nameHost
    41     self._keyName = key_name.nameHost
    42     self._skip_properties = []
    42     self._skip_properties = []
    43 
    43 
       
    44   def getKeyValues(self, entity):
       
    45     """See base.Logic.getKeyNameValues.
       
    46     """
       
    47 
       
    48     return [entity.sponsor.link_name, entity.user.link_name]
       
    49 
       
    50   def getKeyValuesFromFields(self, fields):
       
    51     """See base.Logic.getKeyValuesFromFields.
       
    52     """
       
    53 
       
    54     return [fields['sponsor'].link_name, fields['user'].link_name]
       
    55 
       
    56   def getKeyFieldNames(self):
       
    57     """See base.Logic.getKeyFieldNames
       
    58     """
       
    59 
       
    60     return ['sponsor_ln', 'user_ln']
    44 
    61 
    45 logic = Logic()
    62 logic = Logic()