def test_translation_plugins(app, tmpdir): session.lang = 'fr_FR' plugin = MockPlugin(plugin_engine, app) app.extensions['pluginengine'].plugins['dummy'] = plugin plugin.root_path = tmpdir.strpath french_core_str = DICTIONARIES['fr_FR']['This is not a string'] french_plugin_str = "This is not le french string" trans_dir = os.path.join(plugin.root_path, 'translations', 'fr_FR', 'LC_MESSAGES') os.makedirs(trans_dir) # Create proper *.mo file for plugin translation with open(os.path.join(trans_dir, 'messages.mo'), 'wb') as f: catalog = Catalog(locale='fr_FR', domain='plugin') catalog.add("This is not a string", "This is not le french string") write_mo(f, catalog) gettext_plugin = make_bound_gettext('dummy') assert _(u'This is not a string') == french_core_str assert gettext_context(u"This is not a string") == french_core_str assert gettext_plugin(u"This is not a string") == french_plugin_str with plugin.plugin_context(): assert _(u'This is not a string') == french_core_str assert gettext_context(u"This is not a string") == french_plugin_str assert gettext_plugin(u"This is not a string") == french_plugin_str
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('payment_paypal')
# This file is part of Indico. # Copyright (C) 2002 - 2017 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('search') __all__ = ('SearchPluginBase', 'SearchEngine', 'SearchForm') from .base import SearchPluginBase, SearchEngine from .forms import SearchForm
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2020 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.legacy.common.cache import GenericCache from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('conversion') cache = GenericCache('pdf-conversion')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2021 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('ursh')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2022 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('livesync') __all__ = ('LiveSyncPluginBase', 'LiveSyncBackendBase', 'AgentForm', 'SimpleChange', 'process_records', 'Uploader') from .base import LiveSyncBackendBase, LiveSyncPluginBase # noqa: E402 from .forms import AgentForm # noqa: E402 from .simplify import SimpleChange, process_records # noqa: E402 from .uploader import Uploader # noqa: E402 @signals.core.import_tasks.connect def _import_tasks(sender, **kwargs): import indico_livesync.task # noqa: F401
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2021 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from celery.schedules import crontab from indico.core.celery import celery from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('outlook') @celery.periodic_task(run_every=crontab(minute='*/15')) def scheduled_update(): from indico_outlook.calendar import update_calendar update_calendar()
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2017 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('search_cern')
# 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 __future__ import unicode_literals from indico.modules.events.settings import EventSettingsProxy from indico.util.i18n import make_bound_gettext from indico.core import signals from indico.modules.events.features.base import EventFeature _ = make_bound_gettext('print_checkin') print_checkin_event_settings = EventSettingsProxy('print_checkin', { 'webhookurl': None, 'ticket_template_id': None, 'ticket_template': None, 'send_json': False, }) @signals.event.get_feature_definitions.connect def _get_feature_definitions(sender, **kwargs): return PrintCheckinFeature class PrintCheckinFeature(EventFeature):
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2018 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('burotel')
# This file is part of Indico. # Copyright (C) 2002 - 2018 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('livesync_invenio')
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2018 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('livesync_cern')
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2017 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('payment_cern')
# This file is part of Indico. # Copyright (C) 2002 - 2018 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 __future__ import unicode_literals from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('storage_s3') @signals.import_tasks.connect def _import_tasks(sender, **kwargs): import indico_storage_s3.task
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('piwik')
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('importer_invenio')
# 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 __future__ import unicode_literals from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('livesync') __all__ = ('LiveSyncPluginBase', 'LiveSyncBackendBase', 'AgentForm', 'SimpleChange', 'process_records', 'MARCXMLGenerator', 'Uploader', 'MARCXMLUploader') from .base import LiveSyncPluginBase, LiveSyncBackendBase # isort:skip from .forms import AgentForm # isort:skip from .simplify import SimpleChange, process_records # isort:skip from .marcxml import MARCXMLGenerator # isort:skip from .uploader import Uploader, MARCXMLUploader # isort:skip @signals.import_tasks.connect def _import_tasks(sender, **kwargs): import indico_livesync.task
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('vc_vidyo') @signals.import_tasks.connect def _import_tasks(sender, **kwargs): import indico_vc_vidyo.task
# You should have received a copy of the GNU General Public License # along with SixPay Indico EPayment Plugin; # if not, see <http://www.gnu.org/licenses/>. """Utility functions used by the Sixpay payment plugin.""" from __future__ import unicode_literals, division import uuid import iso4217 from werkzeug.exceptions import NotImplemented as HTTPNotImplemented from flask_pluginengine import current_plugin from indico.util.i18n import make_bound_gettext #: internationalisation/localisation of strings gettext = make_bound_gettext('payment_sixpay') # Saferpay API details saferpay_json_api_spec = '1.12' saferpay_pp_init_url = 'Payment/v1/PaymentPage/Initialize' saferpay_pp_assert_url = 'Payment/v1/PaymentPage/Assert' saferpay_pp_capture_url = 'Payment/v1/Transaction/Capture' saferpay_pp_cancel_url = 'Payment/v1/Transaction/Cancel' # provider string provider = 'sixpay' # currencies for which the major to minor currency ratio # is not a multiple of 10 NON_DECIMAL_CURRENCY = {'MRU', 'MGA'}
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2020 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('audiovisual') SERVICES = {'webcast': _('Webcast'), 'recording': _('Recording')} SHORT_SERVICES = {'webcast': 'WC', 'recording': 'REC'}
from flask import current_app from flask_pluginengine import render_plugin_template, current_plugin from wtforms import StringField, BooleanField from indico.cli.core import cli_command, cli_group from indico.core import signals from indico.util.i18n import session_language, get_current_locale, IndicoLocale, make_bound_gettext, make_bound_ngettext from indico.util.i18n import gettext as core_gettext from indico.core.plugins import IndicoPlugin, IndicoPluginBlueprint from indico.web.forms.base import IndicoForm from indico.web.rh import RH from indico.web.views import WPDecorated gettext = _ = make_bound_gettext('example') ngettext = make_bound_ngettext('example') class SettingsForm(IndicoForm): dummy_message = StringField('Dummy Message') show_message = BooleanField('Show Message') class ExamplePlugin(IndicoPlugin): """Example Plugin An example plugin that demonstrates the capabilities of the new Indico plugin system. """ configurable = True
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('search') __all__ = ('SearchPluginBase', 'SearchEngine', 'SearchForm') from .base import SearchPluginBase, SearchEngine from .forms import SearchForm
# This file is part of Indico. # Copyright (C) 2002 - 2018 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('search_elastic')
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext("livesync_invenio")
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('payment_manual')
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2020 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from celery.schedules import crontab from indico.core.celery import celery from indico.core.db import db from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('cern_access') @celery.periodic_task(run_every=crontab(minute='0', hour='5')) def scheduled_sanitization(): from indico_cern_access.util import sanitize_personal_data sanitize_personal_data() db.session.commit()
# This file is part of Indico. # Copyright (C) 2002 - 2018 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('importer') __all__ = ('ImporterSourcePluginBase', 'ImporterEngineBase') from .base import ImporterSourcePluginBase, ImporterEngineBase # isort:skip
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2020 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('importer_invenio')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2020 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('storage_s3') @signals.import_tasks.connect def _import_tasks(sender, **kwargs): import indico_storage_s3.task
# This file is part of Indico. # Copyright (C) 2002 - 2018 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('search_invenio')
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2021 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('vc_assistance')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2019 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('vc_vidyo') @signals.import_tasks.connect def _import_tasks(sender, **kwargs): import indico_vc_vidyo.task
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2019 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('payment_paypal')
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2020 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('ravem')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2020 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('importer') __all__ = ('ImporterSourcePluginBase', 'ImporterEngineBase') from .base import ImporterSourcePluginBase, ImporterEngineBase # isort:skip
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2021 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('payment_manual')
# -*- coding: utf-8 -*- # # This file is part of the Indico Footer Customisation Plugin. # Copyright (C) 2018 Eileen Kuehn, Max Fischer # # This 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. # # This software 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 Footer Customisation Plugin;if not, see <http://www.gnu.org/licenses/>. from indico.util.i18n import make_bound_gettext gettext = make_bound_gettext('custom_footer')
# This file is part of Indico. # Copyright (C) 2002 - 2018 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('piwik')
# This file is part of the Indico plugins. # Copyright (C) 2020 - 2021 CERN and ENEA # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('vc_zoom')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2020 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('payment_touchnet')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2022 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('citadel')
# This file is part of Indico. # Copyright (C) 2002 - 2016 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 __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('chat')
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2019 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext('chat')
# # 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 __future__ import unicode_literals from indico.core import signals from indico.util.i18n import make_bound_gettext _ = make_bound_gettext("livesync") __all__ = ( "LiveSyncPluginBase", "LiveSyncBackendBase", "AgentForm", "SimpleChange", "process_records", "MARCXMLGenerator", "Uploader", "MARCXMLUploader", ) from .base import LiveSyncPluginBase, LiveSyncBackendBase from .forms import AgentForm from .simplify import SimpleChange, process_records from .marcxml import MARCXMLGenerator