Changeset 15588


Ignore:
Timestamp:
17 Sep 2019, 18:27:50 (5 years ago)
Author:
Henrik Bettermann
Message:

Enable application slip for special applications.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/browser.py

    r15580 r15588  
    203203    @property
    204204    def note(self):
     205        if self.context.special:
     206            return
    205207        note = getattr(self.context.__parent__, 'application_slip_notice', None)
    206208        if note:
     
    232234    @property
    233235    def form_fields(self):
    234         if self.target == 'conv':
     236        if self.target in ('conv', 'special'):
    235237            form_fields = grok.AutoFields(ICustomSpecialApplicant)
    236238            form_fields = form_fields.omit(
    237                 'special_application', 'carryover_courses',
    238                 'locked', 'suspended')
     239                'special_application',
     240                'locked', 'suspended', 'applicant_id')
     241            if not self.context.carryover_courses:
     242                form_fields = form_fields.omit('carryover_courses')
    239243            return form_fields
    240244        form_fields = grok.AutoFields(ICustomUGApplicant)
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/interfaces.py

    r15576 r15588  
    289289class ICustomSpecialApplicant(ISpecialApplicant):
    290290
     291    department = schema.TextLine(
     292        title = _(u'Department'),
     293        required = True,
     294        readonly = False,
     295        )
     296
     297    grad_year = schema.Choice(
     298        title = _(u'Year of Graduation'),
     299        required = True,
     300        values = grad_year_range(),
     301        readonly = False,
     302        )
     303
    291304    carryover_courses = schema.Text(
    292305        title = _(u'Carry-Over Courses'),
    293306        required = False,
    294         description = _(
    295             u'Enter course titles if carry-over remedial payment.'),
    296         )
    297 
    298     department = schema.TextLine(
    299         title = _(u'Department'),
    300         required = True,
    301         readonly = False,
    302         )
    303 
    304     grad_year = schema.Choice(
    305         title = _(u'Year of Graduation'),
    306         required = True,
    307         values = grad_year_range(),
    308         readonly = False,
    309         )
    310 
     307        #description = _(
     308        #    u'Enter course titles if carry-over remedial payment.'),
     309        )
    311310class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant,
    312311                       ICustomSpecialApplicant):
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/viewlets.py

    r15576 r15588  
    2929        """Get a URL to the target...
    3030        """
    31         if self.context.state in ('initialized', 'started', 'paid') \
    32             or self.context.special:
     31        if self.context.state in ('initialized', 'started', 'paid'):
    3332            return
    3433        if self.context.__parent__.prefix == 'conv':
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/permissions.py

    r10765 r15588  
    2323    """ Permissions of Computer Center members.
    2424
    25     This is basically a copy of the the PortalManager. We exclude some
     25    This is basically a copy of the PortalManager. We exclude some
    2626    permissions by commenting them out.
    2727    """
Note: See TracChangeset for help on using the changeset viewer.