Ignore:
Timestamp:
6 Apr 2012, 15:27:12 (12 years ago)
Author:
Henrik Bettermann
Message:

Merge IApplicantProcessData and IApplicantBaseData.

All attributes and fields of an applicant must be exportable.

File:
1 edited

Legend:

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

    r8044 r8052  
    303303    admission.
    304304    """
     305
     306    history = Attribute('Object history, a list of messages')
     307    state = Attribute('The application state of an applicant')
     308    display_fullname = Attribute('The fullname of an applicant')
     309    application_date = Attribute('Date of submission, used for export only')
     310    password = Attribute('Encrypted password of a applicant')
     311    application_number = Attribute('The key under which the record is stored')
     312
    305313    applicant_id = schema.TextLine(
    306314        title = _(u'Applicant Id'),
     
    373381    #    )
    374382
    375     #
    376     # Data to be imported after screening
    377     #
     383    notice = schema.Text(
     384        title = _(u'Notice'),
     385        required = False,
     386        )
     387    screening_venue = schema.TextLine(
     388        title = _(u'Screening Venue'),
     389        required = False,
     390        )
    378391    screening_score = schema.Int(
    379392        title = _(u'Screening Score'),
    380         required = False,
    381         )
    382     screening_venue = schema.TextLine(
    383         title = _(u'Screening Venue'),
    384393        required = False,
    385394        )
     
    389398        required = False,
    390399        )
    391     notice = schema.Text(
    392         title = _(u'Notice'),
    393         required = False,
    394         )
    395 
    396 class IApplicantProcessData(IApplicantBaseData):
     400    student_id = schema.TextLine(
     401        title = _(u'Student Id'),
     402        required = False,
     403        readonly = False,
     404        )
     405    locked = schema.Bool(
     406        title = _(u'Form locked'),
     407        default = False,
     408        )
     409
     410class IApplicant(IApplicantBaseData):
    397411    """An applicant.
    398412
    399     Here we add process attributes and methods to the base data.
    400     """
    401 
    402     history = Attribute('Object history, a list of messages')
    403     state = Attribute('The application state of an applicant')
    404     display_fullname = Attribute('The fullname of an applicant')
    405     application_date = Attribute('Date of submission, used for export only')
    406     password = Attribute('Encrypted password of a applicant')
    407     application_number = Attribute('The key under which the record is stored')
     413    This is basically the applicant base data. Here we repeat the
     414    fields from base data if we have to set the `required` attribute
     415    to True (which is the default).
     416    """
    408417
    409418    def loggerInfo(ob_class, comment):
    410419        """Adds an INFO message to the log file
    411420        """
    412 
    413     student_id = schema.TextLine(
    414         title = _(u'Student Id'),
    415         required = False,
    416         readonly = False,
    417         )
    418     locked = schema.Bool(
    419         title = _(u'Form locked'),
    420         default = False,
    421         )
    422 
    423 class IApplicant(IApplicantProcessData):
    424     """An applicant.
    425 
    426     This is basically the applicant base data. Here we repeat the
    427     fields from base data if we have to set the `required` attribute
    428     to True (which is the default).
    429     """
    430421
    431422    def createStudent():
Note: See TracChangeset for help on using the changeset viewer.