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 <rochacbr...@gmail.com> 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 <rochacbr...@gmail.com> 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]

Reply via email to