当前位置: 首页>>代码示例>>Python>>正文


Python WPConferenceModifBase.__init__方法代码示例

本文整理汇总了Python中MaKaC.webinterface.pages.conferences.WPConferenceModifBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python WPConferenceModifBase.__init__方法的具体用法?Python WPConferenceModifBase.__init__怎么用?Python WPConferenceModifBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MaKaC.webinterface.pages.conferences.WPConferenceModifBase的用法示例。


在下文中一共展示了WPConferenceModifBase.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
    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)
开发者ID:florv,项目名称:indico,代码行数:9,代码来源:contributionReviewing.py

示例2: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
    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")
        )
开发者ID:bubbas,项目名称:indico,代码行数:11,代码来源:contributions.py

示例3: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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())
开发者ID:bubbas,项目名称:indico,代码行数:11,代码来源:files.py

示例4: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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
开发者ID:lukasnellen,项目名称:indico,代码行数:11,代码来源:collaboration.py

示例5: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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()
开发者ID:marksteward,项目名称:indico,代码行数:14,代码来源:pages.py

示例6: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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()
开发者ID:aninhalacerda,项目名称:indico,代码行数:14,代码来源:chrome.py

示例7: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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())
开发者ID:lukasnellen,项目名称:indico,代码行数:15,代码来源:reviewing.py

示例8: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
    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"))
开发者ID:bubbas,项目名称:indico,代码行数:18,代码来源:pages.py

示例9: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
    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"))
开发者ID:VishrutMehta,项目名称:indico,代码行数:18,代码来源:pages.py

示例10: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
    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"),
        )
开发者ID:pferreir,项目名称:indico-backup,代码行数:21,代码来源:pages.py

示例11: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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()
开发者ID:arturodr,项目名称:indico,代码行数:7,代码来源:subContributions.py

示例12: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 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)
开发者ID:florv,项目名称:indico,代码行数:5,代码来源:__init__.py

示例13: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 def __init__(self, rh, material):
     self._material = self._target = material
     if self._material.getConference() != None:
         WPConferenceModifBase.__init__(self, rh, self._material.getConference())
     else:
         WPCategoryBase.__init__(self, rh, self._material.getCategory())
开发者ID:bubbas,项目名称:indico,代码行数:8,代码来源:material.py

示例14: __init__

# 需要导入模块: from MaKaC.webinterface.pages.conferences import WPConferenceModifBase [as 别名]
# 或者: from MaKaC.webinterface.pages.conferences.WPConferenceModifBase import __init__ [as 别名]
 def __init__(self, rh, track, abstract):
     self._abstract = abstract
     self._track = track
     WPConferenceModifBase.__init__(self, rh, self._track.getConference())
开发者ID:belokop,项目名称:indico_bare,代码行数:6,代码来源:tracks.py


注:本文中的MaKaC.webinterface.pages.conferences.WPConferenceModifBase.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。