mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Some optimizations towards speeding up getting the contents of a location.
This commit is contained in:
parent
1dee271fc7
commit
cc88d38ab6
2 changed files with 10 additions and 9 deletions
|
|
@ -885,10 +885,9 @@ class TypedObject(SharedMemoryModel):
|
|||
# typeclass' __getattribute__, since that one would
|
||||
# try to look back to this very database object.)
|
||||
typeclass = _GA(self, 'typeclass')
|
||||
if typeclass:
|
||||
return _GA(typeclass, propname)
|
||||
else:
|
||||
raise AttributeError
|
||||
# will raise AttributeError also if typeclass was malformed
|
||||
return _GA(typeclass, propname)
|
||||
|
||||
#@property
|
||||
_dbid_cache = None
|
||||
def __dbid_get(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue