[view] check for tracker cube before using it
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 20 Aug 2013 16:07:48 +0200
changeset 1429 00dced995ee2
parent 1428 b60269c2a5c0
child 1430 de746677fb1e
[view] check for tracker cube before using it
views/primary.py
--- a/views/primary.py	Mon Oct 07 11:03:46 2013 +0200
+++ b/views/primary.py	Tue Aug 20 16:07:48 2013 +0200
@@ -135,7 +135,8 @@
     html_headers = no_robot_index
 
     def entity_call(self, entity):
-        if 'jqplot' in self._cw.vreg.config.cubes():
+        if ('jqplot' in self._cw.vreg.config.cubes() and
+            'tracker' in self._cw.vreg.config.cubes()):
             project_rset = self._cw.execute('Any P WHERE P has_apycot_environment TC, TC eid %(e)s',
                                             {'e': entity.eid})
             self.wview('projectgraphtestresults', project_rset, 'null')