Hi,

my content type needs to reference an instance of some other (dexterity based) 
content type. Ideally, I would like to specify that my instance references 
another instance of SomeContentType that lives in some folder, like this:

bestFriend = zope.schema.Reference(
    schema=my.product.Person, 
    path="plone/admin/persons"
)

I think what comes close is the schema.InterfaceField, but using it raises a 
component lookup error (see my next mail in this thread, gmane does not allow 
me 
to paste it below...). Do I need to specify a widget? Something 
like

form.widget(long_desc="InterfaceFieldWidget")
bestFriend = zope.schema.InterfaceField()

???

Thanks
Maarten


_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to