[z3-checkins] r32117 - z3/sqlos/trunk/src/sqlos
jinty at codespeak.net
jinty at codespeak.net
Sun Sep 10 13:38:32 CEST 2006
Author: jinty
Date: Sun Sep 10 13:38:21 2006
New Revision: 32117
Modified:
z3/sqlos/trunk/src/sqlos/configure.zcml
Log:
take advantage of the fact tha psycopgda now has a marker interface for its connections.
Modified: z3/sqlos/trunk/src/sqlos/configure.zcml
==============================================================================
--- z3/sqlos/trunk/src/sqlos/configure.zcml (original)
+++ z3/sqlos/trunk/src/sqlos/configure.zcml Sun Sep 10 13:38:21 2006
@@ -96,22 +96,16 @@
/>
</class>
- <!--
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- For now, you need to change the factory here if you want
- to use a diferent connection type.
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-
- <adapter
- provides=".interfaces.IZopeSQLConnection"
- for="zope.app.rdb.interfaces.IZopeConnection"
- permission="zope.Public"
- factory=".adapter.PostgresAdapter"
- />
- -->
+ <configure zcml:condition="installed psycopgda">
+ <adapter
+ provides=".interfaces.IZopeSQLConnection"
+ for="mysqldbda.adapter.IPsycopgZopeConnection"
+ permission="zope.Public"
+ factory=".adapter.PostgresAdapter"
+ />
+ </configure>
<configure zcml:condition="installed mysqldbda">
- <!-- if this doesnt work, you need a new version of mysqldbda-->
<adapter
provides=".interfaces.IZopeSQLConnection"
for="mysqldbda.adapter.IMySQLZopeConnection"
More information about the z3-checkins
mailing list