- Timestamp:
- 20 Nov 2011, 07:35:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r7144 r7150 3 3 import re 4 4 from datetime import datetime 5 from zope.interface import Attribute, invariant 5 from zope.interface import Attribute, invariant, Interface 6 6 from zope.interface.exceptions import Invalid 7 7 from zope import schema … … 26 26 return True 27 27 28 class IStudentsUtils(Interface): 29 """A collection of methods which are subject to customization. 30 31 """ 32 def get_payment_details(category, student): 33 """Get the payment dates of a student for the payment category 34 specified. 35 36 """ 37 38 def get_accommodation_details(student): 39 """Determine the accommodation dates of a student. 40 41 """ 42 43 def select_bed(available_beds): 44 """Select a bed from a list of available beds. 45 46 In the standard configuration we select the first bed found, 47 but can also randomize the selection if we like. 48 """ 49 50 def render_pdf(view, subject='', filename='slip.pdf',): 51 """Render pdf slips for various pages. 52 53 """ 54 28 55 class IStudentsContainer(IWAeUPObject): 29 56 """A students container contains university students. 30 57 31 58 """ 32 33 59 def addStudent(student): 34 60 """Add an IStudent object and subcontainers. … … 68 94 class IStudentNavigation(IWAeUPObject): 69 95 """Interface needed for student navigation. 70 """ 71 96 97 """ 72 98 def getStudent(): 73 99 """Return student object. 100 74 101 """ 75 102 76 103 class IStudentBase(IWAeUPObject): 77 104 """Representation of student base data. 105 78 106 """ 79 107 history = Attribute('Object history, a list of messages') … … 84 112 85 113 def loggerInfo(ob_class, comment): 86 """Adds an INFO message to the log file 114 """Adds an INFO message to the log file. 115 87 116 """ 88 117 … … 141 170 class IStudentClearance(IWAeUPObject): 142 171 """Representation of student clearance data. 143 """ 144 172 173 """ 145 174 date_of_birth = schema.Date( 146 175 title = u'Date of Birth', … … 162 191 class IStudentPersonal(IWAeUPObject): 163 192 """Representation of student personal data. 164 """ 165 193 194 """ 166 195 perm_address = schema.Text( 167 196 title = u'Permanent Address', … … 171 200 class IStudent(IStudentBase,IStudentClearance,IStudentPersonal): 172 201 """Representation of a student. 202 173 203 """ 174 204 175 205 class IStudentUpdateByRegNo(IStudent): 176 206 """Representation of a student. Skip regular reg_number validation. 177 """ 178 207 208 """ 179 209 reg_number = schema.TextLine( 180 210 title = u'Registration Number', … … 185 215 class IStudentUpdateByMatricNo(IStudent): 186 216 """Representation of a student. Skip regular matric_number validation. 187 """ 188 217 218 """ 189 219 matric_number = schema.TextLine( 190 220 title = u'Matriculation Number', … … 197 227 198 228 """ 199 200 229 certificate = schema.Choice( 201 230 title = u'Certificate', … … 256 285 257 286 """ 258 259 287 current_level = schema.Int( 260 288 title = u'Current Level', … … 318 346 319 347 class ICourseTicketAdd(ICourseTicket): 320 """An interface for adding course tickets 348 """An interface for adding course tickets. 321 349 322 350 """ … … 336 364 337 365 """ 338 339 366 bed = Attribute('The bed object.') 340 367 … … 375 402 376 403 def getSessionString(): 377 """Returns the the title of academic_sessions_vocab term 404 """Returns the the title of academic_sessions_vocab term. 405 378 406 """ 379 407 … … 387 415 388 416 """ 389 390 417 p_session = schema.Choice( 391 418 title = u'Payment Session', … … 401 428 class IStudentClearanceEdit(IStudentClearance): 402 429 """Interface needed for restricted editing of student clearance data. 430 403 431 """ 404 432 405 433 class IStudentPersonalEdit(IStudentPersonal): 406 434 """Interface needed for restricted editing of student personal data. 407 """ 435 436 """
Note: See TracChangeset for help on using the changeset viewer.