didn't figure this out so have changed (rather awkwardly) to using cron. Would be interested to hear if anyone else has better luck.
On Mar 10, 12:00 am, Richard <[email protected]> wrote: > I guess I could use gql directly to access the database, but I would > prefer to have a single syntax for accessing the database. > > (controller of model -> controller or model) > > On Mar 9, 10:25 pm, Richard <[email protected]> wrote: > > > > > Actually it seems only module functions can be deferred. If I try > > deferring a controller of model function then I get this error: > > PicklingError: Can't pickle <function test at 0xa743ca4>: it's not > > found as __main__.test > > > However I need my deferred function to interact with the database. Any > > ideas?? > > > On Mar 8, 3:44 pm, Richard <[email protected]> wrote: > > > > found they need to go in modules/models rather than controllers. > > > However one model function can't defer another model function... > > > > On Mar 8, 12:49 pm, waTR <[email protected]> wrote: > > > > > I too am interested in this... > > > > > On Mar 7, 2:44 pm, Richard <[email protected]> wrote: > > > > > > I am adding some background work to my web2py GAE app with the > > > > > deferred > > > > > library:http://code.google.com/appengine/articles/deferred.html > > > > > > As the article suggests I have added this to app.yaml: > > > > > - url: /_ah/queue/deferred > > > > > script: $PYTHON_LIB/google/appengine/ext/deferred/deferred.py > > > > > login: admin > > > > > > The article also says "You can't call a method in the request handler > > > > > module" - what does that correspond to in web2py? > > > > > > Any other advice about using Deferred / Task Queues through web2py > > > > > would be welcome. > > > > > > Richard -- You received this message because you are subscribed to the Google Groups "web2py-users" 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/web2py?hl=en.

