On 01/05/2012 09:07 PM, Mariano Mara wrote: > On 05.01.12 19:20, John Anderson wrote: >> I have a base schema class and when I subclass it I sometimes want to >> re-order the fields, for instance: >> >> class ProfileSchema(CSRFSchema): >> Username = colander.SchemaNode(colander.String()) >> >> class DetailedProfileSchema(ProfileSchema): >> FirstName = colander.SchemaNode(colander.String()) >> >> I would like first name to be displayed above Username >> >> Is this possible? > You could define the mapping schema imperatively: in that way you can place > the nodes in the order you need each time. > I would like to enjoy the benefits of inheritance if possible. It will be a maintenance nightmare to redefine the schemas every where just to re-order a couple fields.
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.