Last change
on this file since 11103 was
8200,
checked in by uli, 13 years ago
|
- Use datetime for applicants containers and
- Register new datetime widget as default for entering datetimes.
Fixed all tests to work with the new stuff.
As this is just a quick shot I put all changes into one commit
to ease any later rollback.
|
File size:
1.6 KB
|
Line | |
---|
1 | <configure xmlns="http://namespaces.zope.org/zope"> |
---|
2 | |
---|
3 | <adapter |
---|
4 | for="zope.schema.interfaces.IDate |
---|
5 | zope.publisher.interfaces.browser.IBrowserRequest" |
---|
6 | provides="zope.formlib.interfaces.ISimpleInputWidget" |
---|
7 | factory="waeup.kofa.widgets.datewidget.FormattedDateWidget" |
---|
8 | permission="zope.Public" |
---|
9 | /> |
---|
10 | |
---|
11 | <adapter |
---|
12 | for="waeup.kofa.schema.interfaces.IFormattedDate |
---|
13 | zope.publisher.interfaces.browser.IBrowserRequest" |
---|
14 | provides="zope.formlib.interfaces.ISimpleInputWidget" |
---|
15 | factory="waeup.kofa.widgets.datewidget.DateLEWidget" |
---|
16 | permission="zope.Public" |
---|
17 | /> |
---|
18 | |
---|
19 | <adapter |
---|
20 | for="waeup.kofa.schema.interfaces.IFormattedDate |
---|
21 | zope.publisher.interfaces.browser.IBrowserRequest" |
---|
22 | provides="zope.formlib.interfaces.IDisplayWidget" |
---|
23 | factory="waeup.kofa.widgets.datewidget.DateLEDisplayWidget" |
---|
24 | permission="zope.Public" |
---|
25 | /> |
---|
26 | |
---|
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 | |
---|
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 | |
---|
45 | </configure> |
---|
Note: See
TracBrowser for help on using the repository browser.