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()
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()
def __init__(self, rh, queryParams): WPMainBase.__init__(self, rh) self._queryParams = queryParams self._user = self._rh.getAW().getUser() self._pluginsWithIndexing = CollaborationTools.pluginsWithIndexing( ) # list of names self._buildExtraJS()
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)
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
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._includeJSPackage('Management')
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + self._asset_env["news_sass"].urls()
def _getTitle(self): return WPMainBase._getTitle(self) + " - " + _("News")
def _getTitle(self): return WPMainBase._getTitle(self) + " - " + _("Calendar Overview")
def __init__(self, rh, active_menu_item, **kwargs): kwargs['active_menu_item'] = active_menu_item WPMainBase.__init__(self, rh, **kwargs)
def _getTitle(self): return WPMainBase._getTitle(self) + " - " + _("Room Booking")
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._includeJSPackage('Display') \ + self._includeJSPackage('Collaboration')
def getJSFiles(self): return [ 'js/prototype/prototype.js', 'js/scriptaculous/scriptaculous.js' ] + \ WPMainBase.getJSFiles(self)
def getCSSFiles(self): return WPMainBase.getCSSFiles( self) + self._asset_env['overviews_sass'].urls()
def __init__(self, rh, queryParams): WPMainBase.__init__(self, rh) self._queryParams = queryParams self._pluginsWithIndexing = CollaborationTools.pluginsWithIndexing() # list of names self._buildExtraJS()
def __init__(self, rh, goBack=""): WPMainBase.__init__(self, rh) self._goBack = goBack
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._includeJSPackage('Collaboration') + self._includeJSPackage("Management")
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._includeJSPackage(["Management", "RoomBooking"])
def _getTitle(self): return "{} - {}".format(WPMainBase._getTitle(self), _("Room Booking"))
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + WPCollaborationBase.getCSSFiles(self)
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._asset_env['modules_categories_js'].urls()
def _getTitle(self): return '{} - {}'.format(WPMainBase._getTitle(self), _('Room Booking'))
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + self._asset_env['roombooking_sass'].urls()
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._includeJSPackage(['Management', 'RoomBooking'])
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + \ ['Collaboration/Style.css']
def __init__(self, rh, active_menu_item, **kwargs): kwargs["active_menu_item"] = active_menu_item WPMainBase.__init__(self, rh, **kwargs)
def __init__(self, rh): WPMainBase.__init__(self, rh) self._av = self._getAW().getUser()
def getJSFiles(self): return WPMainBase.getJSFiles(self) + self._includeJSPackage('Display') + self._plugin_asset_env['collaboration'].urls()
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()
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + self._asset_env['admin_sass'].urls()
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + self._asset_env['category_sass'].urls()
def __init__( self, rh): WPMainBase.__init__(self, rh) self._av = self._getAW().getUser()
def getCSSFiles(self): return WPMainBase.getCSSFiles(self) + self._asset_env['overviews_sass'].urls()