web/facet.py
branchstable
changeset 8866 64f24ecad177
parent 8719 539ed3fb27cb
parent 8859 6ed22ac7257c
child 8867 6ad000b91347
--- a/web/facet.py	Wed Apr 03 10:55:56 2013 +0200
+++ b/web/facet.py	Mon Apr 08 14:18:32 2013 +0200
@@ -66,7 +66,7 @@
 
 from cubicweb import Unauthorized, typed_eid
 from cubicweb.schema import display_name
-from cubicweb.uilib import css_em_num_value
+from cubicweb.uilib import css_em_num_value, domid
 from cubicweb.utils import make_uid
 from cubicweb.predicates import match_context_prop, partial_relation_possible
 from cubicweb.appobject import AppObject
@@ -1450,7 +1450,7 @@
     def _render(self):
         w = self.w
         title = xml_escape(self.facet.title)
-        facetid = make_uid(self.facet.__regid__)
+        facetid = domid(make_uid(self.facet.__regid__))
         w(u'<div id="%s" class="facet">\n' % facetid)
         cssclass = 'facetTitle'
         if self.facet.allow_hide: