No because this should be done with

db.table.field.label='new label'

On Jun 15, 3:57 am, Sky <hmonfa...@gmail.com> wrote:
> as i looked in source code of crud ( tools.py ) you can't change the
> 'lables' property of SQLForm returned from crud.create or crud.update
> methods.
> so I added new parameter to create and update methods of crud to be
> used in constructing SQLForm.
>
>     def update(
>         self,
>         table,
>         record,
>         next=DEFAULT,
>         onvalidation=DEFAULT,
>         onaccept=DEFAULT,
>         ondelete=DEFAULT,
>         log=DEFAULT,
>         message=DEFAULT,
>         deletable=DEFAULT,
>                 labels=None,# HHM: added by Hassan
>         ):
> .......................
> .......................
> form = SQLFORM(
>             table,
>             record,
>             hidden=dict(_next=next),
>             showid=self.settings.showid,
>             submit_button=self.messages.submit_button,
>             delete_label=self.messages.delete_label,
>             deletable=deletable,
>             upload=self.settings.download_url,
>                         labels=labels,# HHM: added by Hassan
>             )

Reply via email to