On Tue, Dec 2, 2008 at 8:38 AM, Helio Pereira <[EMAIL PROTECTED]> wrote: > > Hi all > > I have this in my controller to control all important downloads in > tg2: http://paste.turbogears.org/paste/15338 > Is this the best way to do it? > > Many thanks for all, > Helio Pereira > that works although you may want to take a look at paste.fileapp, as it is more robust sending headers for modified and such. Here is an example. http://paste.chrisarndt.de/paste/99e8dbf02a4e4af5bd365ef722de2c69?wrap=no
docs for fileapp are thin http://pythonpaste.org/modules/fileapp.html but if you look at the code it's far more robust than your custom implementation. You may also want to take a look at DirectoryApp. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

