[Grok-dev] schema.Object

Souheil CHELFOUH trollfot at gmail.com
Wed Jul 21 08:08:00 EDT 2010

You need, somehow, to create objects that provide IFooField, in order
to set the attribute.
I never used the ObjectWidget, but, if you have a look at the code,
you'll see that it take in argument the factory.
The factory will be instanciated and then, attributes will be set on
it, using setattr.
Therefore, you need to provide a class that implements IFooField as a
factory, not IFooField.
Do it and it should work.

2010/7/21 Sascha Boch <sascha.boch at gmx.de>:
> That was a typo, sorry. It should say:
> object_widget = CustomWidgetFactory(ObjectWidget, IFooField)
> --
> Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
> Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev

More information about the Grok-dev mailing list