You're right - since it was a constant anyway I could just place the 
variable inside the task itself :-)

Thank you for your help!

Am Sonntag, 28. April 2013 20:11:39 UTC+2 schrieb Niphlod:
>
> If you're using the appadmin form you need to know what's the value of it, 
> so you can pass it explicitely, e.g. ["2"].
> I'm assuming the setting is global (i.e. is fixed for your app) so why 
> don't you just use it inside your task ?
>
> e.g. in models you have
> settings.case_root = 2
> .....
> def dosomething():
>       print settings.case_root 
>       return settings.case_root
>
>
>
> When you queue the "dosomething" function, settings.case_root is available 
> on the task environment (so you can skip passing it explicitely)
>
> On Sunday, April 28, 2013 7:54:43 PM UTC+2, D. wrote:
>>
>>
>> the value of settings.case_root
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to