From 5fd2546a040b336a15b552efb49adea154b5a271 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 3 Aug 2010 14:45:18 +0000
Subject: [PATCH] 'context' is not in kw when indexing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37446 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessPath.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessPath.py b/product/ERP5/Document/BusinessPath.py
index 044dc92602..1894ee1012 100644
--- a/product/ERP5/Document/BusinessPath.py
+++ b/product/ERP5/Document/BusinessPath.py
@@ -163,7 +163,7 @@ class BusinessPath(Path, Predicate):
       Overridden in order to take into account dynamic arrow categories in case if no static
       categories are set on Business Path
     """
-    context = kw.pop('context')
+    context = kw.pop('context', None)
     result = Path._getCategoryMembershipList(self, category, **kw)
     if len(result) > 0:
       return result
-- 
2.30.9