Hello;

I am writing a file upload/download utility using TurboGears. This
utility is meant to support the transfer of very large files, and I
would like to take more direct control of the HTTP data transfer process
than waiting for CherryPy to process it for me.  In other words, I want
to switch off automatic processing of the POST request body for a
specific method, as to read the data with my own code.

I have tried a solution in pure CherryPy, in which I attached a filter
to the root controller, and if cherrypy.request.path matched the name of
the method, setting cherrypy.request.processRequestBody to False. The
method in question would then read cherrypy.request.rfile at its own
pace. This worked. 

I have been unable to replicate this in my TurboGears project, as it
uses the identity framework, and whenever I add a line to the object like
    _cpFilterList = [ StreamFilter()]
this stops identity from working, and it dies with an "identity not
available" exception.

What exactly does identity do to my controller that is interfered with
when I add filters? (_cpFilterList was undefined before I defined it.)
Is there a way to allow the two to coexist?

Thanks,

Andrew Bulhak

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to