diff --git a/vc_vidyo/MANIFEST.in b/vc_vidyo/MANIFEST.in index 8f59533..1698ce1 100644 --- a/vc_vidyo/MANIFEST.in +++ b/vc_vidyo/MANIFEST.in @@ -1,3 +1,4 @@ graft indico_vc_vidyo/static -graft indico_vc_vidyo/templates graft indico_vc_vidyo/migrations +graft indico_vc_vidyo/templates +graft indico_vc_vidyo/translations diff --git a/vc_vidyo/indico_vc_vidyo/__init__.py b/vc_vidyo/indico_vc_vidyo/__init__.py index e69de29..eb87eed 100644 --- a/vc_vidyo/indico_vc_vidyo/__init__.py +++ b/vc_vidyo/indico_vc_vidyo/__init__.py @@ -0,0 +1,21 @@ +# 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.util.i18n import make_bound_gettext + +_ = make_bound_gettext('vc_vidyo') diff --git a/vc_vidyo/indico_vc_vidyo/forms.py b/vc_vidyo/indico_vc_vidyo/forms.py index a4caa5d..e100ef9 100644 --- a/vc_vidyo/indico_vc_vidyo/forms.py +++ b/vc_vidyo/indico_vc_vidyo/forms.py @@ -23,10 +23,11 @@ from wtforms.fields.simple import TextAreaField from wtforms.validators import DataRequired, Length, Regexp, Optional, ValidationError from indico.modules.vc.forms import VCRoomFormBase, VCRoomAttachFormBase -from indico.util.i18n import _ from indico.util.user import retrieve_principal from indico.web.forms.fields import PrincipalField, IndicoPasswordField from indico.web.forms.widgets import SwitchWidget + +from indico_vc_vidyo import _ from indico_vc_vidyo.util import iter_user_identities PIN_RE = re.compile(r'^\d+$') diff --git a/vc_vidyo/indico_vc_vidyo/plugin.py b/vc_vidyo/indico_vc_vidyo/plugin.py index bff77f7..573484f 100644 --- a/vc_vidyo/indico_vc_vidyo/plugin.py +++ b/vc_vidyo/indico_vc_vidyo/plugin.py @@ -28,11 +28,11 @@ from indico.core.plugins import IndicoPlugin, url_for_plugin, IndicoPluginBluepr from indico.modules.vc.exceptions import VCRoomError, VCRoomNotFoundError from indico.modules.vc import VCPluginSettingsFormBase, VCPluginMixin from indico.modules.vc.views import WPVCManageEvent, WPVCEventPage -from indico.util.i18n import _ from indico.util.user import retrieve_principal, principal_to_tuple from indico.web.forms.fields import IndicoPasswordField from indico.web.forms.widgets import CKEditorWidget +from indico_vc_vidyo import _ from indico_vc_vidyo.api import AdminClient, APIException, RoomNotFoundAPIException from indico_vc_vidyo.cli import cli_manager from indico_vc_vidyo.forms import VCRoomForm, VCRoomAttachForm