Please try trunk again. On Monday, 23 September 2013 23:43:34 UTC-5, 黄祥 wrote: > > hi, > > i have an application that using session to store the value, it running > well on my local, but got an error when i test on pythonanywere, is there > any special treat for session (add, remove, destroy, etc) when running on > pythonanywhere? > > the error i got on pythonanywere when i click the button to add the value > that will store in session : > > Traceback (most recent call last): > File "/home/sugizo/web2py/gluon/restricted.py", line 217, in restricted > exec ccode in environment > File > "/home/sugizo/web2py/applications/deluxurywatch/controllers/default.py" > <https://sugizo.pythonanywhere.com/admin/default/edit/deluxurywatch/controllers/default.py>, > line 332, in <module> > File "/home/sugizo/web2py/gluon/globals.py", line 371, in <lambda> > self._caller = lambda f: f() > File > "/home/sugizo/web2py/applications/deluxurywatch/controllers/default.py" > <https://sugizo.pythonanywhere.com/admin/default/edit/deluxurywatch/controllers/default.py>, > line 197, in purchase_order_callback > id=int(request.vars.id) > File "/home/sugizo/web2py/gluon/globals.py", line 282, in vars > self.parse_all_vars() > File "/home/sugizo/web2py/gluon/globals.py", line 256, in parse_all_vars > for key,value in self.post_vars.iteritems(): > File "/home/sugizo/web2py/gluon/globals.py", line 275, in post_vars > self.parse_post_vars() > File "/home/sugizo/web2py/gluon/globals.py", line 218, in parse_post_vars > if len(dpost): > File "/usr/lib/python2.7/cgi.py", line 599, in __len__ > return len(self.keys()) > File "/usr/lib/python2.7/cgi.py", line 582, in keys > raise TypeError, "not indexable" > TypeError: not indexable > > > i run on 2.6.4-stable on both local and pythonanywhere. > > thanks and best regards, > stifan >
-- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.