On Jun 19, 2012, at 2:08 PM, Derek wrote: > Look in main.py for the httpserver class. you could handle the cleanup in the > stop function, or you could look at widget.py and add a line after the start > server function to do the cleanup.
Those are relevant only if you're using Rocket, right? If I wanted to hack gluon, I'd do something when main is imported, I think. > > On Friday, June 8, 2012 2:04:17 PM UTC-7, Jonathan Lundell wrote: > On Jun 8, 2012, at 12:49 PM, Derek wrote: >> Well, as an academic exercise, to recognize a user-initiated restart, i'd >> hook into the shutdown function to manage clearing the cache and all that. > > I didn't know there was one.