-
Just a bunch of other questions. I come from the py4web / web2py world, but I am very curious about Emmett and I want to give it a serious shot.
{=form.begin} Can I do this in Emmett as well in the template? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
With the same order:
|
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
With the same order:
rw
(https://emmett.sh/docs/2.2.x/orm/models#fields-accessibility), which accepts a boolean (in case you want to set both readability and writability toTrue
orFalse
) or a tuple ((True, False)
means readable but not writable).Field
has adefault
parameter as well in Emmett (https://emmett.sh/docs/2.2.x/orm/models#default-values). In case you use ORM and models, probably usingModel.form(record)
is easier (https://emmett.sh/docs/2.2.x/forms#forms-with-database-entities)custom
flow of web2py (code ref: https://github.com/emmett-framework/emmett/blob/master/emmett/forms.py#L197#L233), s…