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

Last change on this file since 8165 was 8158, checked in by uli, 13 years ago

Add datetime widgets and schema fields as we have them for date.

File size: 1.5 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
[8158]27  <adapter
28      for="waeup.kofa.schema.interfaces.IFormattedDatetime
29           zope.publisher.interfaces.browser.IBrowserRequest"
30      provides="zope.formlib.interfaces.ISimpleInputWidget"
31      factory="waeup.kofa.widgets.datetimewidget.DatetimeLEWidget"
32      permission="zope.Public"
33      />
34
35  <adapter
36      for="waeup.kofa.schema.interfaces.IFormattedDatetime
37           zope.publisher.interfaces.browser.IBrowserRequest"
38      provides="zope.formlib.interfaces.IDisplayWidget"
39      factory="waeup.kofa.widgets.datetimewidget.DatetimeLEDisplayWidget"
40      permission="zope.Public"
41      />
42
[6278]43</configure>
Note: See TracBrowser for help on using the repository browser.