Fixed the *_family manager methods to correctly return typeclasses subclassed at any depth.

This commit is contained in:
Griatch 2014-12-21 23:08:20 +01:00
parent b244d70e16
commit 554d1b9834
2 changed files with 13 additions and 5 deletions

View file

@ -230,8 +230,7 @@ class ObjectDB(TypedObject):
# location getsetter
def __location_get(self):
"Get location"
loc = _GA(_GA(self, "dbobj"), "db_location")
return _GA(loc, "typeclass") if loc else loc
return self.db_location
def __location_set(self, location):
"Set location, checking for loops and allowing dbref"