As far as I understand, deform now has an all-or-nothing approach for
readonly fields at the form level.

There're occasions, though, when you want a form where only some
fields are editable, but others should remain readonly. The most
obvious example is a persisted ID field.

Ideally, I like to have the option to pass a readonly flag to the
widget, like so:

form['id'].widget = TextInputWidget(readonly=True)

Unfortunately, this is currently not supported.

Is this a sensible feature request or are there other ways to achieve
the same result?!

(A TextDisplayWidget is an obvious alternative, but this is very crude
and doesn't fit in nicely with the readonly support already given.)


Kind regards,

Keesjan

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to