Some optimizations towards speeding up getting the contents of a location.

This commit is contained in:
Griatch 2012-08-19 11:45:13 +02:00
parent 1dee271fc7
commit cc88d38ab6
2 changed files with 10 additions and 9 deletions

View file

@ -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):