Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 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)
Example #5
0
 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
Example #6
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage('Management')
Example #7
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + self._asset_env["news_sass"].urls()
Example #8
0
 def _getTitle(self):
     return WPMainBase._getTitle(self) + " - " + _("News")
Example #9
0
 def _getTitle(self):
     return WPMainBase._getTitle(self) + " - " + _("Calendar Overview")    
Example #10
0
 def __init__(self, rh, active_menu_item, **kwargs):
     kwargs['active_menu_item'] = active_menu_item
     WPMainBase.__init__(self, rh, **kwargs)
Example #11
0
 def _getTitle(self):
     return WPMainBase._getTitle(self) + " - " + _("Room Booking")
Example #12
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage('Display') \
         + self._includeJSPackage('Collaboration')
Example #13
0
 def getJSFiles(self):
     return [ 'js/prototype/prototype.js',
              'js/scriptaculous/scriptaculous.js' ] + \
             WPMainBase.getJSFiles(self)
Example #14
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(
         self) + self._asset_env['overviews_sass'].urls()
Example #15
0
 def __init__(self, rh, queryParams):
     WPMainBase.__init__(self, rh)
     self._queryParams = queryParams
     self._pluginsWithIndexing = CollaborationTools.pluginsWithIndexing() # list of names
     self._buildExtraJS()
Example #16
0
 def __init__(self, rh, goBack=""):
     WPMainBase.__init__(self, rh)
     self._goBack = goBack
Example #17
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage('Collaboration') + self._includeJSPackage("Management")
Example #18
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage(["Management", "RoomBooking"])
Example #19
0
 def _getTitle(self):
     return "{} - {}".format(WPMainBase._getTitle(self), _("Room Booking"))
Example #20
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + WPCollaborationBase.getCSSFiles(self)
Example #21
0
 def _getTitle(self):
     return WPMainBase._getTitle(self) + " - " + _("Calendar Overview")
Example #22
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._asset_env['modules_categories_js'].urls()
Example #23
0
 def _getTitle(self):
     return '{} - {}'.format(WPMainBase._getTitle(self), _('Room Booking'))
Example #24
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + self._asset_env['roombooking_sass'].urls()
Example #25
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage(['Management', 'RoomBooking'])
Example #26
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + \
         ['Collaboration/Style.css']
Example #27
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + self._asset_env['roombooking_sass'].urls()
Example #28
0
 def __init__(self, rh, active_menu_item, **kwargs):
     kwargs["active_menu_item"] = active_menu_item
     WPMainBase.__init__(self, rh, **kwargs)
Example #29
0
 def __init__(self, rh):
     WPMainBase.__init__(self, rh)
     self._av = self._getAW().getUser()
Example #30
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + WPCollaborationBase.getCSSFiles(self)
Example #31
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage('Display') + self._plugin_asset_env['collaboration'].urls()
Example #32
0
 def _getTitle(self):
     return WPMainBase._getTitle(self) + " - " + _("Room Booking")
Example #33
0
 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()
Example #34
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + self._asset_env['admin_sass'].urls()
Example #35
0
 def _getTitle(self):
     return WPMainBase._getTitle(self) + " - " + _("News")
Example #36
0
 def __init__(self, rh, goBack=""):
     WPMainBase.__init__(self, rh)
     self._goBack = goBack
Example #37
0
 def _getTitle(self):
     return '{} - {}'.format(WPMainBase._getTitle(self), _('Room Booking'))
Example #38
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + self._asset_env['category_sass'].urls()
Example #39
0
 def getJSFiles(self):
     return WPMainBase.getJSFiles(self) + self._includeJSPackage(['Management', 'RoomBooking'])
Example #40
0
 def __init__( self, rh):
     WPMainBase.__init__(self, rh)
     self._av = self._getAW().getUser()
Example #41
0
 def getCSSFiles(self):
     return WPMainBase.getCSSFiles(self) + self._asset_env['overviews_sass'].urls()