mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Adapt to WP renames
This commit is contained in:
parent
c9217a7d2e
commit
fbeec70097
@ -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'
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user