Can log in, still errors all over the place due to missing .typeclass/.dbobj
This commit is contained in:
parent
b839614259
commit
3d557f6bf9
3 changed files with 8 additions and 8 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -221,9 +221,9 @@ class DefaultPlayer(PlayerDB):
|
|||
return False
|
||||
# do the disconnect, but only if we are the last session to puppet
|
||||
obj.at_pre_unpuppet()
|
||||
obj.dbobj.sessid.remove(sessid)
|
||||
if not obj.dbobj.sessid.count():
|
||||
del obj.dbobj.player
|
||||
obj.sessid.remove(sessid)
|
||||
if not obj.sessid.count():
|
||||
del obj.player
|
||||
obj.at_post_unpuppet(self, sessid=sessid)
|
||||
session.puppet = None
|
||||
session.puid = None
|
||||
|
|
@ -244,7 +244,6 @@ class DefaultPlayer(PlayerDB):
|
|||
player's end.
|
||||
|
||||
sessid - return character connected to this sessid,
|
||||
character - return character if connected to this player, else None.
|
||||
|
||||
"""
|
||||
session = self.get_session(sessid)
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ class TypedObject(SharedMemoryModel):
|
|||
"""
|
||||
Returns the object's dbref on the form #NN.
|
||||
"""
|
||||
return "#%s" % GA(self, "_TypedObject__dbid_get")()
|
||||
return "#%s" % self.dbid
|
||||
|
||||
def __dbref_set(self):
|
||||
raise Exception("dbref cannot be set!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue