From 1e271128359a2c153f6a0125f35d3445e2494884 Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Wed, 11 Feb 2015 13:54:48 +0100 Subject: [PATCH] VC: Add a dummy vc plugin for testing --- vc_dummy/indico_vc_dummy/__init__.py | 0 vc_dummy/indico_vc_dummy/plugin.py | 32 ++++++++++++++++++++ vc_dummy/setup.py | 44 ++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 vc_dummy/indico_vc_dummy/__init__.py create mode 100644 vc_dummy/indico_vc_dummy/plugin.py create mode 100644 vc_dummy/setup.py diff --git a/vc_dummy/indico_vc_dummy/__init__.py b/vc_dummy/indico_vc_dummy/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vc_dummy/indico_vc_dummy/plugin.py b/vc_dummy/indico_vc_dummy/plugin.py new file mode 100644 index 0000000..1b90df9 --- /dev/null +++ b/vc_dummy/indico_vc_dummy/plugin.py @@ -0,0 +1,32 @@ +# This file is part of Indico. +# Copyright (C) 2002 - 2015 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 +from indico.modules.vc import VCPluginMixin + + +class DummyPlugin(VCPluginMixin, IndicoPlugin): + """Dummy + + Dummy Video conferencing plugin + """ + configurable = True + + @property + def logo_url(self): + return "http://fc05.deviantart.net/fs70/f/2011/257/7/7/_dummy__vector_by_phlum-d49u7mk.png" diff --git a/vc_dummy/setup.py b/vc_dummy/setup.py new file mode 100644 index 0000000..d740720 --- /dev/null +++ b/vc_dummy/setup.py @@ -0,0 +1,44 @@ +# This file is part of Indico. +# Copyright (C) 2002 - 2015 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_vc_dummy', + 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', + 'sleekxmpp' + ], + 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': {'vc_dummy = indico_vc_dummy.plugin:DummyPlugin'}} +)