how to access database declared in configure.zcml

robert rottermann <[email protected]> Fri, 31 Oct 2008 07:12:45 +0100
Newsgroups gmane.comp.web.zope.database
Organization redcor AG
Message-ID <[email protected]>
Hi there,

I am using collective tin.
the new version users z3c.saconfig.

to use it I have to declare the database in the configure.zcl like this:
<db:engine name="declarations.database"
	url="mysql://root@localhost/energie" echo="True" />
<db:session name="energiecluster.eccontent.platforms" 	
	engine="declarations.database" />

I need this database at some place in my code.
How can I access it.

What I am looking for is some kind of getUtilitty(db)

second question:
where would I find what is defined in:
xmlns:db="http://namespaces.zope.org/db

http://namespaces.zope.org is not a valid link..


thanks for any pointers
robert