[Product-Developers] Attaching plone.app.widgets to a custom Dexterity schema.

ajung lists at zopyx.com
Wed Feb 26 20:43:17 UTC 2014


 55     form.widget('media', RelatedItemsFieldWidget)$
 56     media = RelationChoice($
 57         title=_(u"label_podcast_item_media"),$
 58         description=_(u"help_podcast_item_media"),$
 59        
source=ObjPathSourceBinder(object_provides=IMediaItem.__identifier__),$
 60         required=False,$

seems to solve the problem. However the widget seems to ignore the source of
the field
since it show all possible portal type items and not only objects with
interface IMediaItem.

-aj



--
View this message in context: http://plone.293351.n2.nabble.com/Attaching-plone-app-widgets-to-a-custom-Dexterity-schema-tp7570305p7570306.html
Sent from the Product Developers mailing list archive at Nabble.com.


More information about the Product-Developers mailing list