1 # -*- coding: utf-8 -*-
4 ## This file is part of Indico.
5 ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
7 ## Indico is free software; you can redistribute it and/or
8 ## modify it under the terms of the GNU General Public License as
9 ## published by the Free Software Foundation; either version 3 of the
10 ## License, or (at your option) any later version.
12 ## Indico is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ## General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with Indico;if not, see <http://www.gnu.org/licenses/>.
20 from MaKaC.webinterface.urlHandlers import URLHandler as MainURLHandler
21 from MaKaC.plugins.EPayment import payWay
24 class EPURLHandler(MainURLHandler):
28 def getURL(cls, target=None):
29 return super(EPURLHandler, cls).getURL(target, EPaymentName=payWay.MODULE_ID, requestTag=cls._requestTag)
32 class UHConfModifEPayment(EPURLHandler):
33 _endpoint = 'event_mgmt.confModifEpayment-modifModule'
36 class UHConfModifEPaymentPayWay( UHConfModifEPayment ):
37 _requestTag = "modifPayWay"
38 class UHConfModifEPaymentPayWayDataModif( UHConfModifEPayment ):
39 _requestTag = "modifPayWayData"
40 class UHConfModifEPaymentPayWayPerformDataModif( UHConfModifEPayment ):
41 _requestTag = "modifPayWayPerformDataModif"
44 class UHPay(EPURLHandler):
45 _endpoint = 'misc.payment'
47 class UHPayConfirmPayWay( UHPay ):
48 _requestTag = "confirm"
49 class UHPayCancelPayWay( UHPay ):
50 _requestTag = "cancel"
51 class UHPayParamsPayWay( UHPay ):
52 _requestTag = "params"