#NEWLINE# def save( self ) : #NEWLINE# #INDENT# '\n        Save ticker_storage as a serialized string into a temporary\n        ServerConf field. Whereas saving is done on the fly, if called\n        by server when it shuts down, the current timer of each ticker\n        will be saved so it can start over from that point.\n\n        ' #NEWLINE# if self . ticker_storage : #NEWLINE# #INDENT# start_delays = dict ( ( ( interval , ticker . task . next_call_time ( ) ) for ( interval , ticker ) in self . ticker_pool . tickers . items ( ) ) ) #NEWLINE# for ( store_key , ( args , kwargs ) ) in self . ticker_storage . items ( ) : #NEWLINE# #INDENT# interval = store_key [ 1 ] #NEWLINE# kwargs [ '_start_delay' ] = start_delays . get ( interval , None ) #NEWLINE# #UNINDENT# ServerConfig . objects . conf ( key = self . save_name , value = dbserialize ( self . ticker_storage ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ServerConfig . objects . conf ( key = self . save_name , delete = True )