equal
deleted
inserted
replaced
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() |