示例#1
0
 def run(self, controller, name):
     if self.search_str:
         reportusage.record_feature('query', controller)
     if self.queryPipeline is not None and \
         len(self.queryPipeline.modules) > 0:
         VisualQuery.run(self, controller, name)
     compiler = SearchCompiler(self.search_str, self.use_regex)
     self.search_stmt = compiler.searchStmt
示例#2
0
 def __init__(self,
              search_str=None,
              pipeline=None,
              versions_to_check=None,
              use_regex=False):
     VisualQuery.__init__(self, pipeline, versions_to_check)
     self.search_str = search_str
     self.use_regex = use_regex
示例#3
0
 def matchModule(self, version_id, module):
     if self.queryPipeline is not None and \
             len(self.queryPipeline.modules) > 0:
         if VisualQuery.matchModule(self, version_id, module):
             return self.search_stmt.matchModule(version_id, module)
         return False
     else:
         return self.search_stmt.matchModule(version_id, module)
示例#4
0
 def matchModule(self, version_id, module):
     if self.queryPipeline is not None and \
             len(self.queryPipeline.modules) > 0:
         return VisualQuery.matchModule(self, version_id, module)
     return True
示例#5
0
 def run(self, vistrail, name):
     VisualQuery.run(self, vistrail, name)
     self.search_stmt = SearchCompiler(self.search_str).searchStmt
示例#6
0
 def __init__(self, search_str=None, pipeline=None, versions_to_check=None):
     VisualQuery.__init__(self, pipeline, versions_to_check)
     self.search_str = search_str
示例#7
0
 def matchModule(self, version_id, module):
     if self.queryPipeline is not None and \
             len(self.queryPipeline.modules) > 0:
         return VisualQuery.matchModule(self, version_id, module)
     return True
示例#8
0
 def run(self, vistrail, name):
     VisualQuery.run(self, vistrail, name)
     self.search_stmt = SearchCompiler(self.search_str).searchStmt
示例#9
0
 def __init__(self, search_str=None, pipeline=None, versions_to_check=None):
     VisualQuery.__init__(self, pipeline, versions_to_check)
     self.search_str = search_str
示例#10
0
 def run(self, vistrail, name):
     VisualQuery.run(self, vistrail, name)
     compiler = SearchCompiler(self.search_str, self.use_regex)
     self.search_stmt = compiler.searchStmt
示例#11
0
 def __init__(self, search_str=None, pipeline=None, versions_to_check=None,
              use_regex=False):
     VisualQuery.__init__(self, pipeline, versions_to_check)
     self.search_str = search_str
     self.use_regex = use_regex
示例#12
0
 def run(self, vistrail, name):
     VisualQuery.run(self, vistrail, name)
     compiler = SearchCompiler(self.search_str, self.use_regex)
     self.search_stmt = compiler.searchStmt
示例#13
0
 def run(self, controller, name):
     if self.queryPipeline is not None and \
         len(self.queryPipeline.modules) > 0:
         VisualQuery.run(self, controller, name)
     compiler = SearchCompiler(self.search_str, self.use_regex)
     self.search_stmt = compiler.searchStmt