Adapt to WP renames

This commit is contained in:
Adrian Moennich 2017-10-09 17:59:41 +02:00
parent c9217a7d2e
commit fbeec70097
3 changed files with 11 additions and 10 deletions

View File

@ -17,26 +17,27 @@
from __future__ import unicode_literals
from indico.core.plugins import WPJinjaMixinPlugin
from indico.legacy.webinterface.pages.conferences import WPConferenceDefaultDisplayBase, WPConferenceModifBase
from indico.modules.events.management.views import WPEventManagementLegacy
from indico.modules.events.views import WPConferenceDisplayLegacyBase
class WPChatEventPage(WPJinjaMixinPlugin, WPConferenceDefaultDisplayBase):
class WPChatEventPage(WPJinjaMixinPlugin, WPConferenceDisplayLegacyBase):
menu_entry_plugin = 'chat'
menu_entry_name = 'chatrooms'
def __init__(self, rh, conf, **kwargs):
WPConferenceDefaultDisplayBase.__init__(self, rh, conf, **kwargs)
WPConferenceDisplayLegacyBase.__init__(self, rh, conf, **kwargs)
self._conf = conf
def _getBody(self, params):
return self._getPageContent(params)
def getCSSFiles(self):
return WPConferenceDefaultDisplayBase.getCSSFiles(self) + self._asset_env['eventservices_sass'].urls()
return WPConferenceDisplayLegacyBase.getCSSFiles(self) + self._asset_env['eventservices_sass'].urls()
def getJSFiles(self):
return WPConferenceDefaultDisplayBase.getJSFiles(self) + self._asset_env['modules_event_display_js'].urls()
return WPConferenceDisplayLegacyBase.getJSFiles(self) + self._asset_env['modules_event_display_js'].urls()
class WPChatEventMgmt(WPJinjaMixinPlugin, WPConferenceModifBase):
class WPChatEventMgmt(WPJinjaMixinPlugin, WPEventManagementLegacy):
sidemenu_option = 'chat'

View File

@ -15,8 +15,8 @@
# along with Indico; if not, see <http://www.gnu.org/licenses/>.
from indico.core.plugins import WPJinjaMixinPlugin
from indico.legacy.webinterface.pages.conferences import WPConferenceModifBase
from indico.modules.events.management.views import WPEventManagementLegacy
class WPStatistics(WPJinjaMixinPlugin, WPConferenceModifBase):
class WPStatistics(WPJinjaMixinPlugin, WPEventManagementLegacy):
sidemenu_option = 'statistics'

View File

@ -17,8 +17,8 @@
from __future__ import unicode_literals
from indico.core.plugins import WPJinjaMixinPlugin
from indico.legacy.webinterface.pages.conferences import WPConferenceDefaultDisplayBase
from indico.modules.categories.views import WPCategory
from indico.modules.events.views import WPConferenceDisplayLegacyBase
class WPSearchCategory(WPJinjaMixinPlugin, WPCategory):
@ -26,6 +26,6 @@ class WPSearchCategory(WPJinjaMixinPlugin, WPCategory):
return self._getPageContent(params)
class WPSearchConference(WPJinjaMixinPlugin, WPConferenceDefaultDisplayBase):
class WPSearchConference(WPJinjaMixinPlugin, WPConferenceDisplayLegacyBase):
def _getBody(self, params):
return self._getPageContent(params)