Changeset 15588 for main/kofacustom.dspg
- Timestamp:
- 17 Sep 2019, 18:27:50 (5 years ago)
- 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 203 203 @property 204 204 def note(self): 205 if self.context.special: 206 return 205 207 note = getattr(self.context.__parent__, 'application_slip_notice', None) 206 208 if note: … … 232 234 @property 233 235 def form_fields(self): 234 if self.target == 'conv':236 if self.target in ('conv', 'special'): 235 237 form_fields = grok.AutoFields(ICustomSpecialApplicant) 236 238 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') 239 243 return form_fields 240 244 form_fields = grok.AutoFields(ICustomUGApplicant) -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/interfaces.py
r15576 r15588 289 289 class ICustomSpecialApplicant(ISpecialApplicant): 290 290 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 291 304 carryover_courses = schema.Text( 292 305 title = _(u'Carry-Over Courses'), 293 306 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 ) 311 310 class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant, 312 311 ICustomSpecialApplicant): -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/applicants/viewlets.py
r15576 r15588 29 29 """Get a URL to the target... 30 30 """ 31 if self.context.state in ('initialized', 'started', 'paid') \ 32 or self.context.special: 31 if self.context.state in ('initialized', 'started', 'paid'): 33 32 return 34 33 if self.context.__parent__.prefix == 'conv': -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/permissions.py
r10765 r15588 23 23 """ Permissions of Computer Center members. 24 24 25 This is basically a copy of the thePortalManager. We exclude some25 This is basically a copy of the PortalManager. We exclude some 26 26 permissions by commenting them out. 27 27 """
Note: See TracChangeset for help on using the changeset viewer.