[Zope3-dev] psycopgDA
Ulrich Schreiner
ulrich.schreiner at innuendo.de
Fri Sep 17 09:12:33 EDT 2004
hi *,
if anyone needs the psycopgDA for zope3:
RC1 of zope3 does not work with the current psycopgDA (on my machine, XP
with cygwin). i had to patch the DA sources. in the "configure.zcml" you
have to replace the definitions of "zope:content" and "browser:addform"
<content class=".adapter.PsycopgAdapter">
<factory id="zope.da.PsycopgDA" />
<require
permission="zope.app.rdb.Use"
interface="zope.app.rdb.interfaces.IZopeDatabaseAdapter"
/>
<require
permission="zope.ManageServices"
interface="zope.app.rdb.interfaces.IZopeDatabaseAdapterManagement"
/>
</content>
<browser:addform
name="AddPsycopgDA"
schema="zope.app.rdb.interfaces.IManageableZopeDatabaseAdapter"
label="Add Psycopg (PostGreSQL) Database Adapter"
content_factory=".adapter.PsycopgAdapter"
arguments="dsn"
fields="dsn"
permission="zope.ManageContent"
/>
and you MUST specifiy a port in the DSN
then it should work
</usc>
More information about the Zope3-dev
mailing list