From 54d9f545f80f4a1216e8eb0fb90c672b11449a42 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 8 Mar 2006 09:39:50 +0000
Subject: [PATCH] make sure pychart exists

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6032 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ZPyChart.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Form/ZPyChart.py b/product/ERP5Form/ZPyChart.py
index 8888943fb8..93e99eb00c 100755
--- a/product/ERP5Form/ZPyChart.py
+++ b/product/ERP5Form/ZPyChart.py
@@ -34,7 +34,10 @@ from Products.Formulator.Field import ZMIField
 from Selection import Selection
 
 from Products.PythonScripts.PythonScript import PythonScript
-import pychart
+try:
+  import pychart
+except ImportError:
+  psychart = None
 
 from zLOG import LOG
 
-- 
2.30.9