[Grok-dev] Initialization/Background Code? Search the grok-dev list?
Kenneth Miller
xkenneth at gmail.com
Sat Jun 7 16:59:29 EDT 2008
All,
Is there a quick way to search the grok-dev mailing list? It's a
bit hard to open it up by month and check out the subjects..
Is there anywhere to put initialization code into an app or view?
I've got a bit of code that parses some local files under the static
directory, and I'm not sure where to place the code to do this. The
data needs to be available to a particular view and it's associated
viewlets, and *should* be updated whenever the view is called.
How can I create a new thread for constant background updates? I want
to access information from the PyPI, but the rate at which I need
information is too fast to call the PyPIs XML-RPC methods in order to
retrieve the information. My solution was to keep a local "copy" of
the PyPI index for quick access, but I need a thread or something that
updates that local copy at a regular interval (every hour or so) and
doesn't depend on a View to be called.
Thanks for your time.
Regards,
Kenneth Miller
More information about the Grok-dev
mailing list