mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Rename plugin
This commit is contained in:
parent
5b8af08ffe
commit
fc3585c128
@ -3,25 +3,25 @@ from indico.core.plugins import IndicoPlugin, IndicoPluginBlueprint, url_for_plu
|
||||
from MaKaC.i18n import _
|
||||
from MaKaC.webinterface.wcomponents import SideMenuItem
|
||||
|
||||
from controllers import RHStatisticsView
|
||||
from controllers import RHStatistics
|
||||
from forms import SettingsForm
|
||||
|
||||
|
||||
class StatisticsPlugin(IndicoPlugin):
|
||||
"""Statistics plugin
|
||||
class PiwikPlugin(IndicoPlugin):
|
||||
"""Piwik statistics plugin
|
||||
|
||||
This statistics plugin provides statistics of conferences, meetings and
|
||||
contributions. Notice it's not designed to provide general analytics.
|
||||
Piwik statistics plugin provides statistics of conferences, meetings
|
||||
and contributions.
|
||||
"""
|
||||
|
||||
settings_form = SettingsForm
|
||||
|
||||
def init(self):
|
||||
super(StatisticsPlugin, self).init()
|
||||
super(PiwikPlugin, self).init()
|
||||
self.connect(signals.event_management_sidemenu, self.add_sidemenu_item)
|
||||
|
||||
def add_sidemenu_item(self, event):
|
||||
menu_item = SideMenuItem(_("Statistics (new)"), url_for_plugin('statistics.view', event))
|
||||
menu_item = SideMenuItem(_("Piwik Statistics"), url_for_plugin('piwik.view', event))
|
||||
return ('statistics', menu_item)
|
||||
|
||||
def get_blueprints(self):
|
||||
@ -34,5 +34,5 @@ class StatisticsPlugin(IndicoPlugin):
|
||||
self.register_css_bundle('jqtree_css', 'js/lib/jqTree/jqtree.css')
|
||||
|
||||
|
||||
blueprint = IndicoPluginBlueprint('statistics', __name__)
|
||||
blueprint.add_url_rule('/event/<confId>/manage/statistics_new', 'view', RHStatisticsView)
|
||||
blueprint = IndicoPluginBlueprint('piwik', __name__)
|
||||
blueprint.add_url_rule('/event/<confId>/manage/statistics_new', 'view', RHStatistics)
|
||||
@ -3,7 +3,7 @@ from MaKaC.webinterface.rh.conferenceModif import RHConferenceModifBase
|
||||
from .views import WPStatistics
|
||||
|
||||
|
||||
class RHStatisticsView(RHConferenceModifBase):
|
||||
class RHStatistics(RHConferenceModifBase):
|
||||
def _checkParams(self, params):
|
||||
RHConferenceModifBase._checkParams(self, params)
|
||||
self._params = params
|
||||
|
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
|
||||
setup(
|
||||
name='indico_statistics',
|
||||
name='indico_piwik',
|
||||
version='0.1',
|
||||
packages=find_packages(),
|
||||
zip_safe=False,
|
||||
@ -11,5 +11,5 @@ setup(
|
||||
install_requires=[
|
||||
'indico>=1.9.1'
|
||||
],
|
||||
entry_points={'indico.plugins': {'statistics = indico_statistics:StatisticsPlugin'}}
|
||||
entry_points={'indico.plugins': {'piwik = indico_piwik:PiwikPlugin'}}
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user