From 740de269ff6a7ccc08cc24cfa00becc507e788d0 Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 2 Sep 2019 23:01:44 +0200 Subject: [PATCH] Fix leftover errors in game template object doctstring --- evennia/game_template/typeclasses/objects.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/evennia/game_template/typeclasses/objects.py b/evennia/game_template/typeclasses/objects.py index 721385b205..b8f14dac51 100644 --- a/evennia/game_template/typeclasses/objects.py +++ b/evennia/game_template/typeclasses/objects.py @@ -34,11 +34,8 @@ class Object(DefaultObject): key (string) - name of object name (string)- same as key - aliases (list of strings) - aliases to the object. Will be saved to - database as AliasDB entries but returned as strings. dbref (int, read-only) - unique #id-number. Also "id" can be used. date_created (string) - time stamp of object creation - permissions (list of strings) - list of permission strings account (Account) - controlling account (if any, only set together with sessid below) @@ -47,8 +44,6 @@ class Object(DefaultObject): Sessions directly. location (Object) - current location. Is None if this is a room home (Object) - safety start-location - sessions (list of Sessions, read-only) - returns all sessions connected - to this object has_account (bool, read-only)- will only return *connected* accounts contents (list of Objects, read-only) - returns all objects inside this object (including exits) @@ -59,16 +54,20 @@ class Object(DefaultObject): * Handlers available + aliases - alias-handler: use aliases.add/remove/get() to use. + permissions - permission-handler: use permissions.add/remove() to + add/remove new perms. locks - lock-handler: use locks.add() to add new lock strings - db - attribute-handler: store/retrieve database attributes on this - self.db.myattr=val, val=self.db.myattr - ndb - non-persistent attribute handler: same as db but does not create - a database entry when storing data scripts - script-handler. Add new scripts to object with scripts.add() cmdset - cmdset-handler. Use cmdset.add() to add new cmdsets to object nicks - nick-handler. New nicks with nicks.add(). sessions - sessions-handler. Get Sessions connected to this object with sessions.get() + attributes - attribute-handler. Use attributes.add/remove/get. + db - attribute-handler: Shortcut for attribute-handler. Store/retrieve + database attributes using self.db.myattr=val, val=self.db.myattr + ndb - non-persistent attribute handler: same as db but does not create + a database entry when storing data * Helper methods (see src.objects.objects.py for full headers)