in rabbitmq/job_notification.py [0:0]
def file_paths(self):
"""
returns a dictionary of relative file path/file ID pairs, from the filePathMap parameter
:return: dictionary
"""
if self.filePathMap is None:
return None
pairs = self.filePathMap.split(',')
def split_pair(pair): #can't be sure that there will be no = in the filename
result = pair_splitter.match(pair)
if result:
return (result.group(1), result.group(2))
else:
return None
return dict([result for result in [split_pair(pair) for pair in pairs] if result is not None])