Use specific css files directly in views code
authorJulien Jehannet <julien.jehannet@logilab.fr>
Wed, 11 Feb 2009 16:48:36 +0100
changeset 853 4f6cd02bd71f
parent 852 105893288777
child 854 a7bb49075975
Use specific css files directly in views code
web/views/startup.py
web/views/tableview.py
--- a/web/views/startup.py	Wed Feb 11 16:46:18 2009 +0100
+++ b/web/views/startup.py	Wed Feb 11 16:48:36 2009 +0100
@@ -26,6 +26,7 @@
     
     def call(self, **kwargs):
         """The default view representing the application's management"""
+        self.req.add_css('cubicweb.manageview.css')
         self.w(u'<div>\n')
         if not self.display_folders():
             self._main_index()
--- a/web/views/tableview.py	Wed Feb 11 16:46:18 2009 +0100
+++ b/web/views/tableview.py	Wed Feb 11 16:48:36 2009 +0100
@@ -103,7 +103,7 @@
         rset = self.rset
         req = self.req
         req.add_js('jquery.tablesorter.js')
-        req.add_css('cubicweb.tablesorter.css')
+        req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
         rqlst = rset.syntax_tree()
         # get rql description first since the filter form may remove some
         # necessary information