https://github.com/psycopg/zpsycopgda
psycopg2 Zope adapter
https://github.com/psycopg/zpsycopgda
Last synced: 9 months ago
JSON representation
psycopg2 Zope adapter
- Host: GitHub
- URL: https://github.com/psycopg/zpsycopgda
- Owner: psycopg
- License: other
- Created: 2012-12-10T21:57:44.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T08:58:55.000Z (over 2 years ago)
- Last Synced: 2025-04-12T04:53:07.689Z (9 months ago)
- Language: Python
- Size: 185 KB
- Stars: 2
- Watchers: 5
- Forks: 19
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
ZPsycopgDA -- psycopg2 Zope adapter
===================================
- `Project page`__
- `Download`__
- `Psycopg mailing list`__
.. __: https://github.com/psycopg/ZPsycopgDA
.. __: https://pypi.python.org/pypi/ZPsycopgDA/
.. __: http://mail.postgresql.org/mj/mj_wwwusr/domain=postgresql.org?func=lists-long-full&extra=psycopg
This is the PostgreSQL adapter for Zope 2 and 3 based on psycopg2__.
As of version 2.4.6, ZPsycopgDA has the same content of the ZPsycopgDA module
included in Psycopg 2.4.6. Future psycopg2 versions will likely not include
ZPsycopgDA, which should be installed separately.
.. __: http://initd.org/psycopg/
Prerequisites
-------------
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.
Installation
------------
Unfortunately I'm no Zope expert, so these installation instructions are quite
approximative. Please contact us if you want to improve them.
- Make sure to have your Zope ``lib`` directory in the ``$PYTHONPATH``. If
some command fails with::
[...]
File "[...]/ZPsycopgDA/db.py", line 18, in
from Shared.DC.ZRDB.TM import TM
ImportError: No module named Shared.DC.ZRDB.TM
you are probably missing it.
- Download the ZPsycopgDA package, unpack it and copy the ``ZPsycopgDA``
directory into the ``Products`` directory of your Zope instance.
- 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.