rename paypal to payway
[indico-PayWay] / MaKaC / plugins / EPayment / payWay / webinterface / urlHandlers.py
1 # -*- coding: utf-8 -*-
2 ##
3 ##
4 ## This file is part of Indico.
5 ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
6 ##
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.
11 ##
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.
16 ##
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/>.
19
20 from MaKaC.webinterface.urlHandlers import URLHandler as MainURLHandler
21 from MaKaC.plugins.EPayment import payWay
22
23
24 class EPURLHandler(MainURLHandler):
25     _requestTag = ''
26
27     @classmethod
28     def getURL(cls, target=None):
29         return super(EPURLHandler, cls).getURL(target, EPaymentName=payWay.MODULE_ID, requestTag=cls._requestTag)
30
31
32 class UHConfModifEPayment(EPURLHandler):
33     _endpoint = 'event_mgmt.confModifEpayment-modifModule'
34
35
36 class UHConfModifEPaymentPayWay( UHConfModifEPayment ):
37     _requestTag = "modifPayWay"
38 class UHConfModifEPaymentPayWayDataModif( UHConfModifEPayment ):
39     _requestTag = "modifPayWayData"
40 class UHConfModifEPaymentPayWayPerformDataModif( UHConfModifEPayment ):
41     _requestTag = "modifPayWayPerformDataModif"
42
43
44 class UHPay(EPURLHandler):
45     _endpoint = 'misc.payment'
46
47 class UHPayConfirmPayWay( UHPay ):
48     _requestTag = "confirm"
49 class UHPayCancelPayWay( UHPay ):
50     _requestTag = "cancel"
51 class UHPayParamsPayWay( UHPay ):
52     _requestTag = "params"