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

@ -74,10 +74,10 @@ _SA = object.__setattr__
# signal receivers. Assigned in __new__
def post_save(sender, instance, created, **kwargs):
"""
Is called Receive a signal just after the object is saved.
Receives a signal just after the object is saved.
"""
if created:
instance.at_instance_creation()
instance.at_first_save()
#TODO - put OOB handler here?
@ -363,7 +363,8 @@ class TypedObject(SharedMemoryModel):
self.nattributes.clear()
if run_start_hooks:
self.at_instance_creation()
# fake this call to mimic the first save
self.at_first_save()
#
# Lock / permission methods