Moving script_parent to a field on the object model. This is critical enough to warrant it being there instead of in an attribute. Minor changes here and there.

NOTE: This update adds a field, delete your evennia.db3 or manually add a NOT NULL 'script_link' charfield(255).
This commit is contained in:
Greg Taylor 2008-12-16 04:28:57 +00:00
parent bd3d195d5b
commit 9a166ba024
5 changed files with 24 additions and 11 deletions

View file

@ -28,7 +28,7 @@ def show_cached_scripts(command):
for script in cache_dict.keys():
retval += "\n " + script
retval += "\n" + "-" * 78 + "\n"
retval += "%d cached parents." % len(cache_dict)
retval += "%d cached parents" % len(cache_dict)
session.msg(retval)
def cmd_parent(command):
@ -43,3 +43,5 @@ def cmd_parent(command):
if "clearcache" in command.command_switches:
clear_cached_scripts(command)
return