On Dec 4, 4:21 am, AML <[email protected]> wrote:
> Hi,
>
> We've got a simple Pylons application where users register through
> form, and at the end of the process we render a couple of templates
> and fire them out as emails. I need to allow a CSV upload of bulk
> registrations taken offline, and because it'll take a while I'd like
> to quickly accept the upload in the controller, then add it to a Queue
> to be handled by a worker thread in the background
>
> This all works pretty well, except the worker thread can't use globals
> like 'c' - I get StackedProxyObject errors.
>
> Any advice?

You might be able to pass the current `c`, etc to the worker.
`c.current_obj()` or something like that.

--

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.


Reply via email to