Moved Players over to the new proxy system, made the start-hook called by the save-signal system into at_first_save()

This commit is contained in:
Griatch 2014-12-25 14:43:43 +01:00
parent db512cbbf5
commit 9af9f94fa0
9 changed files with 465 additions and 584 deletions

View file

@ -840,7 +840,7 @@ class DefaultObject(ObjectDB):
except AttributeError:
return False
def at_instance_creation(self):
def at_first_save(self):
"""
This is called by the typeclass system whenever an instance of
this class is saved for the first time. It is a generic hook
@ -874,6 +874,7 @@ class DefaultObject(ObjectDB):
updates.append("db_destination")
if updates:
self.save(update_fields=updates)
if cdict["permissions"]:
self.permissions.add(cdict["permissions"])
if cdict["locks"]:
@ -883,6 +884,7 @@ class DefaultObject(ObjectDB):
if cdict["location"]:
cdict["location"].at_object_receive(self, None)
self.at_after_move(None)
del self._createdict
self.basetype_posthook_setup()