equal
deleted
inserted
replaced
106 |
106 |
107 def _keyName(self, **kwargs): |
107 def _keyName(self, **kwargs): |
108 """Returns the KeyName constructed from kwargs for this type of entity. |
108 """Returns the KeyName constructed from kwargs for this type of entity. |
109 |
109 |
110 The KeyName is in the following format: |
110 The KeyName is in the following format: |
111 entity.name:<key_value1>:<key_value2>:...:<key_valueN> |
111 <key_value1>:<key_value2>:...:<key_valueN> |
112 """ |
112 """ |
113 |
113 |
114 # get the KeyFieldNames for this entity |
114 # get the KeyFieldNames for this entity |
115 key_field_names = self.getKeyFieldNames() |
115 key_field_names = self.getKeyFieldNames() |
116 |
116 |
130 keyvalues = [] |
130 keyvalues = [] |
131 for key_field_name in key_field_names: |
131 for key_field_name in key_field_names: |
132 keyvalues.append(kwargs[key_field_name]) |
132 keyvalues.append(kwargs[key_field_name]) |
133 |
133 |
134 # construct the KeyName in the appropriate format |
134 # construct the KeyName in the appropriate format |
135 return "%s:%s" % (self._name, '/'.join(keyvalues)) |
135 return '/'.join(keyvalues) |
136 |
136 |
137 def getFullModelClassName(self): |
137 def getFullModelClassName(self): |
138 """Returns fully-qualified model module.class name string. |
138 """Returns fully-qualified model module.class name string. |
139 """ |
139 """ |
140 return '%s.%s' % (self._model.__module__, self._model.__name__) |
140 return '%s.%s' % (self._model.__module__, self._model.__name__) |