From 584a2cfb1a68dbf197d2e3a0c75f41dd5117b421 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Mon, 16 Feb 2004 12:04:38 +0000 Subject: [PATCH] use instancehome for the skins path git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@478 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Extensions/ImportExportSkins.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Extensions/ImportExportSkins.py b/product/ERP5/Extensions/ImportExportSkins.py index 57803c10ef..73a309466e 100755 --- a/product/ERP5/Extensions/ImportExportSkins.py +++ b/product/ERP5/Extensions/ImportExportSkins.py @@ -4,13 +4,23 @@ # have to be patched with a manage_FTPget wich contains # a section <dtml-comment></dtml-comment> +#instance_home = getConfiguration().instancehome +# Zope 2.6.x does not have App.Config +try: + from App.config import getConfiguration +except ImportError: + pass + + + fs_skin_ids = ('erp5_trade', 'erp5_accounting', 'erp5_crm') fs_skin_spec = ('ERP5 Filesystem Formulator Form', '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 = '/var/lib/zope/Products/ERP5/skins' +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