This problem only occurs with the latest version of web2py and ir you
try to store a reference object in the session.
web2py.appspot.com is running an older version of web2py.

Did you get a chance to try the fix in trunk?

On Nov 20, 9:04 am, Shalab <[email protected]> wrote:
> i am curious about one thing how come web2py.appspot.com is working
> without above fix and why similar website will have a problem.did i
> miss something.[i just verified registration does work on reddish].
> Also i havent setup anything to take from trunk...[my initial goal was
> to just use existing source code and play with it and analyze
> performance and other aspect before i start working on web2py
> framework]
>
> shalab
>
> On Nov 19, 3:41 pm, mdipierro <[email protected]> wrote:
>
> > I added a temporary fix in trunk. please give it a try.
>
> > On Nov 19, 3:32 pm, mdipierro <[email protected]> wrote:
>
> > > Which are you using?
>
> > > The app is trying to store a db reference object in the session. The
> > > custom pickling method calls marshal.dumps which is not implemented on
> > > GAE.
>
> > > If this is a common problem, then we should implement our own
> > > marshal.dumpon GAE.
>
> > > defdump(i):
> > >     i,a=divmod(i,256)
> > >     i,b=divmod(i,256)
> > >     d,c=divmod(i,256)
> > >     return 'i%s%s%s%s' % (chr(a),chr(b),chr(c),chr(d))
> > > marshal.dump=dump
>
> > > Pros cons?
>
> > > On Nov 19, 2:13 pm, Shalab <[email protected]> wrote:
>
> > > > I was trying to test web2py framework and it support on google app
> > > > engine and i decided to do what reddish(web2py.appspot.com) has done
> > > > and test all functionality on google app engine. I have been
> > > > successful in uploading the app with all the name changes but on
> > > > registration get below error in google appengine logs.
> > > > Can you explain how to resolve this error.
>
> > > > Traceback (most recent call last):
> > > >   File "/base/data/home/apps/gifteddeals/1.337717733870634071/gluon/
> > > > main.py", line 469, in wsgibase
> > > >     session._try_store_in_db(request, response)
> > > >   File "/base/data/home/apps/gifteddeals/1.337717733870634071/gluon/
> > > > globals.py", line 343, in _try_store_in_db
> > > >     session_data=cPickle.dumps(dict(self)),
> > > >   File "/base/python_dist/lib/python2.5/pickle.py", line 1359, in
> > > > dumps
> > > >     Pickler(file, protocol).dump(obj)
> > > >   File "/base/python_dist/lib/python2.5/pickle.py", line 218, indump
> > > >     self.save(obj)
> > > >   File "/base/python_dist/lib/python2.5/pickle.py", line 280, in save
> > > >     f(self, obj) # Call unbound method with explicit self
> > > >   File "/base/python_dist/lib/python2.5/pickle.py", line 643, in
> > > > save_dict
> > > >     self._batch_setitems(obj.iteritems())
> > > >   File "/base/python_dist/lib/python2.5/pickle.py", line 657, in
> > > > _batch_setitems
> > > >     save(v)
> > > >   File "/base/python_dist/lib/python2.5/pickle.py", line 295, in save
> > > >     rv = reduce(obj)
> > > >   File "/base/data/home/apps/gifteddeals/1.337717733870634071/gluon/
> > > > sql.py", line 1388, in Reference_pickler
> > > >     return (Reference_unpickler, (marshal.dumps(int(data)),))
> > > > AttributeError: 'module' object has no attribute 'dumps'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to