Changeset 14113 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 23 Aug 2016, 07:00:13 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r14104 r14113 22 22 from zope.i18n import translate 23 23 from zope.component import getUtility, queryUtility 24 from zope.schema.interfaces import TooBig, TooSmall 24 25 from zope.security import checkPermission 25 26 from zope.catalog.interfaces import ICatalog … … 699 700 ticket_error = True 700 701 if not ticket_error and ticket.score != score: 701 ticket.score = score 702 try: 703 ticket.score = score 704 except TooBig: 705 error += '%s, ' % ticket.student.display_fullname 706 ticket_error = True 707 pass 702 708 ticket.student.__parent__.logger.info( 703 709 '%s - %s %s/%s score updated (%s)' % … … 705 711 ticket.level, ticket.code, score)) 706 712 if not ticket_error and ticket.ca != ca: 707 ticket.ca = ca 713 try: 714 ticket.ca = ca 715 except TooBig: 716 error += '%s, ' % ticket.student.display_fullname 717 pass 708 718 ticket.student.__parent__.logger.info( 709 719 '%s - %s %s/%s ca updated (%s)' % … … 712 722 if error: 713 723 self.flash(_('Error: Score(s) and CA(s) of %s have not be updated. ' 714 'Only integers are allowed.' % error.strip(', ')), 715 type="danger") 724 % error.strip(', ')), type="danger") 716 725 return 717 726 self.flash(_('You successfully updated course results.')) -
main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py
r14107 r14113 333 333 """ 334 334 335 score = schema.Int( 336 title = _(u'Score'), 337 required = False, 338 readonly = False, 339 max = 70, 340 ) 341 335 342 ca = schema.Int( 336 343 title = _(u'CA'), … … 338 345 required = False, 339 346 missing_value = None, 347 max = 30, 340 348 ) 341 349 … … 347 355 required = False, 348 356 readonly = False, 357 max = 70, 349 358 ) 350 359 … … 353 362 required = False, 354 363 readonly = False, 364 max = 30, 355 365 ) 356 366
Note: See TracChangeset for help on using the changeset viewer.