Hi
I'm getting the following error(s) when caching a TAG() element:
File "/path/to/projects/web2py/gluon/globals.py", line 372, in <lambda>
self._caller = lambda f: f()
File "/path/to/projects/web2py/gluon/tools.py", line 3239, in f
return action(*a, **b)
File "/path/to/projects/web2py/gluon/cache.py", line 405, in __call__
self.time_expire)
File "/path/to/projects/web2py/gluon/cache.py", line 364, in __call__
storage[key] = (now, value)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shelve.py",
line 132, in __setitem__
p.dump(value)
File "/path/to/projects/web2py/gluon/html.py", line 1200, in TAG_pickler
marshal_dump = cPickle.dumps(d)
...
File "/path/to/projects/web2py/gluon/html.py", line 1200, in TAG_pickler
marshal_dump = cPickle.dumps(d)
RuntimeError: maximum recursion depth exceeded
Code along the following should recreate it:
SMALL = lambda x, **kwargs: TAG.small(x, **kwargs)
cache.disk('Hello', lambda: CAT(P('Hello'), SMALL('World')), time_expire=100
)
Any ideas?
Calvin
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.