Hi Bruno, I'm trying to use PowerFormWizard and it was working fine until I 
found a bug using an Autocomplete widget for one of the fields. I can 
reproduce the error even using your example application (I just added a 
colors table and 
db.person.colors.widget = SQLFORM.widgets.autocomplete(
     request, db.colors.color, id_field=db.colors.id)
to the person model.

This is the traceback:

Traceback (most recent call last):
  File "/opt/src/web2py/dotcloud/web2py/gluon/restricted.py", line 192, in 
restricted
    exec ccode in environment
  File 
"/opt/src/web2py/dotcloud/web2py/applications/PFWExample/controllers/default.py",
 
line 628, in <module>
  File "/opt/src/web2py/dotcloud/web2py/gluon/globals.py", line 145, in 
<lambda>
    self._caller = lambda f: f()
  File 
"/opt/src/web2py/dotcloud/web2py/applications/PFWExample/controllers/default.py",
 
line 93, in index
    if form.accepts(request.vars, session):
  File "/opt/src/web2py/dotcloud/web2py/gluon/sqlhtml.py", line 1093, in 
accepts
    self.field_parent[row_id].components = [ widget ]
AttributeError: 'PowerFormWizard' object has no attribute 'field_parent'


Regards.

Reply via email to