[Zope3-Users] Re: How do I get the schema/field list from an instance?

2007-02-14 Thread Philipp von Weitershausen
Vinny wrote: In a ZPT I would do something like: for field in fieldsInObject(row) # which has (ordered?) fields th cell: field.name for row in rowView for field in fieldsInObject(row) # which has (ordered?) fields td cell: field.value I know the above is broken in several ways. I've

Re: [Zope3-Users] Re: How do I get the schema/field list from an instance?

2007-02-14 Thread Vinny
On Wed, 14 Feb 2007 19:22:53 +0100 Philipp von Weitershausen wrote: Vinny wrote: In a ZPT I would do something like: for field in fieldsInObject(row) # which has (ordered?) fields th cell: field.name for row in rowView for field in fieldsInObject(row) # which has (ordered?)