Last change
on this file since 11107 was
6819,
checked in by Henrik Bettermann, 13 years ago
|
We should be very strict when importing dates and allow only one import format: YYYY-MM-DD.
Overwrite the DateWidget? by the FormattedDateWidget?, already defined in the widgets package, to generally bypass Python's parseDatetimetz module which is used by the original DateWidget?. parseDatetimetz is too dangerous when used in importers.
|
File size:
611 bytes
|
Rev | Line | |
---|
[6278] | 1 | <configure xmlns="http://namespaces.zope.org/zope"> |
---|
| 2 | |
---|
| 3 | <adapter |
---|
| 4 | for="zope.schema.interfaces.IBool |
---|
| 5 | zope.publisher.interfaces.browser.IBrowserRequest" |
---|
| 6 | provides="zope.formlib.interfaces.ISimpleInputWidget" |
---|
| 7 | factory=".converters.ExtendedCheckBoxWidget" |
---|
| 8 | permission="zope.Public" |
---|
| 9 | /> |
---|
| 10 | |
---|
[6819] | 11 | <adapter |
---|
| 12 | for="zope.schema.interfaces.IDate |
---|
| 13 | zope.publisher.interfaces.browser.IBrowserRequest" |
---|
| 14 | provides="zope.formlib.interfaces.ISimpleInputWidget" |
---|
| 15 | factory="waeup.sirp.widgets.datewidget.FormattedDateWidget" |
---|
| 16 | permission="zope.Public" |
---|
| 17 | /> |
---|
| 18 | |
---|
[6278] | 19 | </configure> |
---|
Note: See
TracBrowser for help on using the repository browser.