[Grok-dev] schema.Object

Sascha Boch sascha.boch at gmx.de
Wed Jul 21 04:11:58 EDT 2010

Hello again!

This time I am trying to use schema.Object and I am getting a 
ComponentLookupError when accessing the generated form. Here are the 
interface definitions:

class IFooField(interface.Interface):
    name = schema.TextLine(title=u'Field Name', required = True)
    format = schema.Choice(title=u'Field Format', required = True, 
values = ['Text', 'Date', 'Number'])
class IFoo(interface.Interface):
    data_fields = schema.Object(title=u'Fields', required = False, 
schema = IFooField)

Do I need to do anything special or should calling grok.AutoFields on the 
form view suffice?

GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20100721/ac496cc5/attachment.html 

More information about the Grok-dev mailing list