web/htmlwidgets.py
changeset 4183 b5aa030bb2f9
parent 4023 eae23c40627a
child 4211 eac4b23a42ff
--- a/web/htmlwidgets.py	Tue Dec 22 13:13:53 2009 +0100
+++ b/web/htmlwidgets.py	Tue Dec 22 13:14:34 2009 +0100
@@ -288,8 +288,8 @@
 
     When using remember to include the required css and js with:
 
-    self.req.add_js('jquery.tablesorter.js')
-    self.req.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
+    self._cw.add_js('jquery.tablesorter.js')
+    self._cw.add_css(('cubicweb.tablesorter.css', 'cubicweb.tableview.css'))
     """
     highlight = "onmouseover=\"addElementClass(this, 'highlighted');\" " \
                 "onmouseout=\"removeElementClass(this, 'highlighted');\""