Contrib: Added chargen module, showing a simple example of creating a character from inside the game.

This commit is contained in:
Griatch 2011-11-06 22:28:24 +01:00
parent 703accdd60
commit 86f76d0d08
3 changed files with 200 additions and 4 deletions

View file

@ -69,11 +69,11 @@ class ObjectManager(TypedObjectManager):
return self.get_object_with_user(dbref)
@returns_typeclass_list
def get_objs_with_key_and_typeclass(oname, otypeclass_path):
def get_objs_with_key_and_typeclass(self, oname, otypeclass_path):
"""
Returns objects based on simultaneous key and typeclass match.
"""
return self.filter(db_key__iexact=oname).filter(db_typeclass_path_exact=otypeclass_path)
return self.filter(db_key__iexact=oname).filter(db_typeclass_path__exact=otypeclass_path)
# attr/property related