Changeset 4506 for waeup/branches/ulif-rewrite/src
- Timestamp:
- 31 Jul 2009, 14:48:53 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/interfaces.py
r4482 r4506 3 3 from zope.interface import Interface, Attribute 4 4 from zope import schema 5 from zope.schema.vocabulary import SimpleVocabulary 5 6 from waeup.permissions import RoleSource 6 7 … … 137 138 level = schema.Int( 138 139 title = u'Level', 139 default = None,140 default = 100, 140 141 required = False, 141 142 ) … … 153 154 ) 154 155 155 semester = schema.Int( 156 title = u'Semester', 157 default = 1, 158 required = True, 159 ) 156 semester = schema.Choice( 157 title = u'Semester/Term', 158 default = 2, 159 vocabulary = SimpleVocabulary.fromItems([ 160 ('First Semester', 1),('Second Semester', 2), 161 ('Combined', 3)]), 162 #values = [], 163 required = True, 164 ) 165 160 166 161 167 class ICertificate(IWAeUPObject):
Note: See TracChangeset for help on using the changeset viewer.