Changeset 6189 for main/waeup.sirp/trunk/src
- Timestamp:
- 22 May 2011, 08:32:37 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6184 r6189 327 327 @grok.action('Remove selected') 328 328 def delApplicant(self, **data): 329 return self.flash('Removal of applicants is not yet implemented!') 329 form = self.request.form 330 if form.has_key('val_id'): 331 child_id = form['val_id'] 332 else: 333 self.flash('No applicant selected!') 334 self.redirect(self.url(self.context, '@@manage')+'#tab-2') 335 return 336 if not isinstance(child_id, list): 337 child_id = [child_id] 338 deleted = [] 339 for id in child_id: 340 try: 341 del self.context[id] 342 deleted.append(id) 343 except: 344 self.flash('Could not delete %s: %s: %s' % ( 345 id, sys.exc_info()[0], sys.exc_info()[1])) 346 if len(deleted): 347 self.flash('Successfully removed: %s' % ', '.join(deleted)) 348 self.redirect(self.url(self.context, u'@@manage')+'#tab-2') 349 return 330 350 331 351 @grok.action('Add applicant', validator=NullValidator) -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6184 r6189 35 35 from waeup.sirp.image.image import WAeUPImageFile 36 36 from waeup.sirp.interfaces import IWAeUPObject, SimpleWAeUPVocabulary 37 from waeup.sirp.university.vocabularies import application_categories 37 38 38 39 … … 207 208 ) 208 209 210 application_category = schema.Choice( 211 title = u'Category for the grouping of study courses', 212 required = True, 213 default = None, 214 source = application_categories, 215 ) 216 209 217 description = schema.Text( 210 218 title = u'Human readable description in reST format', -
main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py
r6025 r6189 8 8 course_levels, 9 9 semester, 10 application_categor y,10 application_categories, 11 11 study_mode, 12 12 inst_types, … … 221 221 application_category = schema.Choice( 222 222 title = u'Application Category', 223 vocabulary = application_categor y,223 vocabulary = application_categories, 224 224 default = u'basic', 225 225 required = True, -
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r6100 r6189 39 39 ) 40 40 41 application_categor y= SimpleWAeUPVocabulary(41 application_categories = SimpleWAeUPVocabulary( 42 42 ('--',''), 43 43 ('PUME, PDE, PCE, PRENCE','basic'),
Note: See TracChangeset for help on using the changeset viewer.