[ZODB-Dev] Re: [Zope3-dev] ZODB3, DataManagerAdapter and sortKey

Sidnei da Silva sidnei at awkly.org
Thu Jun 24 10:47:38 EDT 2004


On Tue, Jun 22, 2004 at 06:57:55PM -0300, Sidnei da Silva wrote:
| While using zope.app.rdb connections in zope3, the connection gets
| registered with the transaction manager I think, and at some point
| ZopeDBTransactionManager gets wrapped into a DataManagerAdapter. Upon
| the transaction commit, the resource managers are sorted, including a
| DataManagerAdapter which is adapting a ZopeDBTransactionManager.
| 
| DataManagerAdapter doesn't have a sortKey method, so it fails with an
| AttributeError.
| 
| The IDataManager interface doesn't have a sortKey method either.
| 
| What is the right thing to do here? I've made some changes to get it
| to run, including a test to reproduce the behavior
| but I'm not quite sure about the right thing to do here.
| 
| Anybody cares to clarify the issue here?
| 
| I attached a patch with the changes I've did to get it to run.

Tim and Jim approved the patch already and I've checked in in both the
branch and head of Zope 3.

-- 
Sidnei da Silva <sidnei at awkly.org>
http://awkly.org - dreamcatching :: making your dreams come true
http://www.enfoldsystems.com
http://plone.org/about/team#dreamcatcher

Earth is a beta site.


More information about the ZODB-Dev mailing list