diff --git a/product/ERP5Type/patches/ProductContext.py b/product/ERP5Type/patches/ProductContext.py index 7956d8999059dfa45a1186217975cd4e6b149752..25cae509e80510b757a0de941578041732f437a6 100644 --- a/product/ERP5Type/patches/ProductContext.py +++ b/product/ERP5Type/patches/ProductContext.py @@ -25,7 +25,15 @@ try: def AttrDict_has_key(self, name): return hasattr(self.ob, name) + def AttrDict_items(self): + return self.ob.__dict__.items() + + def AttrDict_keys(self): + return self.ob.__dict__.keys() + AttrDict.__getitem__ = AttrDict_getitem AttrDict.has_key = AttrDict_has_key + AttrDict.items = AttrDict_items + AttrDict.keys = AttrDict_keys except ImportError: pass