Ok seems like I got it again is it not '_ah/queue/default'.. will have to
got through the documentation of appengine I believe.. Sorry again for the
trouble

On Sun, Sep 26, 2010 at 12:23 AM, b vivek <[email protected]> wrote:

> Sorry for that but I was able to solve it. I had missed to create the db
> instance.
> By the way I needed a little understanding here. It talks about requesting
> a dummy url every 10 secs to keep the app fresh in cache. Digging into
> gaehandler.py leads me to believe that this is where the action takes
> place:-
>
> def wsgiapp(env, res):
>     """Return the wsgiapp"""
>     if env['PATH_INFO'] == '/_ah/queue/default':
>         if KEEP_CACHED:
>             delta = datetime.timedelta(seconds=10)
>             taskqueue.add(eta=datetime.datetime.now() + delta)
>         res('200 OK',[('Content-Type','text/plain')])
>         return ['']
>     env['PATH_INFO'] = env['PATH_INFO'].encode('utf8')
>     return gluon.main.wsgibase(env, res)
>
> However I wanted to know if this dummy url is a functioanlity provided by
> appengine or does web2py invoke any such dummy url
>
> On Sun, Sep 26, 2010 at 12:01 AM, b vivek <[email protected]> wrote:
>
>> So this is what I did:-
>> 1. I decided to use mecache to store sessions and modified my db.py file
>> as below:-
>> if request.env.web2py_runtime_gae:
>>     from gluon.contrib.memdb import MEMDB
>>     from google.appengine.api.memcache import Client
>>     session.connect(request, response, db = MEMDB(Client()))
>>
>> 2. I also went to gaehandler.py and changed KEEP_CACHED=TRUE , which as
>> per the docs is supposed to "request a dummy url every 10secs to force
>> caching app"
>>
>> It all worked fine on devappserver. However After I deploy it.. I get this
>> Internal errorTicket issued: 
>> unknown<http://travpartner.appspot.com/admin/default/ticket/unknown>
>>
>> Am I doing something really naive!
>>
>
>

Reply via email to