Changeset 13989 for main/waeup.kofa/trunk/src/waeup/kofa/mandates
- Timestamp:
- 25 Jun 2016, 03:59:22 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/mandates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py
r13986 r13989 19 19 """ 20 20 import grok 21 from urllib import urlencode 21 22 from waeup.kofa.browser.layout import UtilityView 22 23 from waeup.kofa.interfaces import IUniversity … … 42 43 return 43 44 (self.msg, self.redirect_path) = mandate.execute() 45 if mandate.REDIRECT_WITH_MANDATE_ID: 46 args = {'mandate_id':mandate_id} 47 self.redirect_path = self.redirect_path + '?%s' % urlencode(args) 44 48 return 45 49 -
main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py
r13988 r13989 34 34 grok.provides(IMandate) 35 35 grok.baseclass() 36 37 REDIRECT_WITH_MANDATE_ID = False 36 38 37 39 def __init__(self, days=1, mandate_id=None): … … 86 88 """ 87 89 90 REDIRECT_WITH_MANDATE_ID = True 91 88 92 def execute(self): 89 93 if self.expires < datetime.utcnow():
Note: See TracChangeset for help on using the changeset viewer.