Can log in, still errors all over the place due to missing .typeclass/.dbobj

This commit is contained in:
Griatch 2014-12-28 20:00:31 +01:00
parent b839614259
commit 3d557f6bf9
3 changed files with 8 additions and 8 deletions

View file

@ -289,8 +289,7 @@ class DefaultObject(ObjectDB):
return self.db_player and self.db_player.is_superuser \
and not self.db_player.attributes.get("_quell")
@property
def contents(self):
def contents_get(self, exclude=None):
"""
Returns the contents of this object, i.e. all
objects that has this object set as its location.
@ -298,7 +297,9 @@ class DefaultObject(ObjectDB):
exclude is one or more objects to not return
"""
return ObjectDB.objects.get_contents(self)
return ObjectDB.objects.get_contents(self, excludeobj=exclude)
contents = property(contents_get)
@property
def exits(self):