Hello. I have a question regarding paste.progress UploadProgressReporter. I have googled for usage of this class, but almost no info can be obtained this way. How one can use UploadProgressReporter class?
I have created lib/uploadmon.py with help from this post: http://groups.google.pl/group/pylons-discuss/msg/5bd19887dcf3a86c? Then I have added to config/middleware.py this line: app = Monitor(app, threshold = 1024) So far so good. I know that monitoring works, because I can see the number of bytes received when I add print statement . UploadProgressReporter needs monitor instance as a parameter. I want to add action to some controller and then return the result of current file upload. I will need it for ajax then. But there is a problem. How can I get this monitor instance that is applied in config/middleware.py within the controller method? Thanks in advance, Karol Tomala --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
