Fixed updates of the contentmanager. Not all command tests run yet.

This commit is contained in:
Griatch 2013-07-12 22:08:15 +02:00
parent 6bc16e46cc
commit 73a5800fbf
5 changed files with 36 additions and 25 deletions

View file

@ -232,10 +232,10 @@ class Attribute(SharedMemoryModel):
#
def __str__(self):
return smart_str("%s(%s)" % (self.key, self.id))
return smart_str("%s(%s)" % (_GA(self, "db_key", _GA(self, "id"))))
def __unicode__(self):
return u"%s(%s)" % (self.key, self.id)
return u"%s(%s)" % (_GA(self, "db_key", _GA(self, "id")))
def access(self, accessing_obj, access_type='read', default=False):
"""
@ -739,10 +739,10 @@ class TypedObject(SharedMemoryModel):
return other and hasattr(other, 'dbid') and self.dbid == other.dbid
def __str__(self):
return smart_str("%s" % self.key)
return smart_str("%s" % _GA(self, "db_key"))
def __unicode__(self):
return u"%s" % self.key
return u"%s" % _GA(self, "db_key")
def __getattribute__(self, propname):
"""