web/facet.py
changeset 408 a8814ff6824e
parent 407 68783684ec2f
child 446 3a3ab6bbccc5
equal deleted inserted replaced
407:68783684ec2f 408:a8814ff6824e
   224                 if vref.name == trvarname:
   224                 if vref.name == trvarname:
   225                     rqlst.remove_group_var(vref)
   225                     rqlst.remove_group_var(vref)
   226         # we can also remove all variables which are linked to this variable
   226         # we can also remove all variables which are linked to this variable
   227         # and have no path to the main variable
   227         # and have no path to the main variable
   228         for ovarname in linkedvars:
   228         for ovarname in linkedvars:
       
   229             if ovarname == mainvar.name:
       
   230                 continue
   229             if not has_path(vargraph, ovarname, mainvar.name):
   231             if not has_path(vargraph, ovarname, mainvar.name):
   230                 toremove.add(rqlst.defined_vars[ovarname])            
   232                 toremove.add(rqlst.defined_vars[ovarname])            
   231 
   233 
   232         
   234         
   233         
   235