mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
lockhandler.get() returned on the wrong format. Now returns the lockstring as the API specifies. Resolves Issue 282.
This commit is contained in:
parent
532cbc5fb6
commit
d80daccb70
2 changed files with 6 additions and 5 deletions
|
|
@ -300,9 +300,11 @@ class LockHandler(object):
|
|||
self.add(old_lockstring, log_obj)
|
||||
raise
|
||||
|
||||
def get(self, access_type):
|
||||
"get the lockstring of a particular type"
|
||||
return self.locks.get(access_type, None)
|
||||
def get(self, access_type=None):
|
||||
"get the full lockstring or the lockstring of a particular access type."
|
||||
if access_type:
|
||||
return self.locks.get(access_type, ["","",""])[2]
|
||||
return str(self)
|
||||
|
||||
def delete(self, access_type):
|
||||
"Remove a lock from the handler"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue