本文整理汇总了Python中MaKaC.webinterface.pages.main.WPMainBase类的典型用法代码示例。如果您正苦于以下问题:Python WPMainBase类的具体用法?Python WPMainBase怎么用?Python WPMainBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WPMainBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
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__
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: _getHeadContent
def _getHeadContent(self):
head_content = WPMainBase._getHeadContent(self)
if self.atom_feed_url:
title = self.atom_feed_title or _("Indico Atom feed")
head_content += ('<link rel="alternate" type="application/atom+xml" title="{}" href="{}">'
.format(escape(title), self.atom_feed_url))
if self._mathjax:
head_content += render('js/mathjax.config.js.tpl')
head_content += '\n'.join('<script src="{0}"></script>'.format(url)
for url in self._asset_env['mathjax_js'].urls())
return head_content
示例4: __init__
def __init__(self, rh, active_menu_item, **kwargs):
kwargs["active_menu_item"] = active_menu_item
WPMainBase.__init__(self, rh, **kwargs)
示例5: _getTitle
def _getTitle(self):
return '{} - {}'.format(WPMainBase._getTitle(self), _('Room Booking'))
示例6: __init__
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: _getTitle
def _getTitle(self):
return WPMainBase._getTitle(self) + " - " + _("Calendar Overview")
示例8: getJSFiles
def getJSFiles(self):
return [ 'js/prototype/prototype.js',
'js/scriptaculous/scriptaculous.js' ] + \
WPMainBase.getJSFiles(self)
示例9: getJSFiles
def getJSFiles(self):
return WPMainBase.getJSFiles(self) + self._asset_env['modules_categories_js'].urls()
示例10: _getTitle
def _getTitle(self):
return WPMainBase._getTitle(self) + " - " + _("Room Booking")
示例11: getCSSFiles
def getCSSFiles(self):
return WPMainBase.getCSSFiles(self) + self._asset_env['admin_sass'].urls()
示例12: __init__
def __init__(self, rh, goBack=""):
WPMainBase.__init__(self, rh)
self._goBack = goBack
示例13: getCSSFiles
def getCSSFiles(self):
return WPMainBase.getCSSFiles(self) + WPCollaborationBase.getCSSFiles(self)
示例14: __init__
def __init__(self, rh, queryParams):
WPMainBase.__init__(self, rh)
self._queryParams = queryParams
self._pluginsWithIndexing = CollaborationTools.pluginsWithIndexing() # list of names
self._buildExtraJS()
示例15: getJSFiles
def getJSFiles(self):
return WPMainBase.getJSFiles(self) + self._includeJSPackage('Collaboration') + self._includeJSPackage("Management")