# HG changeset patch # User Sverre Rabbelier # Date 1228348113 0 # Node ID d7b643255255c9a015648e9d8748051da455d58f # Parent 5a381b290691f4714615a1f52bbdf1984069fa0d Change the key name to not include entity type This allows for direct lookup by scope_path, rather than having to do more complex things. Patch by: Sverre Rabbelier diff -r 5a381b290691 -r d7b643255255 app/soc/logic/models/base.py --- a/app/soc/logic/models/base.py Wed Dec 03 23:48:10 2008 +0000 +++ b/app/soc/logic/models/base.py Wed Dec 03 23:48:33 2008 +0000 @@ -108,7 +108,7 @@ """Returns the KeyName constructed from kwargs for this type of entity. The KeyName is in the following format: - entity.name:::...: + ::...: """ # get the KeyFieldNames for this entity @@ -132,7 +132,7 @@ keyvalues.append(kwargs[key_field_name]) # construct the KeyName in the appropriate format - return "%s:%s" % (self._name, '/'.join(keyvalues)) + return '/'.join(keyvalues) def getFullModelClassName(self): """Returns fully-qualified model module.class name string.