def can_execute(self, pipeline):
        return pipeline is not None and len(pipeline.modules) > 0
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/version_view.py/QVersionTreeView.can_execute/original