Re: [Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

2005-09-21 Thread Lennart Regebro
Dieter, my man! Now, in our case, the object is an IndexableObjectWrapper, wrapping an Acquisition wrapped object. So, aq_acquire will Acquicision wrap the IndexableObjectWrapper, with the result that the object being used now has no context! Really? No? What is the aq_parent that

[Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Chris Withers
Is there any way this could use normal python loggers? logger = getLogger('progress') ? (and then with a more generic section in zope.conf for having more loggers configured...) Andreas Jung wrote: Log message for revision 38482: added FilelogHandler Changed: U

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Chris Withers
Andreas Jung wrote: This is basically a backport of ongoing work where we can't and want use the Zope logger. How come? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Chris Withers
Andreas Jung wrote: This is basically a backport of ongoing work where we can't and want use the Zope logger. How come? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Andreas Jung
--On 21. September 2005 13:29:26 +0200 Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: This is basically a backport of ongoing work where we can't and want use the Zope logger. How come? Basically a co-worker had the requirement to do some maintenance work on the ZCatalog

Re: [Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

2005-09-21 Thread Dieter Maurer
Lennart Regebro wrote at 2005-9-21 08:18 +0200: ... What is the aq_parent that was used when wrapping the object? Eh, which one? The aq_chain of both the original aq wrapper and the indexableobjectrapper is correct. The aq_chain of the outside aq_wrapper is just [self]. Which seems expected,

Re: [Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

2005-09-21 Thread Lennart Regebro
When an acquisition wrapper is formed, there always must some context (which is put into aq_parent). Well, as I can figure out this is the code that does the wrapping: /* Crap, we've got to construct a wrapper so we can use Wrapper_findattr */ UNLESS (self=newWrapper(self, Py_None,