On 11/03/2006, at 22:12, Marcelo Ametller wrote:
>
> hi, what is the difference between these options used in
> templates:
>
> <p >${form.display(action='save')}Ficha de Proveedor </p>
>
> or
>
> <p py:content="form(action='save')" Ficha de Proveedor</p>
>
> what you recommends?
>
The second one will replace "Ficha de Proveedor (when the missing '>'
is fixed ;) while the first one will display the form and "Ficha de
Proveedor" right after it.
Actually, form(...) is equivalent to form.display(...) because
__call__ is an alias for display in all Widget instances. I
personally prefer form.display but that's a matter of taste I guess.
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---