I'm not sure if this is in stable, but in trunk you can specify 
dictionaries of args to pass to SQLFORM, including separate dictionaries 
for create, edit, and view forms: 
http://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#1500.

Anthony

On Thursday, June 7, 2012 2:02:34 PM UTC-4, Doug Philips wrote:
>
> On 6/7/12, Richard Vézina <ml.richard.vez...@gmail.com> wrote: 
> > I am almost sure I saw a email were Massimo explain how to set a 
> different 
> > text for "submit" button, can't find it back... 
> > 
> > Have you try with SQLFORM attribute ? Or SQLFORM attribute with "_" 
> before 
> > : _submit_button = 'Submit' 
>
> Well, I looked at the code in gluon/sqlhtml.py 
> the SQLFORM class @staticmethod grid() does not take submit_button or 
> _submit_button and doesn't (so far as I can tell) accept *args or 
> **kwargs parameters. Further, the code itself for handling the edit 
> case creates a SQLFORM and passes in the submit_button parameter with 
> a hard coded value. But I'm new to this code base and there may be 
> other paths or other places where things are changed after they are 
> made... 
>
> Thanks! 
>      --Doug 
>

Reply via email to