Changeset 13
- Timestamp:
- 08/07/05 22:05:03 (7 years ago)
- Location:
- trunk/src/chronolog
- Files:
-
- 2 modified
-
DEPENDENCIES.cfg (modified) (1 diff)
-
interfaces.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chronolog/DEPENDENCIES.cfg
r11 r13 2 2 zope.schema 3 3 zope.app 4 zope.i18nmessageid -
trunk/src/chronolog/interfaces.py
r12 r13 19 19 from zope.schema import Text, TextLine, Date, Timedelta, Set, Int 20 20 from zope.app.container.constraints import ContainerTypesConstraint 21 from zope.i18nmessageid import MessageFactory 22 _ = MessageFactory('chronolog') 21 23 22 24 class ITimeLogKey(Interface): … … 29 31 """ 30 32 domain = TextLine( 31 title= u'Domain',32 description= u'The id of the domain this key is part of.',33 title=_(u'Domain'), 34 description=_(u'The id of the domain this key is part of.'), 33 35 readonly=True, 34 36 required=True) 35 37 36 38 id = TextLine( 37 title= u'Id',38 description= u'The unique identifier of the key.',39 title=_(u'Id'), 40 description=_(u'The unique identifier of the key.'), 39 41 required=True) 40 42 41 43 description = Text( 42 title= u'Description',43 description= u'A detailed description of the key.',44 title=_(u'Description'), 45 description=_(u'A detailed description of the key.'), 44 46 required=False) 45 47 46 48 title = TextLine( 47 title= u'Title',48 description= u'The title of the key; usually displayed in the UI.',49 title=_(u'Title'), 50 description=_(u'The title of the key; usually displayed in the UI.'), 49 51 required=False) 50 52 … … 62 64 """ 63 65 id = TextLine( 64 title= u'Id',65 description= u'The identifier of the domain.',66 title=_(u'Id'), 67 description=_(u'The identifier of the domain.'), 66 68 required=True) 67 69 68 70 title = TextLine( 69 title= u'Title',70 description= u'The domain title for UI display',71 title=_(u'Title'), 72 description=_(u'The domain title for UI display'), 71 73 required=False) 72 74 73 75 description = Text( 74 title= u'Description',75 description= u'A detailed description of the domain.',76 title=_(u'Description'), 77 description=_(u'A detailed description of the domain.'), 76 78 required=False) 77 79 … … 107 109 """ 108 110 keys = Set( 109 title= u'Keys',110 description= u'''A set of keys describing the entry against which111 time is logged.''',111 title=_(u'Keys'), 112 description=_(u'A set of keys describing the entry against which ' 113 u'time is logged.'), 112 114 required=True, 113 115 min_length=1, … … 115 117 116 118 date = Date( 117 title= u'Date',118 description= u'Date of the log entry',119 title=_(u'Date'), 120 description=_(u'Date of the log entry'), 119 121 required=True) 120 122 121 123 duration = Timedelta( 122 title= u'Duration',123 description= u'Amount of time logged.',124 title=_(u'Duration'), 125 description=_(u'Amount of time logged.'), 124 126 required=False) 125 127 126 128 comments = Text( 127 title= u'Comments',128 description= u'Arbitrary notes attached to the entry.',129 title=_(u'Comments'), 130 description=_(u'Arbitrary notes attached to the entry.'), 129 131 required=False) 130 132 … … 222 224 """ 223 225 startDate = Date( 224 title= u'Start Date',225 description= u'Date of first log entry on this sheet',226 title=_(u'Start Date'), 227 description=_(u'Date of first log entry on this sheet'), 226 228 required=True) 227 229 228 230 endDate = Date( 229 title= u'End Date',230 description= u'Date of last log entry on this sheet',231 title=_(u'End Date'), 232 description=_(u'Date of last log entry on this sheet'), 231 233 required=True) 232 234 233 235 viewKey = Set( 234 title= u'View Key',235 description= u'The keys defining the view on the underlying '236 u'ITimeLogStore.',236 title=_(u'View Key'), 237 description=_(u'The keys defining the view on the underlying ' 238 u'ITimeLogStore.'), 237 239 required=True, 238 240 constraint=ContainerTypesConstraint(ITimeLogKey))
