Ignore:
Timestamp:
15 Apr 2012, 17:51:13 (12 years ago)
Author:
uli
Message:

Rollback r8158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/schema/interfaces.py

    r8158 r8166  
    1717##
    1818from zope import schema
    19 from zope.schema.interfaces import IDate, IDatetime
     19from zope.schema.interfaces import IDate
    2020
    2121class IFormattedDate(IDate):
     
    3737        default = '%Y-%m-%d',
    3838        )
    39 
    40 class IFormattedDatetime(IDatetime):
    41     """A formatted datetime.
    42 
    43     Basically a zope.schema.IDatetime, but with optional additional
    44     attributes. These attributes _can_ be used by widgets to change
    45     the way of editing or displaying a date.
    46 
    47     The waeup.kofa.widgets.datetimewidget.FormattedDatetimeWidget is a
    48     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.