[Grok-dev] schema_fields and form_fields

Martijn Faassen faassen at infrae.com
Fri Oct 20 07:22:38 EDT 2006


Christian Theune wrote:
> Hi,
> 
> Martijn Faassen wrote:
>>>> I think there's also a way to get to the underlying schema field from
>>>> the form_fields mapping.
>>> form_fields['my_field'].field
>> Cool. So, if we expose form_fields on the template, is there still a use
>> for the 'class_fields' helper function? Theuni?
> 
> I just imported that from the components.py which uses this to do the
> setup for the computed form for formlib to introspect the model/view
> class as given by the user via 'class fields'. We have to keep that
> assumption up or re-write the code not to use schema_fields.

Sorry for not being clear. I am fine if the internal grok code uses 
schema_fields. I just wonder whether there is a need to expose this to 
developers that use grok if we already have form_fields available.

Regards,

Martijn



More information about the Grok-dev mailing list