Hi,
Le 08/01/2013 08:49, Andreas Jung a �crit :
> Hi,
>
> I have long table (with weird ordering of the fields inside the
> schema) where I want to render the 'title' field first
> and all other fields in alphabetic order. What is the best way to
> re-order the fields automatically (touching
> the _render_fields OrderedDict is appropriate? Since this requirement
> applies to multiple tables I can not and won't created
> dedicated forms because their fields differ.
>
You can use .configure():
fs = FieldSet(Mapper)
fields = fs._fields.values()
# sort fields
fs.configure(include=sorted_fields)
> Andreas
> --
> You received this message because you are subscribed to the Google
> Groups "FormAlchemy" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/formalchemy/-/BMUpmdCqm6UJ.
> To post to this group, send email to
forma...@googlegroups.com.
> To unsubscribe from this group, send email to
>
formalchemy...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/formalchemy?hl=en.