From 0d8678ce8fff2864dbd86ec707240d5ca41e5042 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Wed, 26 Nov 2014 09:32:44 +0100 Subject: [PATCH] Payment/Manual: Add plugin stub --- .../indico_payment_manual/__init__.py | 0 .../indico_payment_manual/plugin.py | 28 ++++++++++++ payment_manual/setup.py | 43 +++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 payment_manual/indico_payment_manual/__init__.py create mode 100644 payment_manual/indico_payment_manual/plugin.py create mode 100644 payment_manual/setup.py diff --git a/payment_manual/indico_payment_manual/__init__.py b/payment_manual/indico_payment_manual/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/payment_manual/indico_payment_manual/plugin.py b/payment_manual/indico_payment_manual/plugin.py new file mode 100644 index 0000000..e30188b --- /dev/null +++ b/payment_manual/indico_payment_manual/plugin.py @@ -0,0 +1,28 @@ +# 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 . + +from __future__ import unicode_literals + +from indico.core.plugins import IndicoPlugin + + +class ManualPaymentPlugin(IndicoPlugin): + """Manual Payment + + Provides a payment method where bank details etc. are shown to the user + who then pays manually using e.g. a wire transfer. Marking the registrant + as paid is then done manually by a manager of the event. + """ diff --git a/payment_manual/setup.py b/payment_manual/setup.py new file mode 100644 index 0000000..63e8606 --- /dev/null +++ b/payment_manual/setup.py @@ -0,0 +1,43 @@ +# 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 . + +from __future__ import unicode_literals + +from setuptools import setup, find_packages + + +setup( + name='indico_payment_manual', + version='0.1', + url='https://github.com/indico/indico-plugins', + license='https://www.gnu.org/licenses/gpl-3.0.txt', + author='Indico Team', + author_email='indico-team@cern.ch', + packages=find_packages(), + zip_safe=False, + include_package_data=True, + platforms='any', + install_requires=[ + 'indico>=1.9.1' + ], + classifiers=[ + 'Environment :: Plugins', + 'Environment :: Web Environment', + 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', + 'Programming Language :: Python :: 2.7' + ], + entry_points={'indico.plugins': {'payment_manual = indico_payment_manual.plugin:ManualPaymentPlugin'}} +)