old_contents: # -*- coding: utf-8 -*-
  ##
  ##
  ## This file is part of Indico.
  ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
  ##
  ## Indico is free software; you can redistribute it and/or
  ## modify it under the terms of the GNU General Public License as
  ## published by the Free Software Foundation; either version 3 of the
  ## License, or (at your option) any later version.
  ##
  ## Indico is distributed in the hope that it will be useful, but
  ## WITHOUT ANY WARRANTY; without even the implied warranty of
  ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  ## General Public License for more details.
  ##
  ## You should have received a copy of the GNU General Public License
  ## along with Indico. If not, see <http://www.gnu.org/licenses/>.
  
  from MaKaC.webinterface.rh import ePaymentModif
  from indico.web.flask.blueprints.event.management import event_mgmt
  
  
  # General settings
  event_mgmt.add_url_rule('/registration/payment/', 'confModifEpayment', ePaymentModif.RHEPaymentModif)
  event_mgmt.add_url_rule('/registration/payment/modify', 'confModifEpayment-dataModif',
                          ePaymentModif.RHEPaymentModifDataModification, methods=('GET', 'POST'))
  event_mgmt.add_url_rule('/registration/payment/modify/save', 'confModifEpayment-performDataModif',
                          ePaymentModif.RHEPaymentModifPerformDataModification, methods=('POST',))
  event_mgmt.add_url_rule('/registration/payment/toggle', 'confModifEpayment-changeStatus',
                          ePaymentModif.RHEPaymentModifChangeStatus, methods=('POST',))
  
  # Modules
  event_mgmt.add_url_rule('/registration/payment/modules/<EPaymentName>/<requestTag>', 'confModifEpayment-modifModule',
                          ePaymentModif.RHModifModule, methods=('GET', 'POST'))
  event_mgmt.add_url_rule('/registration/payment/toggle/<epayment>', 'confModifEpayment-enableSection',
                          ePaymentModif.RHEPaymentModifEnableSection, methods=('GET', 'POST'))
  
new_contents: # -*- coding: utf-8 -*-
  ##
  ##
  ## This file is part of Indico.
  ## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
  ##
  ## Indico is free software; you can redistribute it and/or
  ## modify it under the terms of the GNU General Public License as
  ## published by the Free Software Foundation; either version 3 of the
  ## License, or (at your option) any later version.
  ##
  ## Indico is distributed in the hope that it will be useful, but
  ## WITHOUT ANY WARRANTY; without even the implied warranty of
  ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  ## General Public License for more details.
  ##
  ## You should have received a copy of the GNU General Public License
  ## along with Indico. If not, see <http://www.gnu.org/licenses/>.
  
  from MaKaC.webinterface.rh import ePaymentModif
  from indico.web.flask.blueprints.event.management import event_mgmt
  
  
  # General settings
  event_mgmt.add_url_rule('/registration/payment-old/', 'confModifEpayment', ePaymentModif.RHEPaymentModif)
  event_mgmt.add_url_rule('/registration/payment-old/modify', 'confModifEpayment-dataModif',
                          ePaymentModif.RHEPaymentModifDataModification, methods=('GET', 'POST'))
  event_mgmt.add_url_rule('/registration/payment-old/modify/save', 'confModifEpayment-performDataModif',
                          ePaymentModif.RHEPaymentModifPerformDataModification, methods=('POST',))
  event_mgmt.add_url_rule('/registration/payment-old/toggle', 'confModifEpayment-changeStatus',
                          ePaymentModif.RHEPaymentModifChangeStatus, methods=('POST',))
  
  # Modules
  event_mgmt.add_url_rule('/registration/payment-old/modules/<EPaymentName>/<requestTag>',
                          'confModifEpayment-modifModule', ePaymentModif.RHModifModule, methods=('GET', 'POST'))
  event_mgmt.add_url_rule('/registration/payment-old/toggle/<epayment>', 'confModifEpayment-enableSection',
                          ePaymentModif.RHEPaymentModifEnableSection, methods=('GET', 'POST'))
  
subject: Change url for legacy epayment settings