Ignore:
Timestamp:
8 Mar 2012, 22:28:46 (13 years ago)
Author:
Henrik Bettermann
Message:

KOFA -> Kofa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r7811 r7819  
    3535from waeup.kofa.applicants.workflow import INITIALIZED, STARTED, PAID, SUBMITTED
    3636from waeup.kofa.browser import (
    37     KOFAPage, KOFAEditFormPage, KOFAAddFormPage, KOFADisplayFormPage,
     37    KofaPage, KofaEditFormPage, KofaAddFormPage, KofaDisplayFormPage,
    3838    DEFAULT_PASSPORT_IMAGE_PATH)
    3939from waeup.kofa.browser.interfaces import ICaptchaManager
     
    4444from waeup.kofa.browser.resources import datepicker, tabs, datatable, warning
    4545from waeup.kofa.interfaces import (
    46     IKOFAObject, ILocalRolesAssignable, IExtFileStore, IPDF,
    47     IFileStoreNameChooser, IPasswordValidator, IUserAccount, IKOFAUtils)
     46    IKofaObject, ILocalRolesAssignable, IExtFileStore, IPDF,
     47    IFileStoreNameChooser, IPasswordValidator, IUserAccount, IKofaUtils)
    4848from waeup.kofa.interfaces import MessageFactory as _
    4949from waeup.kofa.permissions import get_users_with_local_roles
     
    5656from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
    5757
    58 grok.context(IKOFAObject) # Make IKOFAObject the default context
    59 
    60 class ApplicantsRootPage(KOFAPage):
     58grok.context(IKofaObject) # Make IKofaObject the default context
     59
     60class ApplicantsRootPage(KofaPage):
    6161    grok.context(IApplicantsRoot)
    6262    grok.name('index')
     
    7070        return
    7171
    72 class ApplicantsRootManageFormPage(KOFAEditFormPage):
     72class ApplicantsRootManageFormPage(KofaEditFormPage):
    7373    grok.context(IApplicantsRoot)
    7474    grok.name('manage')
     
    141141        return del_local_roles(self,3,**data)
    142142
    143 class ApplicantsContainerAddFormPage(KOFAAddFormPage):
     143class ApplicantsContainerAddFormPage(KofaAddFormPage):
    144144    grok.context(IApplicantsRoot)
    145145    grok.require('waeup.manageApplication')
     
    215215        return self.context.p_id
    216216
    217 class ApplicantsContainerPage(KOFADisplayFormPage):
     217class ApplicantsContainerPage(KofaDisplayFormPage):
    218218    """The standard view for regular applicant containers.
    219219    """
     
    232232    @property
    233233    def introduction(self):
    234         portal_language = getUtility(IKOFAUtils).PORTAL_LANGUAGE
     234        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    235235        lang = self.request.cookies.get('kofa.language', portal_language)
    236236        html = self.context.description_dict.get(lang,'')
     
    246246        return "%s" % self.context.title
    247247
    248 class ApplicantsContainerManageFormPage(KOFAEditFormPage):
     248class ApplicantsContainerManageFormPage(KofaEditFormPage):
    249249    grok.context(IApplicantsContainer)
    250250    grok.name('manage')
     
    349349        return del_local_roles(self,3,**data)
    350350
    351 class ApplicantAddFormPage(KOFAAddFormPage):
     351class ApplicantAddFormPage(KofaAddFormPage):
    352352    """Add-form to add an applicant.
    353353    """
     
    372372        return
    373373
    374 class ApplicantDisplayFormPage(KOFADisplayFormPage):
     374class ApplicantDisplayFormPage(KofaDisplayFormPage):
    375375    grok.context(IApplicant)
    376376    grok.name('index')
     
    484484
    485485
    486 class OnlinePaymentDisplayFormPage(KOFADisplayFormPage):
     486class OnlinePaymentDisplayFormPage(KofaDisplayFormPage):
    487487    """ Page to view an online payment ticket
    488488    """
     
    547547    @property
    548548    def title(self):
    549         portal_language = getUtility(IKOFAUtils).PORTAL_LANGUAGE
     549        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    550550        return translate(_('Payment Data'), 'waeup.kofa',
    551551            target_language=portal_language)
     
    553553    @property
    554554    def label(self):
    555         portal_language = getUtility(IKOFAUtils).PORTAL_LANGUAGE
     555        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    556556        return translate(_('Online Payment Receipt'),
    557557            'waeup.kofa', target_language=portal_language) \
     
    582582    #@property
    583583    #def label(self):
    584     #    portal_language = getUtility(IKOFAUtils).PORTAL_LANGUAGE
     584    #    portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    585585    #    container_title = self.context.__parent__.title
    586586    #    label = translate('Application Record',
     
    638638    return True
    639639
    640 class ApplicantManageFormPage(KOFAEditFormPage):
     640class ApplicantManageFormPage(KofaEditFormPage):
    641641    """A full edit view for applicant data.
    642642    """
     
    883883        return image
    884884
    885 class ApplicantRegistrationPage(KOFAAddFormPage):
     885class ApplicantRegistrationPage(KofaAddFormPage):
    886886    """Captcha'd registration page for applicants.
    887887    """
     
    926926        self.applyData(applicant, **data)
    927927        self.context.addApplicant(applicant)
    928         kofa_utils = getUtility(IKOFAUtils)
     928        kofa_utils = getUtility(IKofaUtils)
    929929        password = kofa_utils.genPassword()
    930930        IUserAccount(applicant).setPassword(password)
     
    941941        return
    942942
    943 class ApplicantRegistrationEmailSent(KOFAPage):
     943class ApplicantRegistrationEmailSent(KofaPage):
    944944    """Landing page after successful registration.
    945945    """
Note: See TracChangeset for help on using the changeset viewer.