Minor optimizations and some fixes to the dummyrunner.

This commit is contained in:
Griatch 2012-08-22 22:34:43 +02:00
parent 5117bd2a0a
commit f68523cc22
3 changed files with 57 additions and 40 deletions

View file

@ -884,9 +884,7 @@ class TypedObject(SharedMemoryModel):
# (we make sure to not incur a loop by not triggering the
# typeclass' __getattribute__, since that one would
# try to look back to this very database object.)
typeclass = _GA(self, 'typeclass')
# will raise AttributeError also if typeclass was malformed
return _GA(typeclass, propname)
return _GA(_GA(self, 'typeclass'), propname)
#@property
_dbid_cache = None