- Timestamp:
- 22 Feb 2014, 15:46:03 (11 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk
- Property svn:mergeinfo changed
-
main/waeup.kofa/trunk/src/waeup/kofa
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa merged eligible /main/waeup.kofa/branches/uli-autoinclude-less/src/waeup/kofa 8871-8888 /main/waeup.sirp/branches/uli-studentpw/src/waeup/kofa 6703-6755 /main/waeup.sirp/branches/ulif-extimgstore/src/waeup/kofa 7001-7062 /main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/kofa 7761-7794
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/browser.py
r9637 r11254 22 22 from zope.component import getUtility 23 23 from hurry.workflow.interfaces import InvalidTransitionError 24 from waeup.kofa.browser.resources import datatable25 24 from waeup.kofa.browser.layout import KofaPage, KofaAddFormPage, NullValidator 26 25 from waeup.kofa.browser.breadcrumbs import Breadcrumb … … 52 51 return 53 52 if not batches: 54 self.flash(_('No batch selected.') )53 self.flash(_('No batch selected.'), type='warning') 55 54 return 56 55 if isinstance(batches, basestring): … … 102 101 @action(_('Cancel'), validator=NullValidator) 103 102 def cancel(self, *args, **kw): 104 self.flash(_('Batch creation cancelled.') )103 self.flash(_('Batch creation cancelled.'), type='warning') 105 104 self.redirect(self.url(self.context)) 106 105 … … 120 119 def update(self, filenames=None, reimport=None, cancel=None): 121 120 if cancel is not None: 122 self.flash(_('Reimport cancelled.') )121 self.flash(_('Reimport cancelled.'), type='warning') 123 122 self.redirect(self.url(self.context)) 124 123 return … … 126 125 return 127 126 if not filenames: 128 self.flash(_('No file chosen. Action cancelled.') )127 self.flash(_('No file chosen. Action cancelled.'), type='warning') 129 128 self.redirect(self.url(self.context)) 130 129 return … … 137 136 except KeyError: 138 137 self.flash(_('This batch already exists: ${a}', 139 mapping = {'a':filename}) )138 mapping = {'a':filename}), type='warning') 140 139 continue 141 140 self.flash(_('Successfully reimported: ${a}', … … 156 155 disable_button = _('Disable ACs') 157 156 enable_button = _('Enable ACs') 157 cancel_button = _('Cancel Search') 158 158 159 159 def update(self, *args, **kw): 160 datatable.need()161 160 form = self.request.form 161 if 'cancel' in form: 162 self.redirect(self.url(self.context)) 163 return 162 164 self.hitlist = [] 163 165 if 'searchterm' in form and form['searchterm']: … … 187 189 except InvalidTransitionError: 188 190 self.flash(_('${a}: Disable transition not allowed.', 189 mapping = {'a':entry}) )191 mapping = {'a':entry}), type='danger') 190 192 elif 'enable' in form: 191 193 try: … … 196 198 self.context.logger_info(ob_class, message) 197 199 except InvalidTransitionError: 198 self.flash(_('${a}: Re-enable transition not allowed.', mapping = {'a':entry})) 200 self.flash(_('${a}: Re-enable transition not allowed.', 201 mapping = {'a':entry}), type='danger') 199 202 self.hitlist = search(query=self.searchterm, 200 203 searchtype=self.searchtype, view=self)
Note: See TracChangeset for help on using the changeset viewer.