source: main/waeup.ikoba/trunk/src/waeup/ikoba/widgets/overrides.zcml @ 15505

Last change on this file since 15505 was 12785, checked in by Henrik Bettermann, 10 years ago

Add RefereeSource? components and register IkobaSequenceWidget? for RefereeSource?.

File size: 2.8 KB
RevLine 
[6278]1<configure xmlns="http://namespaces.zope.org/zope">
2
3  <adapter
[6819]4      for="zope.schema.interfaces.IDate
5           zope.publisher.interfaces.browser.IBrowserRequest"
6      provides="zope.formlib.interfaces.ISimpleInputWidget"
[11949]7      factory="waeup.ikoba.widgets.datewidget.FormattedDateWidget"
[6819]8      permission="zope.Public"
9      />
10
[8148]11  <adapter
[11949]12      for="waeup.ikoba.schema.interfaces.IFormattedDate
[8148]13           zope.publisher.interfaces.browser.IBrowserRequest"
14      provides="zope.formlib.interfaces.ISimpleInputWidget"
[11949]15      factory="waeup.ikoba.widgets.datewidget.DateLEWidget"
[8148]16      permission="zope.Public"
17      />
18
[8150]19  <adapter
[11949]20      for="waeup.ikoba.schema.interfaces.IFormattedDate
[8150]21           zope.publisher.interfaces.browser.IBrowserRequest"
22      provides="zope.formlib.interfaces.IDisplayWidget"
[11949]23      factory="waeup.ikoba.widgets.datewidget.DateLEDisplayWidget"
[8150]24      permission="zope.Public"
25      />
26
[8171]27  <!-- Register edit widget for PhoneNumbers -->
28  <adapter
[11949]29      for="waeup.ikoba.schema.interfaces.IPhoneNumber
[8171]30           zope.publisher.interfaces.browser.IBrowserRequest"
31      provides="zope.formlib.interfaces.ISimpleInputWidget"
[11949]32      factory="waeup.ikoba.widgets.phonewidget.PhoneWidget"
[8171]33      permission="zope.Public"
34      />
35
[8200]36  <!-- Register pytz-aware edit widget for datetimes -->
37  <adapter
38      for="zope.schema.interfaces.IDatetime
39           zope.publisher.interfaces.browser.IBrowserRequest"
40      provides="zope.formlib.interfaces.ISimpleInputWidget"
[11949]41      factory="waeup.ikoba.widgets.datetimewidget.PytzDatetimeWidget"
[8200]42      permission="zope.Public"
43      />
44
[12329]45  <!-- Register IkobaSequenceWidget for ProductOptionSource -->
46  <adapter
47      for="zope.schema.interfaces.IList
48           waeup.ikoba.customers.vocabularies.IProductOptionSource
49           zope.publisher.interfaces.browser.IBrowserRequest"
50      provides="zope.formlib.interfaces.ISimpleInputWidget"
51      factory="waeup.ikoba.widgets.sequencewidget.IkobaSequenceWidget"
52      permission="zope.Public"
53      />     
[12785]54     
55  <!-- Register IkobaSequenceWidget for RefereeSource -->
56  <adapter
57      for="zope.schema.interfaces.IList
58           waeup.ikoba.customers.vocabularies.IRefereeSource
59           zope.publisher.interfaces.browser.IBrowserRequest"
60      provides="zope.formlib.interfaces.ISimpleInputWidget"
61      factory="waeup.ikoba.widgets.sequencewidget.IkobaSequenceWidget"
62      permission="zope.Public"
63      />     
[12329]64
[12506]65  <!-- Register IkobaSourceOrderedMultiSelectWidget for IterableSource -->
66  <adapter
67      for="zope.schema.interfaces.IList
68           zope.schema.interfaces.IIterableSource
69           zope.publisher.interfaces.browser.IBrowserRequest"
70      provides="zope.formlib.interfaces.ISimpleInputWidget"
71      factory="waeup.ikoba.widgets.source.IkobaSourceOrderedMultiSelectWidget"
72      permission="zope.Public"
73      />
74
[6278]75</configure>
Note: See TracBrowser for help on using the repository browser.