Changeset 8196 for main


Ignore:
Timestamp:
17 Apr 2012, 12:14:03 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename customized classes. Uli, do you think that's better?

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/applicant.py

    r8020 r8196  
    2323from waeup.kofa.utils.helpers import attrs_to_fields
    2424from waeup.uniben.applicants.interfaces import(
    25     IApplicant, IUGApplicantEdit, IPGApplicantEdit)
     25    ICustomApplicant, IUGApplicantEdit, IPGApplicantEdit)
    2626
    27 class Applicant(Applicant):
     27class CustomApplicant(Applicant):
    2828
    29     grok.implements(IApplicant, IUGApplicantEdit, IPGApplicantEdit)
    30     grok.provides(IApplicant)
     29    grok.implements(ICustomApplicant, IUGApplicantEdit, IPGApplicantEdit)
     30    grok.provides(ICustomApplicant)
    3131
    3232# Set all attributes of Applicant required in IApplicant as field
     
    3434# ourselves and as a bonus we get free validation when an attribute is
    3535# set.
    36 Applicant = attrs_to_fields(Applicant)
     36CustomApplicant = attrs_to_fields(CustomApplicant)
    3737
    38 class ApplicantFactory(ApplicantFactory):
     38class CustomApplicantFactory(ApplicantFactory):
    3939    """A factory for customized applicants.
    4040    """
    4141
    4242    def __call__(self, *args, **kw):
    43         return Applicant()
     43        return CustomApplicant()
    4444
    4545    def getInterfaces(self):
    46         return implementedBy(Applicant)
     46        return implementedBy(CustomApplicant)
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r8187 r8196  
    3131from waeup.uniben.interfaces import MessageFactory as _
    3232
    33 class RequestCallbackActionButton(RequestCallbackActionButton):
     33class CustomRequestCallbackActionButton(RequestCallbackActionButton):
    3434    """ Do not display the base package callback button in custom pages.
    3535    """
     
    3838        return ''
    3939
    40 class OnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
     40class CustomOnlinePaymentCallbackPage(OnlinePaymentCallbackPage):
    4141    """ Neutralize callback simulation view
    4242    """
     
    4444        return
    4545
    46 class PDFApplicationSlip(PDFApplicationSlip):
     46class CustomPDFApplicationSlip(PDFApplicationSlip):
    4747
    4848    @property
     
    5757        return form_fields
    5858
    59 class ApplicantDisplayFormPage(ApplicantDisplayFormPage):
     59class CustomApplicantDisplayFormPage(ApplicantDisplayFormPage):
    6060    """A display view for applicant data.
    6161    """
     
    7272        return form_fields
    7373
    74 class ApplicantManageFormPage(ApplicantManageFormPage):
     74class CustomApplicantManageFormPage(ApplicantManageFormPage):
    7575    """A full edit view for applicant data.
    7676    """
     
    8787        return form_fields
    8888
    89 class ApplicantEditFormPage(ApplicantEditFormPage):
     89class CustomApplicantEditFormPage(ApplicantEditFormPage):
    9090    """An applicant-centered edit view for applicant data.
    9191    """
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/export.py

    r8056 r8196  
    2323from waeup.uniben.applicants.interfaces import IUGApplicant, IPGApplicant
    2424
    25 class ApplicantsExporter(ApplicantsExporter):
     25class CustomApplicantsExporter(ApplicantsExporter):
    2626    """Exporter for Uniben Applicants.
    2727    """
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r8184 r8196  
    224224
    225225
    226 class IApplicant(IUGApplicant,IPGApplicant):
     226class ICustomApplicant(IUGApplicant,IPGApplicant):
    227227    """An interface for both types of applicants.
    228228
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py

    r8130 r8196  
    3434from waeup.kofa.interfaces import IBatchProcessor
    3535from waeup.uniben.testing import FunctionalLayer
    36 from waeup.uniben.applicants.export import ApplicantsExporter
     36from waeup.uniben.applicants.export import CustomApplicantsExporter
    3737
    3838
     
    187187        # set values we can expect in export file
    188188        self.applicant = self.setup_applicant(self.applicant)
    189         exporter = ApplicantsExporter()
     189        exporter = CustomApplicantsExporter()
    190190        exporter.export_all(self.app, self.outfile)
    191191        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.