DIRACGrid/DIRAC — pull request #554 by sposs (2012-03-02 08:00:16+00:00)
Title: Add support for dictionary in metadata for the InputDataQuery mechanism

Until now, if a metadata query was defined as
meta={}
meta['EvtType']='gghad'
meta['Datatype'] = 'SIM'
meta['Energy'] = '1.4tev'
meta['ProdID'] = {'>':766}

the last item was not stored properly as it's a dict.

The proposed change accounts for it. But for proper escape, one needs to use the self._insert method. But as this does not allow for multiple insert in one go, I had to reshuffle a bit the code, and the _insert is called for every metadata object.