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

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

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.