Made the docstrings for objects' basetype_setup() more informative. Resolves Issue 302.
This commit is contained in:
parent
e03c303d5e
commit
21408c56cf
1 changed files with 8 additions and 8 deletions
|
|
@ -381,8 +381,8 @@ class Object(TypeClass):
|
||||||
This sets up the default properties of an Object,
|
This sets up the default properties of an Object,
|
||||||
just before the more general at_object_creation.
|
just before the more general at_object_creation.
|
||||||
|
|
||||||
Don't change this, instead edit at_object_creation() to
|
You normally don't need to change this unless you change some fundamental
|
||||||
overload the defaults (it is called after this one).
|
things like names of permission groups.
|
||||||
"""
|
"""
|
||||||
# the default security setup fallback for a generic
|
# the default security setup fallback for a generic
|
||||||
# object. Overload in child for a custom setup. Also creation
|
# object. Overload in child for a custom setup. Also creation
|
||||||
|
|
@ -722,8 +722,10 @@ class Character(Object):
|
||||||
"""
|
"""
|
||||||
Setup character-specific security
|
Setup character-specific security
|
||||||
|
|
||||||
Don't change this, instead edit at_object_creation() to
|
You should normally not need to overload this, but if you do, make
|
||||||
overload the defaults (it is called after this one).
|
sure to reproduce at least the two last commands in this method (unless
|
||||||
|
you want to fundamentally change how a Character object works).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
super(Character, self).basetype_setup()
|
super(Character, self).basetype_setup()
|
||||||
self.locks.add(";".join(["get:false()", # noone can pick up the character
|
self.locks.add(";".join(["get:false()", # noone can pick up the character
|
||||||
|
|
@ -790,8 +792,6 @@ class Room(Object):
|
||||||
Simple setup, shown as an example
|
Simple setup, shown as an example
|
||||||
(since default is None anyway)
|
(since default is None anyway)
|
||||||
|
|
||||||
Don't change this, instead edit at_object_creation() to
|
|
||||||
overload the defaults (it is called after this one).
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
super(Room, self).basetype_setup()
|
super(Room, self).basetype_setup()
|
||||||
|
|
@ -878,8 +878,8 @@ class Exit(Object):
|
||||||
"""
|
"""
|
||||||
Setup exit-security
|
Setup exit-security
|
||||||
|
|
||||||
Don't change this, instead edit at_object_creation() to
|
You should normally not need to overload this - if you do make sure you
|
||||||
overload the default locks (it is called after this one).
|
include all the functionality in this method.
|
||||||
"""
|
"""
|
||||||
super(Exit, self).basetype_setup()
|
super(Exit, self).basetype_setup()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue