mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Fixed updates of the contentmanager. Not all command tests run yet.
This commit is contained in:
parent
6bc16e46cc
commit
73a5800fbf
5 changed files with 36 additions and 25 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue