Skip to content
Snippets Groups Projects
Commit 88a3f7b7 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TriggerMenuMT: Teach RecoFragmentsPool about DataHandle

`RecoFragmentsPool.retrieve` hashes its arguments. `DataHandle` is not
hash-able. Work-around by hashing its path.
parent cfae0fb3
No related branches found
No related tags found
No related merge requests found
......@@ -933,7 +933,8 @@ class RecoFragmentsPool(object):
allargs.update(kwargs)
sortedkeys = sorted(allargs.keys())
sortedvals = [allargs[key] for key in sortedkeys]
sortedvals = [str(allargs[key]) if isinstance(allargs[key], DataHandle)
else allargs[key] for key in sortedkeys]
requestHash = hash( ( creator, tuple(sortedkeys), tuple(sortedvals) ) )
if requestHash not in cls.fragments:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment