[z3-checkins] r5265 - z3/sqlos/trunk
dreamcatcher at codespeak.net
dreamcatcher at codespeak.net
Thu Jun 24 05:09:28 MEST 2004
Author: dreamcatcher
Date: Thu Jun 24 05:09:28 2004
New Revision: 5265
Modified:
z3/sqlos/trunk/README.txt
Log:
Add connection setup as an example.
Modified: z3/sqlos/trunk/README.txt
==============================================================================
--- z3/sqlos/trunk/README.txt (original)
+++ z3/sqlos/trunk/README.txt Thu Jun 24 05:09:28 2004
@@ -43,6 +43,27 @@
its flexible enough that you can make their objects come from any
connection and any registered class you wish.
+Setting up a connection for SQLObject
+-------------------------------------
+
+XXX This is not complete yet, but should give you an idea.
+
+ <configure
+ xmlns='http://namespaces.zope.org/zope'
+ xmlns:rdb="http://namespaces.zope.org/rdb"
+ xmlns:sqlos='http://namespaces.sqlobject.org/sqlos'>
+
+ <sqlos:connectionName name='pgsql' />
+
+ <!-- Here you configure the dsn for a given connection -->
+ <rdb:provideConnection
+ name='pgsql'
+ component='zopeproducts.psycopgda.adapter.PsycopgAdapter'
+ dsn='dbi://zope3:123@localhost:5432/zope3'
+ />
+
+ </configure>
+
Making SQLObject-based objects editable inside Zope
---------------------------------------------------
More information about the z3-checkins
mailing list