- Timestamp:
- 15 Aug 2015, 20:20:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r13198 r13200 38 38 NullValidator, jsaction, action, UtilityView) 39 39 from waeup.kofa.browser.breadcrumbs import Breadcrumb 40 from waeup.kofa.browser.pages import ContactAdminFormPage, ExportCSVView, doll_up 40 from waeup.kofa.browser.pages import ( 41 ContactAdminFormPage, ExportCSVView, doll_up, running_jobs) 41 42 from waeup.kofa.browser.interfaces import ICaptchaManager 42 43 from waeup.kofa.hostels.hostel import NOT_OCCUPIED … … 3245 3246 "system load. Please try again later."), type='danger') 3246 3247 return 3248 if running_jobs(self): 3249 self.flash(_( 3250 "Sorry, another export job is running. " 3251 "Please try again later."), type='danger') 3252 self.entries = doll_up(self, user=None) 3253 return 3247 3254 if payments_start or payments_end: 3248 3255 date_format = '%d/%m/%Y' … … 3340 3347 return 3341 3348 utils = queryUtility(IKofaUtils) 3349 if utils.export_disabled_message(): 3350 self.flash(utils.export_disabled_message(), type='danger') 3351 self.entries = doll_up(self, user=None) 3352 return 3342 3353 if not utils.expensive_actions_allowed(): 3343 3354 self.flash(_( 3344 3355 "Currently, exporters cannot be started due to high " 3345 3356 "system load. Please try again later."), type='danger') 3357 return 3358 if running_jobs(self): 3359 self.flash(_( 3360 "Sorry, another export job is running. " 3361 "Please try again later."), type='danger') 3362 self.entries = doll_up(self, user=None) 3346 3363 return 3347 3364 try: … … 3426 3443 return 3427 3444 utils = queryUtility(IKofaUtils) 3445 if utils.export_disabled_message(): 3446 self.flash(utils.export_disabled_message(), type='danger') 3447 self.entries = doll_up(self, user=None) 3448 return 3428 3449 if not utils.expensive_actions_allowed(): 3429 3450 self.flash(_( 3430 3451 "Currently, exporters cannot be started due to high " 3431 3452 "system load. Please try again later."), type='danger') 3453 return 3454 if running_jobs(self): 3455 self.flash(_( 3456 "Sorry, another export job is running. " 3457 "Please try again later."), type='danger') 3458 self.entries = doll_up(self, user=None) 3432 3459 return 3433 3460 if session == 'all':
Note: See TracChangeset for help on using the changeset viewer.