本文整理汇总了Python中MaKaC.webinterface.pages.main.WPMainBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python WPMainBase.__init__方法的具体用法?Python WPMainBase.__init__怎么用?Python WPMainBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MaKaC.webinterface.pages.main.WPMainBase
的用法示例。
在下文中一共展示了WPMainBase.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__(self, rh, queryParams):
WPMainBase.__init__(self, rh)
WPCollaborationBase.__init__(self)
self._queryParams = queryParams
self._user = self._rh.getAW().getUser()
self._pluginsWithIndexing = CollaborationTools.pluginsWithIndexing(True) # list of names
self._buildExtraJS()
示例2: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__(self, rh, category, **kwargs):
kwargs['category'] = category
self.category = category
self.atom_feed_url = kwargs.get('atom_feed_url')
self.atom_feed_title = kwargs.get('atom_feed_title')
if category:
self._setTitle('Indico [{}]'.format(category.title).encode('utf-8'))
WPMainBase.__init__(self, rh, _protected_object=category, _current_category=category, **kwargs)
if category:
self._locTZ = category.display_tzinfo.zone
self._mathjax = kwargs.pop('mathjax', False)
示例3: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__(self, rh, active_menu_item, **kwargs):
kwargs["active_menu_item"] = active_menu_item
WPMainBase.__init__(self, rh, **kwargs)
示例4: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__(self, rh, goBack=""):
WPMainBase.__init__(self, rh)
self._goBack = goBack
示例5: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__(self, rh, queryParams):
WPMainBase.__init__(self, rh)
self._queryParams = queryParams
self._pluginsWithIndexing = CollaborationTools.pluginsWithIndexing() # list of names
self._buildExtraJS()
示例6: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__( self, rh, calendar, categ=None ):
WPMainBase.__init__( self, rh )
self._cal = calendar
self._categ = categ
self._locTZ = timezoneUtils.DisplayTZ(self._getAW(),None,useServerTZ=1).getDisplayTZ()
示例7: __init__
# 需要导入模块: from MaKaC.webinterface.pages.main import WPMainBase [as 别名]
# 或者: from MaKaC.webinterface.pages.main.WPMainBase import __init__ [as 别名]
def __init__( self, rh):
WPMainBase.__init__(self, rh)
self._av = self._getAW().getUser()