by popular demand, let us setle on needs_xxx stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 01 Jul 2009 14:56:37 +0200
branchstable
changeset 2215 b1977f5263ac
parent 2214 a6b42cf05407
child 2216 b44b06520ddc
by popular demand, let us setle on needs_xxx
web/views/facets.py
--- a/web/views/facets.py	Wed Jul 01 11:42:49 2009 +0200
+++ b/web/views/facets.py	Wed Jul 01 14:56:37 2009 +0200
@@ -38,8 +38,8 @@
     order = 1
     roundcorners = True
 
-    _css = 'cubicweb.facets.css'
-    _js = ('cubicweb.ajax.js', 'cubicweb.formfilter.js')
+    needs_css = 'cubicweb.facets.css'
+    needs_js = ('cubicweb.ajax.js', 'cubicweb.formfilter.js')
 
     def facetargs(self):
         """this method returns the list of extra arguments that should
@@ -59,8 +59,8 @@
 
     def call(self, view=None):
         req = self.req
-        req.add_js( self._js )
-        req.add_css( self._css)
+        req.add_js( self.needs_js )
+        req.add_css( self.needs_css)
         if self.roundcorners:
             req.html_headers.add_onload('jQuery(".facet").corner("tl br 10px");')
         rset, vid, divid, paginate = self._get_context(view)