Changeset 6561
- Timestamp:
- 27 Jul 2011, 11:42:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py
r6345 r6561 4 4 from zope.interface import Attribute 5 5 from waeup.sirp.interfaces import (IWAeUPObject, IWAeUPContainer) 6 6 7 7 from waeup.sirp.university.vocabularies import ( 8 8 course_levels, … … 37 37 required = True, 38 38 ) 39 39 40 40 def longtitle(): 41 41 """ 42 42 Returns the long title of a faculty. 43 """ 44 43 """ 44 45 45 class IFacultyAdd(IFaculty): 46 46 """Representation of a university faculty. … … 53 53 readonly = False, 54 54 ) 55 56 IFacultyAdd['code'].order = IFaculty['code'].order 57 55 56 IFacultyAdd['code'].order = IFaculty['code'].order 57 58 58 class IFacultyContainer(IWAeUPContainer): 59 59 """A container for faculties. … … 89 89 courses = Attribute("A container for courses.") 90 90 certificates = Attribute("A container for certificates.") 91 91 92 92 def longtitle(): 93 93 """ 94 94 Returns the long title of a department. 95 95 """ 96 96 97 97 class IDepartmentAdd(IDepartment): 98 98 """Representation of a university department. … … 105 105 readonly = False, 106 106 ) 107 108 IDepartmentAdd['code'].order = IDepartment['code'].order 107 108 IDepartmentAdd['code'].order = IDepartment['code'].order 109 109 110 110 class ICourseContainer(IWAeUPContainer): … … 138 138 required = False, 139 139 ) 140 140 141 141 passmark = schema.Int( 142 142 title = u'Passmark', … … 151 151 required = True, 152 152 ) 153 153 154 154 def longtitle(): 155 155 """ 156 156 Returns the long title of a course. 157 """ 157 """ 158 158 159 159 class ICourseAdd(ICourse): … … 167 167 readonly = False, 168 168 ) 169 170 ICourseAdd['code'].order = ICourse['code'].order 169 170 ICourseAdd['code'].order = ICourse['code'].order 171 171 172 172 class ICertificate(IWAeUPObject): … … 195 195 start_level = schema.Choice( 196 196 title = u'Start Level', 197 #source = LevelSource(),198 197 vocabulary = course_levels, 199 198 default = 100, 200 199 required = True, 201 200 ) 202 201 203 202 end_level = schema.Choice( 204 203 title = u'End Level', 205 #source = LevelSource(),206 204 vocabulary = course_levels, 207 205 default = 500, 208 206 required = True, 209 207 ) 210 208 211 209 application_category = schema.Choice( 212 210 title = u'Application Category', … … 214 212 default = u'basic', 215 213 required = True, 216 ) 214 ) 217 215 218 216 def longtitle(): 219 217 """ 220 218 Returns the long title of a certificate. 221 """ 219 """ 222 220 223 221 class ICertificateAdd(ICertificate): … … 231 229 readonly = False, 232 230 ) 233 234 ICertificateAdd['code'].order = ICertificate['code'].order 235 231 232 ICertificateAdd['code'].order = ICertificate['code'].order 233 236 234 class ICertificateContainer(IWAeUPContainer): 237 235 """A container for certificates. … … 244 242 245 243 class ICertificateCourse(IWAeUPObject): 246 """A certificatecourse is referring a course and 247 provides some ownattributes.244 """A certificatecourse is referring a course and provides some own 245 attributes. 248 246 """ 249 247 course = schema.Choice( … … 252 250 readonly = True, 253 251 ) 254 252 255 253 level = schema.Choice( 256 254 title = u'Level', 257 255 required = True, 258 #source = LevelSource(),259 256 vocabulary = course_levels, 260 257 readonly = False, … … 272 269 This is needed for cataloging. 273 270 """ 274 271 275 272 def longtitle(): 276 273 """ 277 274 Returns the long title of a certificatecourse. 278 """ 279 280 275 """ 276 277 281 278 class ICertificateCourseAdd(ICertificateCourse): 282 """A certificatecourse is referring a course and 279 """A certificatecourse is referring a course and 283 280 provides some own attributes. 284 281 """ … … 288 285 readonly = False, 289 286 ) 290 291 ICertificateCourseAdd['course'].order = ICertificateCourse['course'].order 287 288 ICertificateCourseAdd['course'].order = ICertificateCourse['course'].order
Note: See TracChangeset for help on using the changeset viewer.