Now replace form.vars = session.vars
with: form.vars.update(session.vars ) this will fix the latter problem Now I understand what is going not but not why the browser makes a difference. You are trying to store a gluon.storage.Storage object in the session. Session can serialize it but fails to de-serialize it when the session is retrieved. So you have so take the form.vars and convert to a dictionary when storing it session. It is a rule in web2py that you cannot store objects in session (only primitive types, lists, dicts and combinations). Massimo On Jul 16, 9:18 pm, Jose <[email protected]> wrote: > On 17 jul, 01:47, mdipierro <[email protected]> wrote: > > > I mean replace > > > session.vars=form.vars > > > with > > > session.vars=dict(form.vars) > > > Does it change anything? Are these custom forms? How do the views look > > like? > > Now from domicilio1 to domicilio2: Ok. > A mistake takes is produced from domicilio2 to domicilio3 > > Error traceback > Traceback (most recent call last): > File "/usr/home/jose/web2py2/gluon/restricted.py", line 176, in > restricted > exec ccode in environment > File "/usr/home/jose/web2py2/applications/autogestion/controllers/ > solicitud.py", line 140, in <module> > File "/usr/home/jose/web2py2/gluon/globals.py", line 100, in > <lambda> > self._caller = lambda f: f() > File "/usr/home/jose/web2py2/applications/autogestion/controllers/ > solicitud.py", line 60, in domicilio > if form.accepts(request.vars, session): > File "/usr/home/jose/web2py2/gluon/sqlhtml.py", line 839, in accepts > self.vars.id = self.table.insert(**fields) > AttributeError: 'dict' object has no attribute 'id' > > Jose --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---

