Changeset 7819 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 8 Mar 2012, 22:28:46 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py
r7811 r7819 29 29 from zope.session.interfaces import ISession 30 30 from waeup.kofa.authentication import ( 31 K OFAPrincipalInfo, get_principal_role_manager)31 KofaPrincipalInfo, get_principal_role_manager) 32 32 from waeup.kofa.interfaces import ( 33 33 IAuthPluginUtility, IUserAccount, IPasswordValidator) … … 135 135 if not account.checkPassword(credentials['password']): 136 136 return None 137 return K OFAPrincipalInfo(id=account.name,137 return KofaPrincipalInfo(id=account.name, 138 138 title=account.title, 139 139 description=account.description, -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r7811 r7819 33 33 from waeup.kofa.accesscodes.workflow import USED 34 34 from waeup.kofa.browser import ( 35 K OFAPage, KOFAEditFormPage, KOFAAddFormPage, KOFADisplayFormPage,36 ContactAdminForm, K OFAForm)35 KofaPage, KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage, 36 ContactAdminForm, KofaForm) 37 37 from waeup.kofa.browser.interfaces import ICaptchaManager 38 38 from waeup.kofa.browser.breadcrumbs import Breadcrumb … … 40 40 from waeup.kofa.browser.layout import jsaction, action, UtilityView 41 41 from waeup.kofa.interfaces import ( 42 IK OFAObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm,43 IK OFAUtils, IUniversity)42 IKofaObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm, 43 IKofaUtils, IUniversity) 44 44 from waeup.kofa.interfaces import MessageFactory as _ 45 45 from waeup.kofa.widgets.datewidget import ( … … 155 155 @property 156 156 def title(self): 157 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE157 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 158 158 # There is no request attribute, thus we can only translate 159 159 # to the default (portal) language … … 161 161 target_language=portal_language) 162 162 163 class StudentsContainerPage(K OFAPage):163 class StudentsContainerPage(KofaPage): 164 164 """The standard view for student containers. 165 165 """ … … 194 194 return 195 195 196 class StudentsContainerManagePage(K OFAPage):196 class StudentsContainerManagePage(KofaPage): 197 197 """The manage page for student containers. 198 198 """ … … 245 245 return 246 246 247 class StudentAddFormPage(K OFAAddFormPage):247 class StudentAddFormPage(KofaAddFormPage): 248 248 """Add-form to add a student. 249 249 """ … … 265 265 return 266 266 267 class StudentBaseDisplayFormPage(K OFADisplayFormPage):267 class StudentBaseDisplayFormPage(KofaDisplayFormPage): 268 268 """ Page to display student base data 269 269 """ … … 310 310 usertype = getattr(self.request.principal, 311 311 'user_type', 'system').title() 312 kofa_utils = getUtility(IK OFAUtils)312 kofa_utils = getUtility(IKofaUtils) 313 313 success = kofa_utils.sendContactForm( 314 314 self.request.principal.title,email, … … 323 323 return 324 324 325 class StudentBaseManageFormPage(K OFAEditFormPage):325 class StudentBaseManageFormPage(KofaEditFormPage): 326 326 """ View to manage student base data 327 327 """ … … 388 388 return 389 389 390 class StudentClearanceDisplayFormPage(K OFADisplayFormPage):390 class StudentClearanceDisplayFormPage(KofaDisplayFormPage): 391 391 """ Page to display student clearance data 392 392 """ … … 415 415 @property 416 416 def title(self): 417 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE417 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 418 418 return translate(_('Clearance Data'), 'waeup.kofa', 419 419 target_language=portal_language) … … 421 421 @property 422 422 def label(self): 423 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE423 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 424 424 return translate(_('Clearance Slip of '), 425 425 'waeup.kofa', target_language=portal_language) \ … … 434 434 self.context.getStudent(), studentview) 435 435 436 class StudentClearanceManageFormPage(K OFAEditFormPage):436 class StudentClearanceManageFormPage(KofaEditFormPage): 437 437 """ Page to edit student clearance data 438 438 """ … … 508 508 return 509 509 510 class StudentPersonalDisplayFormPage(K OFADisplayFormPage):510 class StudentPersonalDisplayFormPage(KofaDisplayFormPage): 511 511 """ Page to display student personal data 512 512 """ … … 523 523 mapping = {'a':self.context.display_fullname}) 524 524 525 class StudentPersonalManageFormPage(K OFAEditFormPage):525 class StudentPersonalManageFormPage(KofaEditFormPage): 526 526 """ Page to edit student clearance data 527 527 """ … … 538 538 return 539 539 540 class StudyCourseDisplayFormPage(K OFADisplayFormPage):540 class StudyCourseDisplayFormPage(KofaDisplayFormPage): 541 541 """ Page to display the student study course data 542 542 """ … … 556 556 def current_mode(self): 557 557 if self.context.certificate is not None: 558 studymodes_dict = getUtility(IK OFAUtils).getStudyModesDict()558 studymodes_dict = getUtility(IKofaUtils).getStudyModesDict() 559 559 return studymodes_dict[self.context.certificate.study_mode] 560 560 return … … 572 572 return 573 573 574 class StudyCourseManageFormPage(K OFAEditFormPage):574 class StudyCourseManageFormPage(KofaEditFormPage): 575 575 """ Page to edit the student study course data 576 576 """ … … 645 645 return 646 646 647 class StudyLevelDisplayFormPage(K OFADisplayFormPage):647 class StudyLevelDisplayFormPage(KofaDisplayFormPage): 648 648 """ Page to display student study levels 649 649 """ … … 662 662 @property 663 663 def label(self): 664 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE664 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 665 665 lang = self.request.cookies.get('kofa.language', portal_language) 666 666 level_title = translate(self.context.level_title, 'waeup.kofa', … … 688 688 @property 689 689 def title(self): 690 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE690 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 691 691 return translate(_('Level Data'), 'waeup.kofa', 692 692 target_language=portal_language) … … 694 694 @property 695 695 def content_title(self): 696 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE696 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 697 697 return translate(_('Course List'), 'waeup.kofa', 698 698 target_language=portal_language) … … 700 700 @property 701 701 def label(self): 702 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE702 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 703 703 lang = self.request.cookies.get('kofa.language', portal_language) 704 704 level_title = translate(self.context.level_title, 'waeup.kofa', … … 709 709 710 710 def render(self): 711 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE711 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 712 712 Sem = translate(_('Sem.'), 'waeup.kofa', target_language=portal_language) 713 713 Code = translate(_('Code'), 'waeup.kofa', target_language=portal_language) … … 735 735 tabledata=tabledata) 736 736 737 class StudyLevelManageFormPage(K OFAEditFormPage):737 class StudyLevelManageFormPage(KofaEditFormPage): 738 738 """ Page to edit the student study level data 739 739 """ … … 762 762 @property 763 763 def label(self): 764 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE764 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 765 765 lang = self.request.cookies.get('kofa.language', portal_language) 766 766 level_title = translate(self.context.level_title, 'waeup.kofa', … … 853 853 return 854 854 855 class CourseTicketAddFormPage(K OFAAddFormPage):855 class CourseTicketAddFormPage(KofaAddFormPage): 856 856 """Add a course ticket. 857 857 """ … … 890 890 self.redirect(self.url(self.context)) 891 891 892 class CourseTicketDisplayFormPage(K OFADisplayFormPage):892 class CourseTicketDisplayFormPage(KofaDisplayFormPage): 893 893 """ Page to display course tickets 894 894 """ … … 906 906 'b':self.context.code}) 907 907 908 class CourseTicketManageFormPage(K OFAEditFormPage):908 class CourseTicketManageFormPage(KofaEditFormPage): 909 909 """ Page to manage course tickets 910 910 """ … … 925 925 return 926 926 927 class PaymentsManageFormPage(K OFAEditFormPage):927 class PaymentsManageFormPage(KofaEditFormPage): 928 928 """ Page to manage the student payments 929 929 … … 982 982 self.redirect(self.url(self.context, '@@addop')) 983 983 984 class OnlinePaymentAddFormPage(K OFAAddFormPage):984 class OnlinePaymentAddFormPage(KofaAddFormPage): 985 985 """ Page to add an online payment ticket 986 986 """ … … 1039 1039 return 1040 1040 1041 class OnlinePaymentDisplayFormPage(K OFADisplayFormPage):1041 class OnlinePaymentDisplayFormPage(KofaDisplayFormPage): 1042 1042 """ Page to view an online payment ticket 1043 1043 """ … … 1138 1138 1139 1139 1140 class AccommodationManageFormPage(K OFAEditFormPage):1140 class AccommodationManageFormPage(KofaEditFormPage): 1141 1141 """ Page to manage bed tickets. 1142 1142 … … 1195 1195 return self.actions 1196 1196 1197 class BedTicketAddPage(K OFAPage):1197 class BedTicketAddPage(KofaPage): 1198 1198 """ Page to add an online payment ticket 1199 1199 """ … … 1287 1287 'c':room_nr, 'd':bed_nr, 1288 1288 'e':bed.bed_type}) 1289 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE1289 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1290 1290 bedticket.bed_coordinates = translate( 1291 1291 bc, 'waeup.kofa',target_language=portal_language) … … 1297 1297 return 1298 1298 1299 class BedTicketDisplayFormPage(K OFADisplayFormPage):1299 class BedTicketDisplayFormPage(KofaDisplayFormPage): 1300 1300 """ Page to display bed tickets 1301 1301 """ … … 1325 1325 @property 1326 1326 def title(self): 1327 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE1327 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1328 1328 return translate(_('Bed Allocation Data'), 'waeup.kofa', 1329 1329 target_language=portal_language) … … 1331 1331 @property 1332 1332 def label(self): 1333 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE1333 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1334 1334 return translate(_('Bed Allocation: '), 1335 1335 'waeup.kofa', target_language=portal_language) \ … … 1405 1405 'c':room_nr, 'd':bed_nr, 1406 1406 'e':new_bed.bed_type}) 1407 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE1407 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1408 1408 self.context.bed_coordinates = translate( 1409 1409 bc, 'waeup.kofa',target_language=portal_language) … … 1416 1416 return 1417 1417 1418 class StudentHistoryPage(K OFAPage):1418 class StudentHistoryPage(KofaPage): 1419 1419 """ Page to display student clearance data 1420 1420 """ … … 1431 1431 # Pages for students only 1432 1432 1433 class StudentBaseEditFormPage(K OFAEditFormPage):1433 class StudentBaseEditFormPage(KofaEditFormPage): 1434 1434 """ View to edit student base data 1435 1435 """ … … 1447 1447 return 1448 1448 1449 class StudentChangePasswordPage(K OFAEditFormPage):1449 class StudentChangePasswordPage(KofaEditFormPage): 1450 1450 """ View to manage student base data 1451 1451 """ … … 1473 1473 return 1474 1474 1475 class StudentFilesUploadPage(K OFAPage):1475 class StudentFilesUploadPage(KofaPage): 1476 1476 """ View to upload files by student 1477 1477 """ … … 1490 1490 return 1491 1491 1492 class StartClearancePage(K OFAPage):1492 class StartClearancePage(KofaPage): 1493 1493 grok.context(IStudent) 1494 1494 grok.name('start_clearance') … … 1593 1593 return 1594 1594 1595 class RequestClearancePage(K OFAPage):1595 class RequestClearancePage(KofaPage): 1596 1596 grok.context(IStudent) 1597 1597 grok.name('request_clearance') … … 1624 1624 return 1625 1625 1626 class StartCourseRegistrationPage(K OFAPage):1626 class StartCourseRegistrationPage(KofaPage): 1627 1627 grok.context(IStudentStudyCourse) 1628 1628 grok.name('start_course_registration') … … 1673 1673 return 1674 1674 1675 class AddStudyLevelFormPage(K OFAEditFormPage):1675 class AddStudyLevelFormPage(KofaEditFormPage): 1676 1676 """ Page for students to add current study levels 1677 1677 """ … … 1710 1710 return 1711 1711 1712 class StudyLevelEditFormPage(K OFAEditFormPage):1712 class StudyLevelEditFormPage(KofaEditFormPage): 1713 1713 """ Page to edit the student study level data by students 1714 1714 """ … … 1732 1732 @property 1733 1733 def label(self): 1734 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE1734 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1735 1735 lang = self.request.cookies.get('kofa.language', portal_language) 1736 1736 level_title = translate(self.context.level_title, 'waeup.kofa', … … 1816 1816 return 1817 1817 1818 class ChangePasswordRequestPage(K OFAForm):1818 class ChangePasswordRequestPage(KofaForm): 1819 1819 """Captcha'd page for students to request a password change. 1820 1820 """ … … 1851 1851 student = list(results)[0] 1852 1852 # Change password 1853 kofa_utils = getUtility(IK OFAUtils)1853 kofa_utils = getUtility(IKofaUtils) 1854 1854 pwd = kofa_utils.genPassword() 1855 1855 IUserAccount(student).setPassword(pwd) … … 1866 1866 return 1867 1867 1868 class SetPasswordPage(K OFAPage):1869 grok.context(IK OFAObject)1868 class SetPasswordPage(KofaPage): 1869 grok.context(IKofaObject) 1870 1870 grok.name('setpassword') 1871 1871 grok.require('waeup.Anonymous') -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r7811 r7819 22 22 from zc.sourcefactory.contextual import BasicContextualSourceFactory 23 23 from waeup.kofa.interfaces import ( 24 IK OFAObject, academic_sessions_vocab, validate_email, IKOFAUtils)24 IKofaObject, academic_sessions_vocab, validate_email, IKofaUtils) 25 25 from waeup.kofa.interfaces import MessageFactory as _ 26 26 from waeup.kofa.schema import TextLineChoice … … 78 78 """ 79 79 80 class IStudentsContainer(IK OFAObject):80 class IStudentsContainer(IKofaObject): 81 81 """A students container contains university students. 82 82 … … 117 117 """ 118 118 119 class IStudentNavigation(IK OFAObject):119 class IStudentNavigation(IKofaObject): 120 120 """Interface needed for student navigation. 121 121 … … 126 126 """ 127 127 128 class IStudentBase(IK OFAObject):128 class IStudentBase(IKofaObject): 129 129 """Representation of student base data. 130 130 … … 206 206 ) 207 207 208 class IStudentClearance(IK OFAObject):208 class IStudentClearance(IKofaObject): 209 209 """Representation of student clearance data. 210 210 … … 234 234 ) 235 235 236 class IStudentPersonal(IK OFAObject):236 class IStudentPersonal(IKofaObject): 237 237 """Representation of student personal data. 238 238 … … 268 268 ) 269 269 270 class IStudentStudyCourse(IK OFAObject):270 class IStudentStudyCourse(IKofaObject): 271 271 """A container for student study levels. 272 272 … … 326 326 ) 327 327 328 class IStudentStudyLevel(IK OFAObject):328 class IStudentStudyLevel(IKofaObject): 329 329 """A container for course tickets. 330 330 … … 348 348 ) 349 349 350 class ICourseTicket(IK OFAObject):350 class ICourseTicket(IKofaObject): 351 351 """A course ticket. 352 352 … … 406 406 ) 407 407 408 class IStudentAccommodation(IK OFAObject):408 class IStudentAccommodation(IKofaObject): 409 409 """A container for student accommodation objects. 410 410 411 411 """ 412 412 413 class IBedTicket(IK OFAObject):413 class IBedTicket(IKofaObject): 414 414 """A ticket for accommodation booking. 415 415 … … 475 475 'p_item'].order 476 476 477 class IStudentChangePassword(IK OFAObject):477 class IStudentChangePassword(IKofaObject): 478 478 """Interface needed for change pasword page. 479 479 -
main/waeup.kofa/trunk/src/waeup/kofa/students/student.py
r7811 r7819 28 28 from waeup.kofa.interfaces import ( 29 29 IObjectHistory, IUserAccount, IFileStoreNameChooser, IFileStoreHandler, 30 IK OFAUtils, CLEARANCE, registration_states_vocab)31 from waeup.kofa.image import K OFAImageFile30 IKofaUtils, CLEARANCE, registration_states_vocab) 31 from waeup.kofa.image import KofaImageFile 32 32 from waeup.kofa.imagestorage import DefaultFileStoreHandler 33 33 from waeup.kofa.students.interfaces import IStudent, IStudentNavigation … … 63 63 def display_fullname(self): 64 64 middlename = getattr(self, 'middlename', None) 65 kofa_utils = getUtility(IK OFAUtils)65 kofa_utils = getUtility(IKofaUtils) 66 66 return kofa_utils.fullname(self.firstname, self.lastname, middlename) 67 67 … … 284 284 StudentFileStoreHandler, self).createFile( 285 285 store, root, filename, file_id, file) 286 return file, path, K OFAImageFile(286 return file, path, KofaImageFile( 287 287 file_obj.filename, file_obj.data) -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r7811 r7819 35 35 from zope.component import getUtility 36 36 from zope.formlib.form import setUpEditWidgets 37 from waeup.kofa.interfaces import IExtFileStore, IK OFAUtils37 from waeup.kofa.interfaces import IExtFileStore, IKofaUtils 38 38 from waeup.kofa.interfaces import MessageFactory as _ 39 39 from waeup.kofa.students.interfaces import IStudentsUtils … … 113 113 data_left.append([doc_img]) 114 114 #data.append([Spacer(1, 12)]) 115 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE115 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 116 116 for widget in studentview.widgets: 117 117 if widget.name == 'form.adm_code': … … 164 164 story = [] 165 165 frame_footer = Frame(1*cm,0,width-(2*cm),1*cm) 166 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE166 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 167 167 right_text = translate(_('<font size=10>${a} Page ${b} of ${c}</font>', 168 168 mapping = {'a':text, 'b':pdf.getPageNumber(), 'c':number_of_pages}), … … 256 256 pdf.setAuthor('%s (%s)' % (view.request.principal.title, 257 257 view.request.principal.id)) 258 pdf.setCreator('WAeUP K OFA')258 pdf.setCreator('WAeUP Kofa') 259 259 width, height = A4 260 260 footer_text = view.label … … 275 275 frame_body = Frame(1*cm,1*cm,width-(2*cm),height-(3.5*cm)) 276 276 story.append(Paragraph(view.label, style["Heading2"])) 277 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE277 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 278 278 if student is not None: 279 279 #story.append(Spacer(1, 12)) … … 288 288 set_up_widgets(view) 289 289 data = [] 290 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE290 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 291 291 for widget in view.widgets: 292 292 f_label = '<font size=12>%s</font>:' % translate( -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r7811 r7819 22 22 from zope.i18n import translate 23 23 from waeup.kofa.interfaces import ( 24 IK OFAObject, IExtFileStore, IFileStoreNameChooser, IKOFAUtils)24 IKofaObject, IExtFileStore, IFileStoreNameChooser, IKofaUtils) 25 25 from waeup.kofa.interfaces import MessageFactory as _ 26 26 from waeup.kofa.utils.helpers import string_from_bytes, file_size … … 48 48 from waeup.kofa.interfaces import MessageFactory as _ 49 49 50 grok.context(IK OFAObject) # Make IKOFAObject the default context50 grok.context(IKofaObject) # Make IKofaObject the default context 51 51 grok.templatedir('browser_templates') 52 52 … … 63 63 grok.baseclass() 64 64 grok.viewletmanager(StudentManageSidebar) 65 grok.context(IK OFAObject)65 grok.context(IKofaObject) 66 66 grok.view(Interface) 67 67 grok.order(5) … … 73 73 def render(self): 74 74 url = self.view.url(self.context.getStudent(), self.link) 75 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE75 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 76 76 lang = self.request.cookies.get('kofa.language', portal_language) 77 77 text = translate(self.text, 'waeup.kofa', … … 465 465 """ 466 466 467 grok.context(IK OFAObject)467 grok.context(IKofaObject) 468 468 grok.order(4) 469 469 grok.require('waeup.viewStudentsTab') -
main/waeup.kofa/trunk/src/waeup/kofa/students/vocabularies.py
r7811 r7819 25 25 from zc.sourcefactory.basic import BasicSourceFactory 26 26 from zc.sourcefactory.contextual import BasicContextualSourceFactory 27 from waeup.kofa.interfaces import SimpleK OFAVocabulary27 from waeup.kofa.interfaces import SimpleKofaVocabulary 28 28 from waeup.kofa.interfaces import MessageFactory as _ 29 29 from waeup.kofa.students.lgas import LGAS … … 31 31 from waeup.kofa.university.vocabularies import course_levels 32 32 33 lgas_vocab = SimpleK OFAVocabulary(33 lgas_vocab = SimpleKofaVocabulary( 34 34 *sorted([(x[1],x[0]) for x in LGAS])) 35 35 36 nats_vocab = SimpleK OFAVocabulary(36 nats_vocab = SimpleKofaVocabulary( 37 37 *sorted([(x[1],x[0]) for x in NATS])) 38 38 -
main/waeup.kofa/trunk/src/waeup/kofa/students/workflow.py
r7811 r7819 6 6 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent 7 7 from waeup.kofa.interfaces import ( 8 IObjectHistory, IK OFAWorkflowInfo, IKOFAUtils,8 IObjectHistory, IKofaWorkflowInfo, IKofaUtils, 9 9 CREATED, ADMITTED, CLEARANCE, REQUESTED, CLEARED, PAID, RETURNING, 10 10 REGISTERED, VALIDATED) 11 11 from waeup.kofa.interfaces import MessageFactory as _ 12 from waeup.kofa.workflow import K OFAWorkflow, KOFAWorkflowInfo12 from waeup.kofa.workflow import KofaWorkflow, KofaWorkflowInfo 13 13 from waeup.kofa.students.interfaces import IStudent, IStudentsUtils 14 14 … … 156 156 UNLOCK_CLEARANCE_TRANS = ('reset3', 'reset4', 'start_clearance') 157 157 158 registration_workflow = K OFAWorkflow(REGISTRATION_TRANSITIONS)158 registration_workflow = KofaWorkflow(REGISTRATION_TRANSITIONS) 159 159 160 160 class RegistrationWorkflowState(WorkflowState, grok.Adapter): … … 167 167 state_id = 'wf.registration.id' 168 168 169 class RegistrationWorkflowInfo(K OFAWorkflowInfo, grok.Adapter):169 class RegistrationWorkflowInfo(KofaWorkflowInfo, grok.Adapter): 170 170 """Adapter to adapt Student objects to workflow info objects. 171 171 """ 172 172 grok.context(IStudent) 173 grok.provides(IK OFAWorkflowInfo)173 grok.provides(IKofaWorkflowInfo) 174 174 175 175 def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.