Put up a warning about not using BaseObject.at_init() at this time (it's not called, as per issue 188). Also removed the deprecated at_cache() hook (it doesn't work anymore now that the caching system is much more efficient and only caches once).

This commit is contained in:
Griatch 2011-09-15 10:46:41 +02:00
parent f1d743f14c
commit 1995f61d46
5 changed files with 18 additions and 23 deletions

View file

@ -77,6 +77,8 @@ class Object(TypeClass):
def at_init(self):
"""
OBS: CURRENTLY NOT CALLED!
This is always called whenever this
object initiated -- both when the object
is first created as well as after each restart.
@ -96,14 +98,6 @@ class Object(TypeClass):
"""
pass
def at_cache(self):
"""
Called whenever this object is cached to the idmapper backend.
This is the place to put eventual reloads of non-persistent attributes
you saved in the at_server_reload() below.
"""
pass
def at_server_reload(self):
"""
This hook is called whenever the server is shutting down for restart/reboot.