Commit 57bd02c1 authored by Łukasz Nowak's avatar Łukasz Nowak

- implement __getitem__ which will allow to access sequence's

   dictionary values without falling back to any default with key error


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43320 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 01151a0c
......@@ -99,6 +99,9 @@ class Sequence:
self._played_index = 0
self._context = context
def __getitem__(self, key):
return self._dict[key]
def asText(self):
"""
Representation of the current Sequence. Useful for debuggers.
......
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