Hi Joe,

Thanks for that trick!

Chris

On Friday, May 16, 2014 9:28:07 PM UTC-4, Joe Barnhart wrote:
>
> Formstyle can be a callable function, which allows you to do exactly what 
> you want.  To add parameters to a formstyle function, you first create your 
> own version of the basic formstyle (as you did with your version of the 
> bootstrap3 form), then "wrap" it in a lambda which presets the new values 
> you added to the signature.  Finally, hand the lambda off to the SQLFORM 
> when you call it and you can have anything you want in your formstyle.
>
> See an example:  
> https://groups.google.com/forum/#!topic/web2py/VSr2oLNnozg
>
>
> On Thursday, May 15, 2014 2:52:25 PM UTC-7, Chris DeGroot wrote:
>>
>> Hi everyone,
>>
>> I just submitted a pull request for some changes I was working on to make 
>> bootstrap 3 forms more customizable: 
>> https://github.com/web2py/web2py/pull/444
>>
>> What do you think?  I've done some testing on my projects, but I can't 
>> say everything is fully tested.  I would be interested in opinions on a 
>> good approach to testing in web2py and feedback on the approach taken.
>>
>> Regards,
>>
>> Chris
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to