Commit bd5c3a0d authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: explain why ActiveProcess.getResultList returns a copy

parent 000dba76
...@@ -119,6 +119,9 @@ class ActiveProcess(Base): ...@@ -119,6 +119,9 @@ class ActiveProcess(Base):
except AttributeError: except AttributeError:
# BBB: self was created before implementation of __init__ # BBB: self was created before implementation of __init__
return [] return []
# XXX: ConflictFreeLog does not support indexing so cast to list for the
# moment, although this is inefficient and the caller never needs a
# copy (currently). Same for IOBTree.itervalues().
if type(result_list) is not ConflictFreeLog: # BBB: result_list is IOBTree if type(result_list) is not ConflictFreeLog: # BBB: result_list is IOBTree
return result_list.values() return result_list.values()
return list(result_list) return list(result_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment