From c4b5c81bf17fd4d912402bba0bb5979d6335b816 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 15 Feb 2011 14:45:52 +0000
Subject: [PATCH]  - implement __setitem__ to allow using sequence[key] = value

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43356 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/Sequence.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5Type/tests/Sequence.py b/product/ERP5Type/tests/Sequence.py
index ad2783331f..d3cd2a1500 100644
--- a/product/ERP5Type/tests/Sequence.py
+++ b/product/ERP5Type/tests/Sequence.py
@@ -102,6 +102,9 @@ class Sequence:
   def __getitem__(self, key):
     return self._dict[key]
 
+  def __setitem__(self, key, value):
+    self._dict[key] = value
+
   def asText(self):
     """
     Representation of the current Sequence. Useful for debuggers.
-- 
2.30.9