Changeset 14141 for main


Ignore:
Timestamp:
1 Sep 2016, 03:58:57 (8 years ago)
Author:
Henrik Bettermann
Message:

Add first and second sitting fields to UG interfaces.

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

Legend:

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

    r14105 r14141  
    156156
    157157    def _show_pastq_putme(self):
    158         return self.target.startswith('ase') \
    159                and self.context.state in ('paid', 'submitted') \
    160                and getattr(self.context, 'course1') is not None
     158        #return self.target.startswith('ase') \
     159        #       and self.context.state in ('paid', 'submitted') \
     160        #       and getattr(self.context, 'course1') is not None
     161        return False
    161162
    162163    @property
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r14140 r14141  
    253253        readonly = False,
    254254        )
     255    fst_sit_fname = schema.TextLine(
     256        title = _(u'Full Name'),
     257        required = False,
     258        readonly = False,
     259        )
     260    fst_sit_no = schema.TextLine(
     261        title = _(u'Exam Number'),
     262        required = False,
     263        readonly = False,
     264        )
     265    fst_sit_date = FormattedDate(
     266        title = _(u'Exam Date'),
     267        required = False,
     268        readonly = False,
     269        show_year = True,
     270        )
     271    fst_sit_type = schema.Choice(
     272        title = _(u'Exam Type'),
     273        required = False,
     274        readonly = False,
     275        vocabulary = exam_types,
     276        )
     277    fst_sit_results = schema.List(
     278        title = _(u'Exam Results'),
     279        value_type = ResultEntryField(),
     280        required = False,
     281        readonly = False,
     282        defaultFactory=list,
     283        )
     284    scd_sit_fname = schema.TextLine(
     285        title = _(u'Full Name'),
     286        required = False,
     287        readonly = False,
     288        )
     289    scd_sit_no = schema.TextLine(
     290        title = _(u'Exam Number'),
     291        required = False,
     292        readonly = False,
     293        )
     294    scd_sit_date = FormattedDate(
     295        title = _(u'Exam Date'),
     296        required = False,
     297        readonly = False,
     298        show_year = True,
     299        )
     300    scd_sit_type = schema.Choice(
     301        title = _(u'Exam Type'),
     302        required = False,
     303        readonly = False,
     304        vocabulary = exam_types,
     305        )
     306    scd_sit_results = schema.List(
     307        title = _(u'Exam Results'),
     308        value_type = ResultEntryField(),
     309        required = False,
     310        readonly = False,
     311        defaultFactory=list,
     312        )
    255313    jamb_subjects = schema.Text(
    256314        title = _(u'Subjects and Scores'),
Note: See TracChangeset for help on using the changeset viewer.