Have you looked at the TaskQueue menu of the dev_server admin page.
You must start the Task yourself.

2009/11/24 deostroll <deostr...@gmail.com>:
> I am doing appengine development from my local machine. (Winxp). The
> following code is supposed to add something to the taskqueue. I assume
> that one I add I am supposed to see default messages getting logged in
> the console, but nothing of the sort happens...am I doing something
> wrong?
>
> class showData(webapp.RequestHandler):
>        def get(self):
>                if users.get_current_user():
>                        nick =  users.get_current_user().nickname()
>                        import uuid
>                        guid = str(uuid.uuid1()).replace('-','')
>                        api = '<script type="text/javascript">var key=\'' + 
> guid + '\';</
> script>'
>                        data = {'api_key' : api}
>
>                        stocks = db.GqlQuery("select * from Portfolio where 
> name = '" +
> nick + "'")
>
>                        for x in stocks:
>                                t = ScripTracker(key_name=guid+str(x.scripcd))
>                                t.api_key = guid
>                                t.scripcd = str(x.scripcd)
>                                t.status = 'working'
>                                t.trials = 0
>                                t.put()
>                                taskqueue.add(url='/stockworker', 
> params={'key':guid,
> 'scripcd':x.scripcd})
>
>                        path = os.path.join(os.path.dirname(__file__), 
> 'show.htm')
>                        self.response.out.write(template.render(path, data))
>                else:
>                        self.redirect('/')
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to