source: main/waeup.kofa/trunk/src/waeup/kofa/widgets/overrides.zcml @ 14667

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

Register KofaSourceOrderedMultiSelectWidget? for IterableSource? and
KofaSourceOrderedMultiSelectWidget? for IVocabularyTokenized.

File size: 2.4 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"
[7816]7      factory="waeup.kofa.widgets.datewidget.FormattedDateWidget"
[6819]8      permission="zope.Public"
9      />
10
[8148]11  <adapter
12      for="waeup.kofa.schema.interfaces.IFormattedDate
13           zope.publisher.interfaces.browser.IBrowserRequest"
14      provides="zope.formlib.interfaces.ISimpleInputWidget"
[8153]15      factory="waeup.kofa.widgets.datewidget.DateLEWidget"
[8148]16      permission="zope.Public"
17      />
18
[8150]19  <adapter
20      for="waeup.kofa.schema.interfaces.IFormattedDate
21           zope.publisher.interfaces.browser.IBrowserRequest"
22      provides="zope.formlib.interfaces.IDisplayWidget"
[8153]23      factory="waeup.kofa.widgets.datewidget.DateLEDisplayWidget"
[8150]24      permission="zope.Public"
25      />
26
[8171]27  <!-- Register edit widget for PhoneNumbers -->
28  <adapter
29      for="waeup.kofa.schema.interfaces.IPhoneNumber
30           zope.publisher.interfaces.browser.IBrowserRequest"
31      provides="zope.formlib.interfaces.ISimpleInputWidget"
32      factory="waeup.kofa.widgets.phonewidget.PhoneWidget"
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"
41      factory="waeup.kofa.widgets.datetimewidget.PytzDatetimeWidget"
42      permission="zope.Public"
43      />
44
[13032]45  <!-- Register KofaSourceOrderedMultiSelectWidget for IterableSource -->
46  <adapter
47      for="zope.schema.interfaces.IList
48           zope.schema.interfaces.IIterableSource
49           zope.publisher.interfaces.browser.IBrowserRequest"
50      provides="zope.formlib.interfaces.ISimpleInputWidget"
51      factory="waeup.kofa.widgets.source.KofaSourceOrderedMultiSelectWidget"
52      permission="zope.Public"
53      />
54     
55  <!-- Register KofaSourceOrderedMultiSelectWidget for IVocabularyTokenized -->
56  <adapter
57      for="zope.schema.interfaces.IList
58           zope.schema.interfaces.IVocabularyTokenized
59           zope.publisher.interfaces.browser.IBrowserRequest"
60      provides="zope.formlib.interfaces.ISimpleInputWidget"
61      factory="waeup.kofa.widgets.source.KofaOrderedMultiSelectWidget"
62      permission="zope.Public"
63      />
64
[6278]65</configure>
Note: See TracBrowser for help on using the repository browser.