[Z3-sqlos] TypeError: "Could not adapt" when creating SQL-connection

Florian Reiser florian_reiser at gmx.de
Thu Aug 31 09:29:51 CEST 2006


Hello,

I've created an SQL-Folder using SQLObjectContainer.
When adding the object to Zope3.2.1, I get an TypeError stating:
"Could not adapt". With pdb I found out that the error occurs in
sqlos/connection.py line 78 stating: "conn = IZopeSQLConnection(zda())".

I've configured my sql-connection as follows:
<sqlos:connectionName name="dbDemo" />

<rdb:provideConnection
  name="dbDemo"
  component="psycopgda.adapter.PsycopgAdapter"
  dsn="..."
/>

What can I do to get the folder working?

With kind regards

Florian Reiser

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the z3-sqlos mailing list