Commit 0ba6edef authored by Vincent Michel's avatar Vincent Michel
Browse files

[views] Add a safety belt on dynamic facet registry

parent 88090abfcf06
......@@ -335,8 +335,10 @@ class BrainomicsFilterBox(facets.FilterBox):
def layout_widgets(self, w, wdgs):
super(BrainomicsFilterBox, self).layout_widgets(w, wdgs)
w(u'<div class="admintools">')
for comp in self._cw.vreg['dynamic-facet'].possible_objects(self._cw, rset=self.cw_rset):
comp.render(w=w)
dfreg = self._cw.vreg.get('dynamic-facet')
if dfreg:
for comp in dfreg.possible_objects(self._cw, rset=self.cw_rset):
comp.render(w=w)
w(u'<div id="dynamic-facet-container"></div>')
w(u'</div>')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment