Fix lockhandler singleton implmentation with a dummyobj
This commit is contained in:
parent
c9ecd3b997
commit
2f985c882b
1 changed files with 5 additions and 1 deletions
|
|
@ -544,7 +544,11 @@ class LockHandler(object):
|
||||||
# convenience access function
|
# convenience access function
|
||||||
|
|
||||||
# dummy to be able to call check_lockstring from the outside
|
# dummy to be able to call check_lockstring from the outside
|
||||||
_LOCK_HANDLER = LockHandler()
|
|
||||||
|
class _ObjDummy:
|
||||||
|
lock_storage = ''
|
||||||
|
|
||||||
|
_LOCK_HANDLER = LockHandler(_ObjDummy())
|
||||||
|
|
||||||
|
|
||||||
def check_lockstring(self, accessing_obj, lockstring, no_superuser_bypass=False,
|
def check_lockstring(self, accessing_obj, lockstring, no_superuser_bypass=False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue