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
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
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.
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
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
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
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
7 matches
Mail list logo