You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem? 1. use the following minimal use case for example in welcome/models/db.py:
from google.appengine.api import memcache
from google.appengine.ext import ndb
class TestModel(ndb.model):
pass
memcache.set("a", TestModel()) What is the expected output? What do you see instead? A database entity should be stored in memcache. This is very important for implementing own caching scenarios. Instead a pickling error is rendererd:
Can't pickle TestModel [...] >: import of module restricted failed What version of the product are you using? On what operating system? web2py 2.9.4, windows 8.1
Please provide any additional information below:
It appears that the web2py environment is not correctly injected into the pickle/unpickle calls of google appengine.
From sebast..._at_cambeo.com on March 16, 2014 00:15:34
What steps will reproduce the problem? 1. use the following minimal use case for example in welcome/models/db.py:
from google.appengine.api import memcache
from google.appengine.ext import ndb
class TestModel(ndb.model):
pass
memcache.set("a", TestModel()) What is the expected output? What do you see instead? A database entity should be stored in memcache. This is very important for implementing own caching scenarios. Instead a pickling error is rendererd:
Can't pickle TestModel [...] >: import of module restricted failed What version of the product are you using? On what operating system? web2py 2.9.4, windows 8.1
Please provide any additional information below:
It appears that the web2py environment is not correctly injected into the pickle/unpickle calls of google appengine.
Original issue: http://code.google.com/p/web2py/issues/detail?id=1899
The text was updated successfully, but these errors were encountered: