Changeset 5951 for main/waeup.sirp/trunk/src/waeup/sirp/university
- Timestamp:
- 15 Apr 2011, 14:07:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py
r5950 r5951 49 49 required = True, 50 50 ) 51 52 class IFacultyAdd(IFaculty): 53 """Representation of a university faculty. 54 """ 55 code = schema.TextLine( 56 title = u'Code', 57 description = u'Abbreviated code of the faculty', 58 default = u'NA', 59 required = True, 60 readonly = False, 61 ) 62 63 IFacultyAdd['code'].order = IFaculty['code'].order 51 64 52 65 class IFacultyContainer(IWAeUPContainer): … … 84 97 certificates = Attribute("A container for certificates.") 85 98 99 class IDepartmentAdd(IDepartment): 100 """Representation of a university department. 101 """ 102 code = schema.TextLine( 103 title = u'Code', 104 default = u'NA', 105 description = u'Abbreviated code of the department', 106 required = True, 107 readonly = False, 108 ) 109 110 IDepartmentAdd['code'].order = IDepartment['code'].order 86 111 87 112 class ICourseContainer(IWAeUPContainer): … … 132 157 ) 133 158 159 class ICourseAdd(ICourse): 160 """Representation of a course. 161 """ 162 code = schema.TextLine( 163 title = u'Code', 164 default = u'NA', 165 description = u'Abbreviated code of the course', 166 required = True, 167 readonly = False, 168 ) 169 170 ICourseAdd['code'].order = ICourse['code'].order 134 171 135 172 class ICertificate(IWAeUPObject): … … 152 189 title = schema.TextLine( 153 190 title = u'Title', 191 default = u'Unnamed', 154 192 required = True, 155 193 ) … … 157 195 study_mode = schema.TextLine( 158 196 title = u'Study Mode', 197 default = u'ug_ft', 159 198 required = True, 160 199 ) … … 162 201 start_level = schema.TextLine( 163 202 title = u'Start Level', 203 default = u'100', 164 204 required = True, 165 205 ) … … 167 207 end_level = schema.TextLine( 168 208 title = u'End Level', 209 default = u'500', 169 210 required = True, 170 211 ) … … 172 213 application_category = schema.TextLine( 173 214 title = u'Application Category', 215 default = u'basic', 174 216 required = False, 175 217 ) 176 218 219 class ICertificateAdd(ICertificate): 220 """Representation of a certificate. 221 """ 222 code = schema.TextLine( 223 title = u'Code', 224 default = u'NA', 225 description = u'Abbreviated code of the certificate.', 226 required = True, 227 readonly = False, 228 ) 229 230 ICertificateAdd['code'].order = ICertificate['code'].order 177 231 178 232 class ICertificateContainer(IWAeUPContainer): … … 196 250 197 251 level = schema.Int( 198 title = u'Level of this course',252 title = u'Level', 199 253 required = True, 200 254 default = 100, … … 213 267 This is needed for cataloging. 214 268 """ 269 270 271 class ICertificateCourseAdd(ICertificateCourse): 272 """A certificatecourse is a course referenced by a certificate, which 273 provides some own attributes. 274 """ 275 course = schema.Choice( 276 title = u'Course to be referenced', 277 source = CourseSource(), 278 readonly = False, 279 ) 280 281 ICertificateCourseAdd['course'].order = ICertificateCourse['course'].order
Note: See TracChangeset for help on using the changeset viewer.