[Zope3-dev] psycopgDA
Ulrich Schreiner
ulrich.schreiner at innuendo.de
Fri Sep 24 02:01:33 EDT 2004
hi,
if i remember right the parseDSN method wants a colon and a portnumber
if you use the form with a hostname.
i use
dsn://user:password@servername:port/dbname
and the parseDSN wants a ":port" after the servername. i used to remove
the ":port"-portion if i use the defaultport. but then i get a very
strange error (unpack list of wrong size) and it is hard to recognize
that the DSN is wrong!
perhaps its my fault. when using this form of DSN i *must* provide a
portnumber.
</usc>
Stephan Richter wrote:
> On Friday 17 September 2004 09:12, Ulrich Schreiner wrote:
>
>> <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"
>> />
>
>
> It's in the repos now. However, I cannot support your port claim; My DSN for a
> local database is just "dsn://dbname".
>
> Regards,
> Stephan
More information about the Zope3-dev
mailing list