mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
Made aliases work with the new handler. The location.contents updated is not working yet - this causes locational information to not be available until objects and manually initialized (e.g. by calling examine #dbref)
This commit is contained in:
parent
45706f598a
commit
6bc16e46cc
13 changed files with 236 additions and 76 deletions
|
|
@ -33,6 +33,7 @@ from django.contrib.contenttypes.models import ContentType
|
|||
from src.scripts.manager import ScriptManager
|
||||
|
||||
__all__ = ("ScriptDB",)
|
||||
_SA = object.__setattr__
|
||||
|
||||
|
||||
#------------------------------------------------------------
|
||||
|
|
@ -106,8 +107,8 @@ class ScriptDB(TypedObject):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ScriptDB, self).__init__(*args, **kwargs)
|
||||
_SA(self, "tags", TagHandler(self, "script"))
|
||||
_SA(self, "aliases", AliasHandler(self, "script"))
|
||||
_SA(self, "tags", TagHandler(self, category_prefix="script_"))
|
||||
_SA(self, "aliases", AliasHandler(self, category_prefix="script_"))
|
||||
|
||||
|
||||
# Wrapper properties to easily set database fields. These are
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue