Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 549 Bytes

README.rst

File metadata and controls

17 lines (13 loc) · 549 Bytes

collective.contact.widget

class IMyProject(Interface):

manager = ContactChoice( title=_(u"Project Manager"), source=ContactSourceBinder(portal_type=("held_position",),

relations={'position': '/contacts/ecreall'}),

)

Means that 'manager' is a multivalued contact field wich vocabulary get held_position of site restricted to ones wich have a 'position' relation to '/contacts/ecreall' (i.e. wich are held_positions in ecreall company)