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 <richar...@gmail.com> 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 <richar...@gmail.com> 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 <r...@devshell.org> wrote:
>
> > > I too am interested in this...
>
> > > On Mar 7, 2:44 pm, Richard <richar...@gmail.com> 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to