[Zope3-Users] Get to ZODB root from global utility
jim at zope.com
Wed Dec 14 13:13:31 EST 2005
John Smith wrote:
> Dear Jim,
> I was unable to import IDatabase from ZODB.interfaces,
> although I could import IDataManager and IConnection.
> However, when I tried:
> root = zapi.getUtility(IDataManager)
> I got a componentlookuperror. (The same error happens
> with IConnection).
Did you try IBuddy? ;)
> Any thoughts?
I'm guessing that you are using Zope 3.0.
The registration of databases as utilities wasn't added
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-users