Added weak reverse references from all handlers.
This commit is contained in:
parent
4e3789cede
commit
0030530021
6 changed files with 20 additions and 22 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue