コード例 #1
0
 def __init__(self, rh, subContribution, **kwargs):
     WPConferenceModifBase.__init__(self, rh,
                                    subContribution.getConference(),
                                    **kwargs)
     self._subContrib = self._target = subContribution
     self._conf = self._target.getConference()
     self._contrib = self._subContrib.getOwner()
コード例 #2
0
ファイル: contributionReviewing.py プロジェクト: florv/indico
    def __init__(self, rh, contribution, **kwargs):
        WPConferenceModifBase.__init__(self, rh, contribution.event_new.as_legacy, **kwargs)
        self._contrib = self._target = contribution
        from MaKaC.webinterface.rh.reviewingModif import RCPaperReviewManager

        self._isPRM = RCPaperReviewManager.hasRights(rh)
        self._canModify = self._contrib.can_manage(session.user)
コード例 #3
0
ファイル: __init__.py プロジェクト: pmart123/indico
 def __init__(self, rh, conference, **kwargs):
     custom_links = dict(
         values_from_signal(signals.event.timetable_buttons.send(self)))
     WPConferenceModifBase.__init__(self,
                                    rh,
                                    conference,
                                    custom_links=custom_links,
                                    **kwargs)
コード例 #4
0
 def __init__(self, rh, contribution, **kwargs):
     WPConferenceModifBase.__init__(self, rh,
                                    contribution.event_new.as_legacy,
                                    **kwargs)
     self._contrib = self._target = contribution
     from MaKaC.webinterface.rh.reviewingModif import RCPaperReviewManager
     self._isPRM = RCPaperReviewManager.hasRights(rh)
     self._canModify = self._contrib.can_manage(session.user)
コード例 #5
0
ファイル: files.py プロジェクト: bubbas/indico
 def __init__( self, rh, file ):
     self._file = file
     
     if self._file.getConference()!=None:
         
         WPConferenceModifBase.__init__( self, rh, self._file.getConference() )
     
     else:
         WPCategoryBase.__init__(self,rh,self._file.getCategory())
コード例 #6
0
 def __init__(self, rh, contribution):
     WPConferenceModifBase.__init__(self, rh, contribution.getConference())
     self._contrib = self._target = contribution
     from MaKaC.webinterface.rh.reviewingModif import RCPaperReviewManager
     self._isPRM = RCPaperReviewManager.hasRights(rh)
     self._canModify = self._contrib.canModify(
         rh.getAW()) or (self._contrib.getSession()
                         and self._contrib.getSession().canCoordinate(
                             rh.getAW(), "modifContribs"))
コード例 #7
0
    def __init__( self, rh, file ):
        self._file = file

        if self._file.getConference()!=None:

            WPConferenceModifBase.__init__( self, rh, self._file.getConference() )

        else:
            WPCategoryBase.__init__(self,rh,self._file.getCategory())
コード例 #8
0
ファイル: collaboration.py プロジェクト: lukasnellen/indico
 def __init__(self, rh, conf):
     """ Constructor
         The rh is expected to have the attributes _tabs, _activeTab, _tabPlugins (like for ex. RHConfModifCSBookings)
     """
     WPConferenceModifBase.__init__(self, rh, conf)
     self._conf = conf
     self._tabs = {} # list of Indico's Tab objects
     self._tabNames = rh._tabs
     self._activeTabName = rh._activeTabName
コード例 #9
0
ファイル: contributions.py プロジェクト: bubbas/indico
    def __init__(self, rh, contribution):
        WPConferenceModifBase.__init__(self, rh, contribution.getConference())
        self._contrib = self._target = contribution
        from MaKaC.webinterface.rh.reviewingModif import RCPaperReviewManager

        self._isPRM = RCPaperReviewManager.hasRights(rh)
        self._canModify = self._contrib.canModify(rh.getAW()) or (
            self._contrib.getSession() and self._contrib.getSession().canCoordinate(rh.getAW(), "modifContribs")
        )
コード例 #10
0
ファイル: chrome.py プロジェクト: arturodr/indico
 def __init__(self, rh, templateClass, activeTab, params):
     WPConferenceModifBase.__init__(self, rh, rh._conf)
     self._rh = rh
     self._conf = self._rh._conf
     self._register = StatisticsRegister()
     self._plugins = self._register.getAllPlugins(activeOnly=True)
     self._templateClass = templateClass
     self._extraJS = []
     self._activeTabName = activeTab
     self._params = params
     self._tabs = []
     self._tabCtrl = wcomponents.TabControl()
コード例 #11
0
ファイル: chrome.py プロジェクト: aninhalacerda/indico
 def __init__(self, rh, templateClass, activeTab, params):
     WPConferenceModifBase.__init__(self, rh, rh._conf)
     self._rh = rh
     self._conf = self._rh._conf
     self._register = StatisticsRegister()
     self._plugins = self._register.getAllPlugins(activeOnly=True)
     self._templateClass = templateClass
     self._extraJS = []
     self._activeTabName = activeTab
     self._params = params
     self._tabs = []
     self._tabCtrl = wcomponents.TabControl()
コード例 #12
0
ファイル: pages.py プロジェクト: marksteward/indico
 def __init__(self, rh, conf):
     """ Constructor
         The rh is expected to have the attributes _tabs, _activeTab, _tabPlugins (for ex. RHConfModifCSBookings)
     """
     WPConferenceModifBase.__init__(self, rh, conf)
     WPCollaborationBase.__init__(self)
     self._conf = conf
     self._tabs = {}  # list of Indico's Tab objects
     self._tabNames = rh._tabs
     self._activeTabName = rh._activeTabName
     self.rh = rh
     self._tabCtrl = wcomponents.TabControl()
コード例 #13
0
 def __init__(self, rh, conf):
     """ Constructor
         The rh is expected to have the attributes _tabs, _activeTab, _tabPlugins (for ex. RHConfModifCSBookings)
     """
     WPConferenceModifBase.__init__(self, rh, conf)
     WPCollaborationBase.__init__(self)
     self._conf = conf
     self._tabs = {}  # list of Indico's Tab objects
     self._tabNames = rh._tabs
     self._activeTabName = rh._activeTabName
     self.rh = rh
     self._tabCtrl = wcomponents.TabControl()
コード例 #14
0
 def __init__(self, rh, target):
     WPConferenceModifBase.__init__(self, rh, target)
                                        
     from MaKaC.webinterface.rh.reviewingModif import RCPaperReviewManager, RCAbstractManager
     self._isPRM = RCPaperReviewManager.hasRights(rh)
     self._isAM = RCAbstractManager.hasRights(rh)
     self._canModify = self._conf.canModify(rh.getAW())
                                        
     self._showListContribToJudge = self._conf.getConfReview().isReviewer(rh._getUser()) or \
                                    self._conf.getConfReview().isEditor(rh._getUser()) or \
                                    self._conf.getConfReview().isReferee(rh._getUser())
                                    
     self._showAssignContributions = self._canModify or self._isPRM or self._conf.getConfReview().isReferee(rh._getUser())
コード例 #15
0
ファイル: chrome.py プロジェクト: arturodr/indico
    def getCSSFiles(self):
        extraCSS = [
            '/statistics/css/main.css', '/statistics/js/lib/jqTree/jqtree.css',
            '/statistics/js/lib/jqPlot/jquery.jqplot.css'
        ]

        return WPConferenceModifBase.getCSSFiles(self) + extraCSS
コード例 #16
0
ファイル: views.py プロジェクト: pmart123/indico
 def getCSSFiles(self):
     return (WPConferenceModifBase.getCSSFiles(self) +
             self._asset_env['markdown_sass'].urls() +
             self._asset_env['selectize_css'].urls() +
             self._asset_env['reviewing_sass'].urls() +
             self._asset_env['abstracts_sass'].urls() +
             self._asset_env['contributions_sass'].urls())
コード例 #17
0
ファイル: views.py プロジェクト: OmeGak/indico
 def getCSSFiles(self):
     return (WPConferenceModifBase.getCSSFiles(self) +
             self._asset_env['markdown_sass'].urls() +
             self._asset_env['selectize_css'].urls() +
             self._asset_env['reviewing_sass'].urls() +
             self._asset_env['abstracts_sass'].urls() +
             self._asset_env['contributions_sass'].urls())
コード例 #18
0
ファイル: views.py プロジェクト: pferreir/indico
 def getJSFiles(self):
     return (
         WPConferenceModifBase.getJSFiles(self)
         + self._asset_env["modules_vc_js"].urls()
         + self._asset_env["selectize_js"].urls()
         + self._asset_env["zero_clipboard_js"].urls()
     )
コード例 #19
0
ファイル: pages.py プロジェクト: bubbas/indico
    def __init__(self, rh, conf):
        WPConferenceModifBase.__init__(self, rh, conf)
        self._conf = conf
        self._tabs = {} # list of Indico's Tab objects
        self._tabNames = rh._tabs
        self._activeTabName = rh._activeTabName
        self._aw = rh.getAW()

        self._tabCtrl = wcomponents.TabControl()

        plugin_htdocs = os.path.join(os.path.dirname(__file__), 'htdocs')

        self._plugin_asset_env = Environment(plugin_htdocs, '/InstantMessaging')
        self._plugin_asset_env.register('instant_messaging', Bundle('js/InstantMessaging.js',
                                                                    filters='jsmin',
                                                                    output="InstantMessaging_%(version)s.min.js"))
コード例 #20
0
ファイル: pages.py プロジェクト: sylvestre/indico
    def __init__(self, rh, conf):
        WPConferenceModifBase.__init__(self, rh, conf)
        self._conf = conf
        self._tabs = {} # list of Indico's Tab objects
        self._tabNames = rh._tabs
        self._activeTabName = rh._activeTabName
        self._aw = rh.getAW()

        self._tabCtrl = wcomponents.TabControl()

        info = HelperMaKaCInfo.getMaKaCInfoInstance()
        self._plugin_asset_env = PluginEnvironment('InstantMessaging', os.path.dirname(__file__), '/InstantMessaging')
        self._plugin_asset_env.debug = info.isDebugActive()
        self._plugin_asset_env.register('instant_messaging', Bundle('js/InstantMessaging.js',
                                                                    filters='rjsmin',
                                                                    output="InstantMessaging_%(version)s.min.js"))
コード例 #21
0
ファイル: pages.py プロジェクト: pferreir/indico-backup
    def __init__(self, rh, conf):
        WPConferenceModifBase.__init__(self, rh, conf)
        self._conf = conf
        self._tabs = {}  # list of Indico's Tab objects
        self._tabNames = rh._tabs
        self._activeTabName = rh._activeTabName
        self._aw = rh.getAW()

        self._tabCtrl = wcomponents.TabControl()

        self._plugin_asset_env = PluginEnvironment("InstantMessaging", os.path.dirname(__file__), "InstantMessaging")
        self._plugin_asset_env.register(
            "instant_messaging_js",
            Bundle("js/InstantMessaging.js", filters="rjsmin", output="InstantMessaging_%(version)s.min.js"),
        )
        self._plugin_asset_env.register(
            "instant_messaging_css",
            Bundle("css/im.css", filters="cssmin", output="InstantMessaging_%(version)s.min.css"),
        )
コード例 #22
0
ファイル: chrome.py プロジェクト: sylvestre/indico
    def getJSFiles(self):
        extraJS = ['/statistics/js/statistics.js',
                    '/statistics/js/lib/jqPlot/excanvas.min.js',
                    '/statistics/js/lib/jqTree/tree.jquery.js',
                    '/statistics/js/lib/jqPlot/jquery.jqplot.min.js']

        jqPlotPlugins = ['dateAxisRenderer', 'highlighter', 'cursor']

        self._addjqPlotPlugins(jqPlotPlugins, extraJS)

        return WPConferenceModifBase.getJSFiles(self) + extraJS
コード例 #23
0
ファイル: chrome.py プロジェクト: arturodr/indico
    def getJSFiles(self):
        extraJS = ['/statistics/js/statistics.js',
                    '/statistics/js/lib/jqPlot/excanvas.min.js',
                    '/statistics/js/lib/jqTree/tree.jquery.js',
                    '/statistics/js/lib/jqPlot/jquery.jqplot.min.js']

        jqPlotPlugins = ['dateAxisRenderer', 'highlighter', 'cursor']

        self._addjqPlotPlugins(jqPlotPlugins, extraJS)

        return WPConferenceModifBase.getJSFiles(self) + extraJS
コード例 #24
0
 def _getHeadContent(self):
     return (
         WPConferenceModifBase._getHeadContent(self)
         + render("js/mathjax.config.js.tpl")
         + "\n".join(
             [
                 '<script src="{0}" type="text/javascript"></script>'.format(url)
                 for url in self._asset_env["mathjax_js"].urls()
             ]
         )
     )
コード例 #25
0
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(
         self) + self._asset_env['registration_sass'].urls()
コード例 #26
0
ファイル: pages.py プロジェクト: bubbas/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + \
            ['InstantMessaging/im.css']
コード例 #27
0
ファイル: views.py プロジェクト: pmart123/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(
         self) + self._asset_env['modules_event_layout_js'].urls()
コード例 #28
0
ファイル: event.py プロジェクト: MichelCordeiro/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + self._asset_env['roombooking_sass'].urls()
コード例 #29
0
ファイル: subContributions.py プロジェクト: arturodr/indico
 def __init__( self, rh, subContribution ):
     WPConferenceModifBase.__init__( self, rh, subContribution.getConference() )
     self._subContrib = self._target = subContribution
     self._conf = self._target.getConference()
     self._contrib = self._subContrib.getOwner()
コード例 #30
0
 def _getHeadContent(self):
     return WPConferenceModifBase._getHeadContent(self) + render('js/mathjax.config.js.tpl') + \
         '\n'.join(['<script src="{0}" type="text/javascript"></script>'.format(url)
                    for url in self._asset_env['mathjax_js'].urls()])
コード例 #31
0
ファイル: contributions.py プロジェクト: dbourillot/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + \
         self._asset_env['abstracts_js'].urls()
コード例 #32
0
ファイル: views.py プロジェクト: hennogous/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + self._asset_env['modules_registration_js'].urls()
コード例 #33
0
ファイル: __init__.py プロジェクト: pmart123/indico
 def getJSFiles(self):
     return (WPConferenceModifBase.getJSFiles(self) +
             self._asset_env['modules_timetable_js'].urls() +
             self._asset_env['modules_contributions_js'].urls())
コード例 #34
0
ファイル: event.py プロジェクト: marcosmolla/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + self._asset_env['roombooking_sass'].urls()
コード例 #35
0
ファイル: event.py プロジェクト: marcosmolla/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + self._includeJSPackage('RoomBooking')
コード例 #36
0
ファイル: contributions.py プロジェクト: dbourillot/indico
 def _getHeadContent(self):
     return WPConferenceModifBase._getHeadContent(self) + render('js/mathjax.config.js.tpl') + \
         '\n'.join(['<script src="{0}" type="text/javascript"></script>'.format(url)
                    for url in self._asset_env['mathjax_js'].urls()])
コード例 #37
0
ファイル: views.py プロジェクト: pmart123/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(
         self) + self._asset_env['modules_sessions_js'].urls()
コード例 #38
0
ファイル: contributions.py プロジェクト: dbourillot/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + \
         self._asset_env['contributions_sass'].urls()
コード例 #39
0
 def __init__(self, rh, session, **kwargs):
     WPConferenceModifBase.__init__(self, rh, session.getConference(),
                                    **kwargs)
     self._session = session
コード例 #40
0
ファイル: __init__.py プロジェクト: pmart123/indico
 def getCSSFiles(self):
     return (WPConferenceModifBase.getCSSFiles(self) +
             self._asset_env['timetable_sass'].urls() +
             self._asset_env['contributions_sass'].urls())
コード例 #41
0
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + \
         self._asset_env['contributions_sass'].urls()
コード例 #42
0
ファイル: views.py プロジェクト: hennogous/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + self._asset_env['registration_sass'].urls()
コード例 #43
0
ファイル: __init__.py プロジェクト: florv/indico
 def __init__(self, rh, conference, **kwargs):
     custom_links = dict(values_from_signal(signals.event.timetable_buttons.send(self)))
     WPConferenceModifBase.__init__(self, rh, conference, custom_links=custom_links, **kwargs)
コード例 #44
0
ファイル: views.py プロジェクト: pmart123/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(
         self) + self._asset_env['sessions_sass'].urls()
コード例 #45
0
ファイル: __init__.py プロジェクト: florv/indico
 def getJSFiles(self):
     return (WPConferenceModifBase.getJSFiles(self) + self._asset_env['modules_timetable_js'].urls() +
             self._asset_env['modules_contributions_js'].urls())
コード例 #46
0
ファイル: pages.py プロジェクト: marksteward/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + WPCollaborationBase.getJSFiles(self)
コード例 #47
0
ファイル: __init__.py プロジェクト: florv/indico
 def getCSSFiles(self):
     return (WPConferenceModifBase.getCSSFiles(self) + self._asset_env['timetable_sass'].urls() +
             self._asset_env['contributions_sass'].urls())
コード例 #48
0
ファイル: event.py プロジェクト: MichelCordeiro/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + self._includeJSPackage('RoomBooking')
コード例 #49
0
ファイル: pages.py プロジェクト: sylvestre/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + \
            self._plugin_asset_env['instant_messaging'].urls()
コード例 #50
0
ファイル: views.py プロジェクト: OmeGak/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + self._asset_env['event_management_sass'].urls()
コード例 #51
0
ファイル: pages.py プロジェクト: sylvestre/indico
 def getCSSFiles(self):
     return WPConferenceModifBase.getCSSFiles(self) + \
            ['InstantMessaging/im.css']
コード例 #52
0
ファイル: pages.py プロジェクト: bubbas/indico
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(self) + \
            self._plugin_asset_env['instant_messaging'].urls()
コード例 #53
0
ファイル: pages.py プロジェクト: sylvestre/indico
 def _getTitle(self):
     return WPConferenceModifBase._getTitle(self) + " - " + _("Chat management")
コード例 #54
0
ファイル: pages.py プロジェクト: bubbas/indico
 def _getTitle(self):
     return WPConferenceModifBase._getTitle(self) + " - " + _("Chat management")
コード例 #55
0
 def getJSFiles(self):
     return WPConferenceModifBase.getJSFiles(
         self) + self._asset_env['modules_registration_js'].urls()