Ignore:
Timestamp:
8 Jun 2011, 21:17:42 (13 years ago)
Author:
Henrik Bettermann
Message:

Do not define workflow states as attributes. We will use the workflow adapters in views directly.

File:
1 edited

Legend:

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

    r6296 r6301  
    367367        readonly = True,
    368368        )
    369 
    370     #application_state = schema.Choice(
    371     #    title = u'Application Status',
    372     #    default = 'created',
    373     #    values = ['unchecked', 'checked']
    374     #    readonly = True,
    375     #    )
    376 
    377369    screening_score = schema.Int(
    378370        title = u'Screening Score',
     
    419411    omit fields. This has to be done in the respective form page.
    420412    """
     413    application_state = Attribute("The workflow state of an applicant object.")
     414
    421415    screening_score = schema.Int(
    422416        title = u'Screening Score',
     
    429423        readonly = True,
    430424        )
    431     course_admitted = schema.TextLine(
    432         # XXX: should be choice
     425    course_admitted = schema.Choice(
    433426        title = u'Admitted Course of Study',
    434         required = False,
    435         readonly = True,
    436         default = None,
     427        source = CertificateSource(),
     428        default = None,
     429        required = False,
     430        readonly = True,
    437431        )
    438432    entry_session = schema.TextLine(
Note: See TracChangeset for help on using the changeset viewer.