args and vars accept strings that are json representation of a list (args) or a dictionary (vars). You can pass whatever you need under the condition that is json-encoded. If you're trying to pass a variable, then you must evaluate it before queueing the task, or your task must "extract" the variable at runtime.
On Sunday, April 28, 2013 6:50:52 PM UTC+2, D. wrote: > > I'm trying to schedule a task using appadmin. > This works fine as long as I'm not passing in any arguments or as long as > the arguments are static: > i.e. ["/srv"] --> works ok > > If I want to use a variable instead I get an error: > i.e. [settings.case_root] --> form-error: invalid json > > What's to correct/jsonic way to pass a variable as an argument? > > Thanks for your help! > D. > -- --- 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.

