[web2py] Re: Clear memcache on GAE

2010-08-13 Thread Jérémie
wow, thanks for that investigation... it works well for the delete statement (which is what i needed) just for information, the "get" statement returns : "A server error occured. Please contact the administrator.". Thank you Massimo for helping me, regards, -- Jérémie On 13 août, 12:11, mdi

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread mdipierro
Now I see the problem. There is a little incompatibility between the way get(), set(),and delete() works in web2py between GAE and non-GAE. On GAE (gluon/contrib/gae_memcache.py cache.memcache('time',lambda:time.ctime(),20) cache.memcache.get(request.application+'/time') (uses the native

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread Jérémie
Dear Massimo, Thanks for having a look at my issue. Unfortunately, even with the modification, i can't manage to have the get and delete methods working... i don't know if this is important but i am working locally on the GAE dev-app server. i don't know if memcache is working on the same way.

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread mdipierro
Dear Jeremie, I did not write the memcache code myself but I looked into it (gluon/ contrib/memcache/__init__.py). I found this line #key = self.__keyFormat__(key) And I am puzzled by why it is commented. I think it should not be. Can you try uncomment it and see if it works as you expec

[web2py] Re: Clear memcache on GAE

2010-08-12 Thread Jérémie
Hello again, Thank you for your answers. I had and i still have really spent some time parsing the book and the web2py google groups. Thus, i tried something simplier but which doesn't work either as i would have expected. def makeMe(): import time t = cache.memcache('time',lambda:time

[web2py] Re: Clear memcache on GAE

2010-08-11 Thread mdipierro
It will work if you setup gae memcache and point cache.ram to it. It is explained in the book in the GAE section On Aug 11, 7:45 am, howesc wrote: > i thought that the query caching like: >   db(query).select(cache=...) > was not supported in web2py on GAE?  did i miss a detail somewhere? > > sin

[web2py] Re: Clear memcache on GAE

2010-08-11 Thread howesc
i thought that the query caching like: db(query).select(cache=...) was not supported in web2py on GAE? did i miss a detail somewhere? since i thought it was not supported i have not yet tried to use it or clear it. sorry. cfh On Aug 8, 11:51 pm, Jérémie wrote: > Hello everyone, > > First of