DIRACGrid/DIRAC — pull request #1653 by sposs (2013-09-18 09:31:27+00:00)
Title: CHANGE: inherited meta data is not used when doing a find

CHANGE: getDirectoryMetadata: extract the query that, given a meta name
and pathIDs string, return the values and DirIDs. This is a private
method __getDirMeta.

CHANGE: findDirIDsByMetadata:
1) use the getPathIDs method to get the current path and its parents
IDs.
2) for the meta dict expanded, use the __getDirMeta method to get the
parents' meta values. If they are there, then delete from the input meta
dict the key as it should not be used for the subsequent query. This
part can also be used to identify conflicting meta data with a clear
message (not done here).
3) use the stripped dict for the DirID query, logic remains untouched.

This allows queries where one of the parent meta data is used. Until
now, this would result in an empty list (not logical).