Konstantin Alexandrov wrote:
> Hello.
> Is this possible with Pylons to change static files path in
> BaseController's __before__() method each time on request?
I haven't followed any of this, but I thought I'd mention that you can do:
def action(self):
file_path = (calculate)
app = paste.fileapp.FileApp(file_path)
return app(self.environ, self.start_response)
At least, I think that's how you dispatch to a WSGI application in an
action? Anyway, you still get ranges, conditional responses, etc.
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---