I would write a custom paste command to do it, then schedule that as a cron job. There doesn't seem to be any reason to make that part of the request/response cycle.
read up on this stuff http://pythonpaste.org/script/developer.html and maybe look at how pylons does it. http://bitbucket.org/bbangert/pylons/src/tip/pylons/commands.py so you would have a command line similar to this. $ paste purge-old-files production.ini On Feb 8, 6:33 am, morellik <[email protected]> wrote: > Dear all, > > is it possible to integrate in pylons a controller that do something > in a predefinite time? > I wrote an application that permit to our user to share files. So I > would that each, e.g., two days a method check for files older than > two days and remove these from disk and database. > > Is it possible? > > Thanks in advance > Enrico -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
