- Timestamp:
- 15 Apr 2012, 17:51:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/schema/interfaces.py
r8158 r8166 17 17 ## 18 18 from zope import schema 19 from zope.schema.interfaces import IDate , IDatetime19 from zope.schema.interfaces import IDate 20 20 21 21 class IFormattedDate(IDate): … … 37 37 default = '%Y-%m-%d', 38 38 ) 39 40 class IFormattedDatetime(IDatetime):41 """A formatted datetime.42 43 Basically a zope.schema.IDatetime, but with optional additional44 attributes. These attributes _can_ be used by widgets to change45 the way of editing or displaying a date.46 47 The waeup.kofa.widgets.datetimewidget.FormattedDatetimeWidget is a48 widget that supports these additional attributes.49 """50 show_time = schema.Bool(51 title = u'Show time when displaying this date?',52 default = True,53 )54 date_format = schema.ASCII(55 title = u'A date format string suitable for use with strftime.',56 default = '%Y-%m-%d %H:%M:%S',57 )
Note: See TracChangeset for help on using the changeset viewer.