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
-~----------~----~----~----~------~----~------~--~---

Reply via email to