[facets] slightly better attr names stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 01 Jul 2009 11:42:49 +0200
branchstable
changeset 2214 a6b42cf05407
parent 2213 713e220e7425
child 2215 b1977f5263ac
[facets] slightly better attr names
web/views/facets.py
--- a/web/views/facets.py	Wed Jul 01 11:33:40 2009 +0200
+++ b/web/views/facets.py	Wed Jul 01 11:42:49 2009 +0200
@@ -37,9 +37,10 @@
     visible = True # functionality provided by the search box by default
     order = 1
     roundcorners = True
-    css_facets = 'cubicweb.facets.css'
-    js = ('cubicweb.ajax.js', 'cubicweb.formfilter.js')
-    
+
+    _css = 'cubicweb.facets.css'
+    _js = ('cubicweb.ajax.js', 'cubicweb.formfilter.js')
+
     def facetargs(self):
         """this method returns the list of extra arguments that should
         be used by the facet
@@ -58,8 +59,8 @@
 
     def call(self, view=None):
         req = self.req
-        req.add_js( self.js )
-        req.add_css( self.css_facets)
+        req.add_js( self._js )
+        req.add_css( self._css)
         if self.roundcorners:
             req.html_headers.add_onload('jQuery(".facet").corner("tl br 10px");')
         rset, vid, divid, paginate = self._get_context(view)