From 1cc9f828f555032054b29710dd7f99d4879be5d6 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Fri, 5 Mar 2004 15:05:08 +0000
Subject: [PATCH] updated so that there is no errors with zope 2.6

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@550 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Extensions/ImportExportSkins.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/product/ERP5/Extensions/ImportExportSkins.py b/product/ERP5/Extensions/ImportExportSkins.py
index 73a309466e..84765b8eec 100755
--- a/product/ERP5/Extensions/ImportExportSkins.py
+++ b/product/ERP5/Extensions/ImportExportSkins.py
@@ -9,8 +9,7 @@
 try:
     from App.config import getConfiguration
 except ImportError:
-    pass 
-
+    getConfiguration = None
 
 
 fs_skin_ids = ('erp5_trade', 'erp5_accounting', 'erp5_crm')
@@ -19,8 +18,10 @@ fs_skin_spec = ('ERP5 Filesystem Formulator Form',
                 'Filesystem Page Template',
                 'Filesystem Script (Python)',
                 'Filesystem Z SQL Method')
-#fs_skin_dir = '/var/lib/zope/Products/ERP5/skins'
-fs_skin_dir = getConfiguration().instancehome + '/Products/ERP5/skins'
+if getConfiguration is None:
+  fs_skin_dir = '/var/lib/zope/Products/ERP5/skins'
+else:
+  fs_skin_dir = getConfiguration().instancehome + '/Products/ERP5/skins'
 zodb_skin_ids = ('local_trade', 'local_accounting', 'local_crm')
 zodb_skin_spec = ('ERP5 Form', 'Page Template', 'Script', 'Script (Python)','Z SQL Method')
 
-- 
2.30.9