[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-dev
Subject: [Zope-dev] Re: Weird IndexableObjectWrapper + TopicIndex +
From: Lennart Regebro <regebro () gmail ! com>
Date: 2005-09-20 15:42:32
Message-ID: 319e029f0509200842446c29f0 () mail ! gmail ! com
[Download RAW message or body]
OK, so, for some reason some CMF objects fail when being indexed
because they are wrapped in an aq wrapper that wrapped an
IndexableObjectWrapper that wraps another aq_wrapper.
And sometimes, the same object do not fail in otehrwise very similar
situation. *sigh*.
So for example, this works fine:
container._setObject(id, ob)
ob = container._getOb(id)
<returns to the workflows constructInstance method>
<yadayadyada>
ob.indexObject()
All if fine. And this fails:
container._setObject(id, ob)
ob = container._getOb(id)
ob.manage_permission(
permission_to_manage='Access contents information',
roles=ACCESS_CONTENTS_INFO_ROLES,
acquire=0)
<returns to the workflows constructInstance method>
<yadayadyada>
ob.indexObject()
Now, it only fails around every second time. Mhm. Nope, not everytime.
It's regukar, a unit test will fail on the same places both times, but
*exactly the same call* will still fail about every second time.
Hurray. I'm so happy this problem is so easy to track down! Grrr.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic