Added weak reverse references from all handlers.

This commit is contained in:
Griatch 2014-05-10 17:12:49 +02:00
parent 4e3789cede
commit 0030530021
6 changed files with 20 additions and 22 deletions

View file

@ -7,7 +7,7 @@ All commands in Evennia inherit from the 'Command' class in this module.
import re
from src.locks.lockhandler import LockHandler
from src.utils.utils import is_iter, fill
from src.utils.utils import is_iter, fill, LazyLoadHandler
def _init_command(mcs, **kwargs):
@ -155,7 +155,7 @@ class Command(object):
overloading evential same-named class properties."""
if kwargs:
_init_command(self, **kwargs)
self.lockhandler = LockHandler(self)
self.lockhandler = LazyLoadHandler(self, "lockhandler", LockHandler)
def __str__(self):
"Print the command"