Changeset 13089


Ignore:
Timestamp:
21 Jun 2015, 15:12:52 (9 years ago)
Author:
Henrik Bettermann
Message:

Clean up code. Remove redundant IApplicantBase interface.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
6 edited

Legend:

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

    r13080 r13089  
    2727from zope.schema.interfaces import (
    2828    ValidationError, ISource, IContextSourceBinder)
    29 from waeup.kofa.browser.interfaces import IApplicantBase
    3029from waeup.kofa.schema import TextLineChoice, FormattedDate
    3130from waeup.kofa.interfaces import (
     
    321320    'year'].order =  IApplicantsContainer['year'].order
    322321
    323 class IApplicantBaseData(IApplicantBase):
     322class IApplicantBaseData(IKofaObject):
    324323    """This is a base interface of an applicant with no field
    325324    required. For use with processors, forms, etc., please use one of
     
    458457        """
    459458
    460 class ISpecialApplicant(IApplicantBase):
     459class ISpecialApplicant(IKofaObject):
    461460    """This reduced interface is for former students or students who are not
    462     student users of the portal but have to pay supplementary fees.
    463 
     461    users of the portal but have to pay supplementary fees.
    464462    This interface is used in browser components only. Thus we can't add
    465463    fields here to the regular IApplicant interface here. We can
    466464    only 'customize' fields.
    467465    """
    468     history = Attribute('Object history, a list of messages')
    469     state = Attribute('The application state of an applicant')
    470     display_fullname = Attribute('The fullname of an applicant')
    471     application_date = Attribute('UTC datetime of submission, used for export only')
    472     password = Attribute('Encrypted password of a applicant')
    473     application_number = Attribute('The key under which the record is stored')
    474466
    475467    suspended = schema.Bool(
     
    582574        )
    583575
    584 IApplicantEdit['email'].order = IApplicantEdit[
    585     'sex'].order
     576IApplicantEdit['email'].order = IApplicantEdit['sex'].order
    586577
    587578class IApplicantUpdateByRegNo(IApplicant):
     
    622613class IApplicantOnlinePayment(IOnlinePayment):
    623614    """An applicant payment via payment gateways.
    624 
    625615    """
    626616
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py

    r11254 r13089  
    190190
    191191class IStudentNavigationBase(IKofaObject):
    192     """Objects that provide student navigation (whatever it is) should
     192    """Objects that provide student navigation should
    193193       implement this interface.
    194194    """
    195195    student = Attribute('''Some student object that has a '''
    196196                        ''' `display_fullname` attribute.''')
    197 
    198 class IApplicantBase(IKofaObject):
    199     """Some Applicant.
    200     """
    201     display_fullname = Attribute('''Fullname.''')
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r13055 r13089  
    3535from waeup.kofa.interfaces import MessageFactory as _
    3636from waeup.kofa.utils.helpers import to_timezone
    37 from waeup.kofa.browser.interfaces import (
    38     IStudentNavigationBase, IApplicantBase)
     37from waeup.kofa.browser.interfaces import IStudentNavigationBase
    3938from waeup.kofa.authentication import get_principal_role_manager
    4039
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/changepw.pt

    r8777 r13089  
    1616    </tbody>
    1717  </table>
    18 
     18  <br />
    1919  <p i18n:translate="email_address_problem">
    2020    Enter the email address stored in Kofa.
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/loginpage.pt

    r11254 r13089  
    3030    Inititialize your student account <strong><a href="requestpw"> here</a></strong>.
    3131  </p>
    32   <p i18n:translate="login_trouble3"> Or simply forgot your student id, application id or password? Then request a new password
     32  <p i18n:translate="login_trouble3"> Or simply forgot your student id, applicant id or password? Then request a new password
    3333    <strong><a href="changepw"> here</a></strong>.
    3434  </p>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r13076 r13089  
    10731073                return
    10741074            # Mark pin as used (this also fires a pin related transition)
    1075             # and fire transition start_clearance
     1075            # and fire transition request_transcript
    10761076            comment = _(u"invalidated")
    10771077            # Here we know that the ac is in state initialized so we do not
Note: See TracChangeset for help on using the changeset viewer.