Ignore:
Timestamp:
25 Jun 2016, 03:59:22 (9 years ago)
Author:
Henrik Bettermann
Message:

Referee report mandates need to redirect with mandate_id.

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  
    1919"""
    2020import grok
     21from urllib import urlencode
    2122from waeup.kofa.browser.layout import UtilityView
    2223from waeup.kofa.interfaces import IUniversity
     
    4243            return
    4344        (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)
    4448        return
    4549
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py

    r13988 r13989  
    3434    grok.provides(IMandate)
    3535    grok.baseclass()
     36
     37    REDIRECT_WITH_MANDATE_ID = False
    3638
    3739    def __init__(self, days=1, mandate_id=None):
     
    8688    """
    8789
     90    REDIRECT_WITH_MANDATE_ID = True
     91
    8892    def execute(self):
    8993        if self.expires < datetime.utcnow():
Note: See TracChangeset for help on using the changeset viewer.