Changeset 13959 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 21 Jun 2016, 04:46:56 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r13908 r13959 1049 1049 pnav = 0 1050 1050 label = _(u'Edit portal configuration') 1051 taboneactions = [_('Save'), _('Update plugins') ]1051 taboneactions = [_('Save'), _('Update plugins'), _('Purge mandates')] 1052 1052 tabtwoactions = [ 1053 1053 _('Add session configuration'), … … 1100 1100 grok.getSite().updatePlugins() 1101 1101 self.flash(_('Plugins were updated. See log file for details.')) 1102 return 1103 1104 @action(_('Purge mandates'), 1105 tooltip=_('For experts only!'), 1106 validator=NullValidator) 1107 def purgeMandates(self, **data): 1108 num = grok.getSite()['mandates'].removeExpired() 1109 self.flash(_('${a} mandate(s) were purged.', mapping = {'a': num})) 1102 1110 return 1103 1111 -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/configurationmanagepage.pt
r13394 r13959 16 16 <tbody> 17 17 <tal:widgets content="structure provider:widgets" /> 18 <tr> 19 <td>Mandates:</td> 20 <td> 21 <span tal:content="python:layout.site['mandates'].count[0]"></span> 22 <span i18n:translate="">active</span>, 23 <span tal:content="python:layout.site['mandates'].count[0]"></span> 24 <span i18n:translate="">expired</span>, 25 <span tal:content="python:layout.site['mandates'].count[0]"></span> 26 <span i18n:translate="">total</span> 27 </td> 28 </tr> 18 29 </tbody> 19 30 </table>
Note: See TracChangeset for help on using the changeset viewer.