Пример #1
0
    def setUp(self):
        """
        set up shared array of type int with given size
        """
        dassystems = ['dbs', 'sitedb', 'phedex']
        daskeys = ['dataset', 'file', 'block', 'run', 'site', 'date', 'system']
        parserdir = '/tmp'

        self.dasqlparser = DASQueryParser(daskeys, dassystems)
Пример #2
0
def parse_query(query, keys, services, verbose=False):
    """Get ply object for given query."""
    mgr = DASQueryParser(keys, services, verbose=verbose)
    return mgr.parse(query)