Fixes @locks to block self-escalation. Fixed a few bugs in @reload that caused it to reload also unsafe modules.

This commit is contained in:
Griatch 2011-03-17 22:28:30 +00:00
parent bccd84e480
commit de28b2d575
4 changed files with 22 additions and 6 deletions

View file

@ -319,7 +319,7 @@ class LockHandler(object):
else:
return default
def check_lockstring(self, accessing_obj, accessed_obj, lockstring):
def check_lockstring(self, accessing_obj, lockstring):
"""
Do a direct check against a lockstring ('atype:func()..'), without any
intermediary storage on the accessed object (this can be left