Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: DB
how to access database declared in configure.zcml
 

Index | Next | Previous | View Flat


robert at redcor

Oct 30, 2008, 11:12 PM


Views: 933
Permalink
how to access database declared in configure.zcml

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[at]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

_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db

Subject User Time
how to access database declared in configure.zcml robert at redcor Oct 30, 2008, 11:12 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.