From b50b8cc388b6e81f7149576f36be99cf7e839daa Mon Sep 17 00:00:00 2001 From: Carlos Hanson Date: Wed, 5 Jul 2017 11:49:16 -0700 Subject: [PATCH 1/2] Globals is deprecated. Using App.special_dtml instead. --- ZPsycopgDA/DA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index a4a7b0b..9dfe8bc 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -23,7 +23,7 @@ import Shared.DC.ZRDB.Connection from db import DB -from Globals import HTMLFile +from App.special_dtml import HTMLFile from ExtensionClass import Base from DateTime import DateTime From a1674e9592d2b7f2690e9443b1e7b84c0802c54f Mon Sep 17 00:00:00 2001 From: carloshanson Date: Wed, 5 Jul 2017 13:34:07 -0700 Subject: [PATCH 2/2] Update README.rst Added Products.ZSQLMethods as a prerequisite. Added detailed instructions for a new installation of Zope 4.0 using virtualenv. --- README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.rst b/README.rst index d7c0f32..a32ff0b 100644 --- a/README.rst +++ b/README.rst @@ -26,6 +26,8 @@ ZPsycopgDA depends on the psycopg2 module version at least 2.4. Don't use versions 2.4.2 or 2.4.3: they are not compatible with ZPsycopgDA. Install the latest version available. +ZPsycopgDA also depends on Products.ZSQLMethods. + Installation ------------ @@ -49,3 +51,16 @@ approximative. Please contact us if you want to improve them. - Alternatively run ``easy_install ZPsycopgDA`` or ``pip install ZPsycopgDA``, then symlink or copy the ``ZPsycopgDA`` directory from the installed location to the ``Products`` directory of your Zope instance. + + +Detailed Installation for Zope 4.0 +---------------------------------- + +Install Zope using virtualenv: http://zope.readthedocs.io/en/latest/INSTALL-virtualenv.html + + $ cd /path/to/virtualenv + $ ./bin/pip install psycopg2 + $ ./bin/pip install git+https://github.com/zopefoundation/Products.ZSQLMethods.git + $ ./bin/pip install git+https://github.com/psycopg/ZPsycopgDA.git + $ cd lib/python2.7/site-packages/Products + $ ln -s /path/to/virtualenv/lib/python2.7/site-packages/ZPsycopgDA .