Started to go through the unittest errors, fixing player creation.

This commit is contained in:
Griatch 2015-01-02 19:01:09 +01:00
parent 0b01df1fcc
commit 1130dc5757
11 changed files with 58 additions and 60 deletions

View file

@ -535,9 +535,9 @@ class DefaultPlayer(PlayerDB):
# this will only be set if the utils.create_player
# function was used to create the object.
cdict = self._createdict
if "locks" in cdict:
if cdict.get("locks"):
self.locks.add(cdict["locks"])
if "permissions" in cdict:
if cdict.get("permissions"):
permissions = cdict["permissions"]
del self._createdict