Re: [web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2013-01-21 Thread António Ramos
Your powerformwizard is layed out horizontally.
For large number of steps i think it would be better vertically like an
accordion .Also better for printing
Also instead of blocking users from going to next step without filling
fields in current step it would be nicer just to block editing next steps
fields.


Best regards
António

2013/1/20 Bruno Rocha 

> Ok, problem fixed
>
> Updated here: https://bitbucket.org/rochacbruno/powerformwizard/downloads
>
> Live example here: http://www.web2pyslices.com/formwizard
>
> --
>
>
>
>

-- 





Re: [web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2013-01-20 Thread Bruno Rocha
Ok, problem fixed

Updated here: https://bitbucket.org/rochacbruno/powerformwizard/downloads

Live example here: http://www.web2pyslices.com/formwizard

-- 





Re: [web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2013-01-20 Thread António Ramos
I´m testing the web2py.app.PFWExample.w2p

at

https://bitbucket.org/rochacbruno/powerformwizard/downloads

and got this error



Traceback (most recent call last):
  File "C:\web2pyGit\web2py\gluon\restricted.py", line 212, in restricted

exec ccode in environment
  File "C:/web2pyGit/web2py/applications/pfwizard/controllers/default.py"
,
line 628, in 

  File "C:\web2pyGit\web2py\gluon\globals.py", line 193, in 

self._caller = lambda f: f()

  File "C:/web2pyGit/web2py/applications/pfwizard/controllers/default.py"
,
line 93, in index

if form.accepts(request.vars, session):

  File "C:\web2pyGit\web2py\gluon\sqlhtml.py", line 1238, in accepts

if self.readonly:
AttributeError: 'PowerFormWizard' object has no attribute 'readonly'



Can you help???



2013/1/20 Bruno Rocha 

> it is only on https://bitbucket.org/rochacbruno/powerformwizard/src
>
> but not updated yet.. on my todo-list to work on this.
>
>
> On Sat, Jan 19, 2013 at 10:43 PM, Bill Thayer wrote:
>
>> Hi Bruno,
>>
>> Forgive me if I missed your updates. The link below does not work today.
>> Where can I find the latest information.
>>
>> Regards,
>> Bill
>>
>>
 *# Whats next?
 *working on a new plugin for the 'Power' family, it is a JSON based
 tableless grid (which is much more than a grid)
 hope to release with examples, by the end of the week, preview ->
 http://labs.blouweb.com/**PowerGrid 

 Need help, contribution, test..
 []'s
 --
 Bruno Rocha
 [ About me: http://zerp.ly/rochacbruno** ]
>>>
>>>
>>>   --
>>
>>
>>
>>
>
>  --
>
>
>
>

-- 





Re: [web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2013-01-19 Thread Bruno Rocha
it is only on https://bitbucket.org/rochacbruno/powerformwizard/src

but not updated yet.. on my todo-list to work on this.

On Sat, Jan 19, 2013 at 10:43 PM, Bill Thayer  wrote:

> Hi Bruno,
>
> Forgive me if I missed your updates. The link below does not work today.
> Where can I find the latest information.
>
> Regards,
> Bill
>
>
>>> *# Whats next?
>>> *working on a new plugin for the 'Power' family, it is a JSON based
>>> tableless grid (which is much more than a grid)
>>> hope to release with examples, by the end of the week, preview ->
>>> http://labs.blouweb.com/**PowerGrid 
>>>
>>> Need help, contribution, test..
>>> []'s
>>> --
>>> Bruno Rocha
>>> [ About me: http://zerp.ly/rochacbruno** ]
>>
>>
>>   --
>
>
>
>

-- 





[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2013-01-19 Thread Bill Thayer
Hi Bruno,

Forgive me if I missed your updates. The link below does not work today. 
Where can I find the latest information.

Regards,
Bill

>
>> *# Whats next?
>> *working on a new plugin for the 'Power' family, it is a JSON based 
>> tableless grid (which is much more than a grid)
>> hope to release with examples, by the end of the week, preview -> 
>> http://labs.blouweb.com/PowerGrid
>>
>> Need help, contribution, test..
>> []'s
>> --
>> Bruno Rocha
>> [ About me: http://zerp.ly/rochacbruno ]
>
>
>  

-- 





[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-08-09 Thread José L .
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 
  File "/opt/src/web2py/dotcloud/web2py/gluon/globals.py", line 145, in 

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.


[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-08 Thread niknok
Any suggestion how to make this work with multiple tables (ie. one-to-
many relationships)?

For example, auth_user and is linked to other tables which I would
like to view in other tabs?


On Jul 7, 5:27 pm, Bruno Rocha  wrote:
> UPDATE:
>
> auto_validate renamed to .validate()
>
> Now we have another method that allows this:
>
> return dict(form=PowerFormWizard(db.table).process(messages=['Sucess!','Fail
> try again']))
>
> which creates and auto validate the form returning the form itsef.
>
> Other thing I guess no one tought about is the use for single step forms:
>
> http://labs.blouweb.com/powerformwizard/default/singlestep
>
> You can use the plugin for one step (normal) forms, use the client side
> validation and layout!
>
> More comming...
>
>
>
>
>
>
>
>
>
> On Tue, Jul 5, 2011 at 6:53 AM, Bruno Rocha  wrote:
> > HI,
>
> > I just finished the refactoring for PFWizard plugin, major bug fixes
> > (thanks everyone testing and reporting)
>
> > *# NOTES*
> > - It works only wih web2py 1.97+
> > - It works only for SQLFORM based forms, you have to pass a db.table
> > - It does not works for Crud() , does not allows editing or delete yet (can
> > you contribute?)
> > - It receives any arg that SQLFORM receives
>
> > *# FIXES*
> > - Fixed Issue #2 - Now it works with tables which has '_' or '__' in
> > fieldnames.
> > - Fixed Issue #1 - Now it works with Python < 2.6 - removed enumerate()
> > - Ommit fields - Fixed issue, now you cam ommit fields with no break in
> > validation (client and server side)
> > - Code cleanup, PEP8 checkups # But I really does not matter about it :P
>
> > *# FEATURES*
> > - Added form.auto_validation method
> > Now you don t need to always write "if form.accepts()elif
> > form.errors."
> > Just use in this way:
>
> >  form = PowerFormWizard(db, steps)
> > form.auto_validate()
> > return dict(form=form)
>
> > or
> > # define flash message
> > form.auto_validate(messages=['Yeah it works', 'Ops, error'])
>
> > or
>
> > #execute a function after validation
> > def myfunction(success, x,y,z):
> >      #first argument receives True or False
> > 
>
> > form.auto_validate(flash=my_function, args=[x, y, z])
>
> > DEMO & DOWNLOAD :http://labs.blouweb.com/powerformwizard
> > REPO:https://bitbucket.org/rochacbruno/powerformwizard
>
> > *# Whats next?*
> > working on a new plugin for the 'Power' family, it is a JSON based
> > tableless grid (which is much more than a grid)
> > hope to release with examples, by the end of the week, preview ->
> >http://labs.blouweb.com/PowerGrid
>
> > Need help, contribution, test..
>
> > []'s
> > --
> > Bruno Rocha
> > [ About me:http://zerp.ly/rochacbruno]
>
> --
>
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]
> [ Aprenda a programar:http://CursoDePython.com.br]
> [ O seu aliado nos cuidados com os animais:http://AnimalSystem.com.br]
> [ Consultoria em desenvolvimento web:http://www.blouweb.com]


[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-07 Thread Bruno Rocha
UPDATE:

auto_validate renamed to .validate()

Now we have another method that allows this:

return dict(form=PowerFormWizard(db.table).process(messages=['Sucess!','Fail
try again']))

which creates and auto validate the form returning the form itsef.

Other thing I guess no one tought about is the use for single step forms:

http://labs.blouweb.com/powerformwizard/default/singlestep

You can use the plugin for one step (normal) forms, use the client side
validation and layout!

More comming...

On Tue, Jul 5, 2011 at 6:53 AM, Bruno Rocha  wrote:

> HI,
>
> I just finished the refactoring for PFWizard plugin, major bug fixes
> (thanks everyone testing and reporting)
>
> *# NOTES*
> - It works only wih web2py 1.97+
> - It works only for SQLFORM based forms, you have to pass a db.table
> - It does not works for Crud() , does not allows editing or delete yet (can
> you contribute?)
> - It receives any arg that SQLFORM receives
>
> *# FIXES*
> - Fixed Issue #2 - Now it works with tables which has '_' or '__' in
> fieldnames.
> - Fixed Issue #1 - Now it works with Python < 2.6 - removed enumerate()
> - Ommit fields - Fixed issue, now you cam ommit fields with no break in
> validation (client and server side)
> - Code cleanup, PEP8 checkups # But I really does not matter about it :P
>
> *# FEATURES*
> - Added form.auto_validation method
> Now you don t need to always write "if form.accepts()elif
> form.errors."
> Just use in this way:
>
>  form = PowerFormWizard(db, steps)
> form.auto_validate()
> return dict(form=form)
>
> or
> # define flash message
> form.auto_validate(messages=['Yeah it works', 'Ops, error'])
>
> or
>
> #execute a function after validation
> def myfunction(success, x,y,z):
>  #first argument receives True or False
> 
>
> form.auto_validate(flash=my_function, args=[x, y, z])
>
>
> DEMO & DOWNLOAD : http://labs.blouweb.com/powerformwizard
> REPO:https://bitbucket.org/rochacbruno/powerformwizard
>
>
> *# Whats next?*
> working on a new plugin for the 'Power' family, it is a JSON based
> tableless grid (which is much more than a grid)
> hope to release with examples, by the end of the week, preview ->
> http://labs.blouweb.com/PowerGrid
>
>
> Need help, contribution, test..
>
> []'s
> --
> Bruno Rocha
> [ About me: http://zerp.ly/rochacbruno ]
>
>


-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]


Re: [web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-07 Thread Bruno Rocha
Massimo Di Pierro  wrote:

> Do we have a method to upload plugins in web2pyslices? If not, I will
> extend web2py.com/plugins it is becoming hard for me to keep track


Not yet, but I am writing 2.0 and this will allow some cool options for
plugins!


[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Massimo Di Pierro
Do we have a method to upload plugins in web2pyslices? If not, I will
extend web2py.com/plugins it is becoming hard for me to keep track

On Jul 5, 4:53 am, Bruno Rocha  wrote:
> HI,
>
> I just finished the refactoring for PFWizard plugin, major bug fixes (thanks
> everyone testing and reporting)
>
> *# NOTES*
> - It works only wih web2py 1.97+
> - It works only for SQLFORM based forms, you have to pass a db.table
> - It does not works for Crud() , does not allows editing or delete yet (can
> you contribute?)
> - It receives any arg that SQLFORM receives
>
> *# FIXES*
> - Fixed Issue #2 - Now it works with tables which has '_' or '__' in
> fieldnames.
> - Fixed Issue #1 - Now it works with Python < 2.6 - removed enumerate()
> - Ommit fields - Fixed issue, now you cam ommit fields with no break in
> validation (client and server side)
> - Code cleanup, PEP8 checkups # But I really does not matter about it :P
>
> *# FEATURES*
> - Added form.auto_validation method
> Now you don t need to always write "if form.accepts()elif
> form.errors."
> Just use in this way:
>
> form = PowerFormWizard(db, steps)
> form.auto_validate()
> return dict(form=form)
>
> or
> # define flash message
> form.auto_validate(messages=['Yeah it works', 'Ops, error'])
>
> or
>
> #execute a function after validation
> def myfunction(success, x,y,z):
>      #first argument receives True or False
> 
>
> form.auto_validate(flash=my_function, args=[x, y, z])
>
> DEMO & DOWNLOAD :http://labs.blouweb.com/powerformwizard
> REPO:https://bitbucket.org/rochacbruno/powerformwizard
>
> *# Whats next?*
> working on a new plugin for the 'Power' family, it is a JSON based tableless
> grid (which is much more than a grid)
> hope to release with examples, by the end of the week, preview 
> ->http://labs.blouweb.com/PowerGrid
>
> Need help, contribution, test..
>
> []'s
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]


[web2py] Re: PowerFormWizard 0.1.4 - Bug Fixes and auto_validation (+ a new plugin for grids)

2011-07-05 Thread Bruno Rocha
Smalll typo, the  new method is called *.auto_validation()* #not
auto_validate()