mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
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:
parent
db512cbbf5
commit
9af9f94fa0
9 changed files with 465 additions and 584 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue