Bruno to solve
'PowerFormWizard' object has no attribute 'readonly'
I added 2 lines to powerForm plugin
In modules/plugin_PowerFormWizard.py
def __init__(self,
table,
steps,
formstyle = 'divs',
options={},
_id = 'powerformwizard',
record = None,
fields = None,
ignore_rw = False,
record_id=None,
readonly=None, #maybe another value for default
**attributes
):
if formstyle not in ['divs','ul']:
raise AttributeError("SQLFORM formstyle not accepted")
from gluon import current
response = current.response
self.T = current.T
self.table = table
self.formstyle = formstyle
self.attributes = attributes
self.ignore_rw = ignore_rw
self.record_id = record_id
self.options = options
self._id = _id
self.readonly=readonly
and the problem is gone....
El lunes, 23 de julio de 2012 20:46:36 UTC-4, rochacbruno escribió:
>
> fixed link for app:
>
>
> https://github.com/mdipierro/web2py-recipes-source/raw/master/apps/04_advanced_forms/web2py.app.form_wizard.w2p
>
--