- Timestamp:
- 8 Mar 2012, 22:28:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r7811 r7819 35 35 from waeup.kofa.applicants.workflow import INITIALIZED, STARTED, PAID, SUBMITTED 36 36 from waeup.kofa.browser import ( 37 K OFAPage, KOFAEditFormPage, KOFAAddFormPage, KOFADisplayFormPage,37 KofaPage, KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage, 38 38 DEFAULT_PASSPORT_IMAGE_PATH) 39 39 from waeup.kofa.browser.interfaces import ICaptchaManager … … 44 44 from waeup.kofa.browser.resources import datepicker, tabs, datatable, warning 45 45 from waeup.kofa.interfaces import ( 46 IK OFAObject, ILocalRolesAssignable, IExtFileStore, IPDF,47 IFileStoreNameChooser, IPasswordValidator, IUserAccount, IK OFAUtils)46 IKofaObject, ILocalRolesAssignable, IExtFileStore, IPDF, 47 IFileStoreNameChooser, IPasswordValidator, IUserAccount, IKofaUtils) 48 48 from waeup.kofa.interfaces import MessageFactory as _ 49 49 from waeup.kofa.permissions import get_users_with_local_roles … … 56 56 from waeup.kofa.widgets.restwidget import ReSTDisplayWidget 57 57 58 grok.context(IK OFAObject) # Make IKOFAObject the default context59 60 class ApplicantsRootPage(K OFAPage):58 grok.context(IKofaObject) # Make IKofaObject the default context 59 60 class ApplicantsRootPage(KofaPage): 61 61 grok.context(IApplicantsRoot) 62 62 grok.name('index') … … 70 70 return 71 71 72 class ApplicantsRootManageFormPage(K OFAEditFormPage):72 class ApplicantsRootManageFormPage(KofaEditFormPage): 73 73 grok.context(IApplicantsRoot) 74 74 grok.name('manage') … … 141 141 return del_local_roles(self,3,**data) 142 142 143 class ApplicantsContainerAddFormPage(K OFAAddFormPage):143 class ApplicantsContainerAddFormPage(KofaAddFormPage): 144 144 grok.context(IApplicantsRoot) 145 145 grok.require('waeup.manageApplication') … … 215 215 return self.context.p_id 216 216 217 class ApplicantsContainerPage(K OFADisplayFormPage):217 class ApplicantsContainerPage(KofaDisplayFormPage): 218 218 """The standard view for regular applicant containers. 219 219 """ … … 232 232 @property 233 233 def introduction(self): 234 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE234 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 235 235 lang = self.request.cookies.get('kofa.language', portal_language) 236 236 html = self.context.description_dict.get(lang,'') … … 246 246 return "%s" % self.context.title 247 247 248 class ApplicantsContainerManageFormPage(K OFAEditFormPage):248 class ApplicantsContainerManageFormPage(KofaEditFormPage): 249 249 grok.context(IApplicantsContainer) 250 250 grok.name('manage') … … 349 349 return del_local_roles(self,3,**data) 350 350 351 class ApplicantAddFormPage(K OFAAddFormPage):351 class ApplicantAddFormPage(KofaAddFormPage): 352 352 """Add-form to add an applicant. 353 353 """ … … 372 372 return 373 373 374 class ApplicantDisplayFormPage(K OFADisplayFormPage):374 class ApplicantDisplayFormPage(KofaDisplayFormPage): 375 375 grok.context(IApplicant) 376 376 grok.name('index') … … 484 484 485 485 486 class OnlinePaymentDisplayFormPage(K OFADisplayFormPage):486 class OnlinePaymentDisplayFormPage(KofaDisplayFormPage): 487 487 """ Page to view an online payment ticket 488 488 """ … … 547 547 @property 548 548 def title(self): 549 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE549 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 550 550 return translate(_('Payment Data'), 'waeup.kofa', 551 551 target_language=portal_language) … … 553 553 @property 554 554 def label(self): 555 portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE555 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 556 556 return translate(_('Online Payment Receipt'), 557 557 'waeup.kofa', target_language=portal_language) \ … … 582 582 #@property 583 583 #def label(self): 584 # portal_language = getUtility(IK OFAUtils).PORTAL_LANGUAGE584 # portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 585 585 # container_title = self.context.__parent__.title 586 586 # label = translate('Application Record', … … 638 638 return True 639 639 640 class ApplicantManageFormPage(K OFAEditFormPage):640 class ApplicantManageFormPage(KofaEditFormPage): 641 641 """A full edit view for applicant data. 642 642 """ … … 883 883 return image 884 884 885 class ApplicantRegistrationPage(K OFAAddFormPage):885 class ApplicantRegistrationPage(KofaAddFormPage): 886 886 """Captcha'd registration page for applicants. 887 887 """ … … 926 926 self.applyData(applicant, **data) 927 927 self.context.addApplicant(applicant) 928 kofa_utils = getUtility(IK OFAUtils)928 kofa_utils = getUtility(IKofaUtils) 929 929 password = kofa_utils.genPassword() 930 930 IUserAccount(applicant).setPassword(password) … … 941 941 return 942 942 943 class ApplicantRegistrationEmailSent(K OFAPage):943 class ApplicantRegistrationEmailSent(KofaPage): 944 944 """Landing page after successful registration. 945 945 """
Note: See TracChangeset for help on using the changeset viewer.