[Zope-dev] QueueCatalog bug when process all indexes imediatly is checked

2007-06-16 Thread Joachim Schmitz

Hi,

this is with a svn checkout of QueueCatalog. When the process all 
indexes imediatly is checked I get:

2007-06-16 12:57:44 ERROR event.QueueCatalog error cataloging object
Traceback (most recent call last):
  File 
/home/perry/Zope/instances/homewaeup/Products/QueueCatalog/QueueCatalog.py, 
line 425, in _process_queue

update_metadata=not immediate_metadata)
  File 
/home/perry/Zope/instances/waeup/Products/CPSCore/PatchCMFCoreCatalogTool.py, 
line 206, in cat_catalog_object

idxs = [i for i in idxs if self._catalog.indexes.has_key(i)]
TypeError: iteration over non-sequence
2007-06-16 12:57:45 ERROR event.QueueCatalog error cataloging object
Traceback (most recent call last):
  File 
/home/perry/Zope/instances/homewaeup/Products/QueueCatalog/QueueCatalog.py, 
line 425, in _process_queue

update_metadata=not immediate_metadata)
  File 
/home/perry/Zope/instances/waeup/Products/CPSCore/PatchCMFCoreCatalogTool.py, 
line 206, in cat_catalog_object

idxs = [i for i in idxs if self._catalog.indexes.has_key(i)]
TypeError: iteration over non-sequence

The error is caused by line 393 of QueueCatalog.py

def _process_queue(self, queue, limit):
Process a single queue
catalog = self.getZCatalog()

if self.getProcessAllIndexes():
#idxs = None this is wrong it must be
idxs = catalog.indexes()
else:
cat_indexes = sets.Set(catalog.indexes())
immediate_indexes = sets.Set(self._immediate_indexes)
if not immediate_indexes or immediate_indexes==cat_indexes:
#idxs = None # do all of 'emalso here
idxs = catalog.indexes() # do all of 'em

Even after applying these changes, the queue still fills up, when
process all indexes imediatly is checked.

We wanted to disable the QueueCatalog for a mass-data import.


--
Gruß Joachim

___
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 )


[Zope-dev] Zope Tests: 5 OK

2007-06-16 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Fri Jun 15 12:00:00 2007 UTC to Sat Jun 16 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Jun 15 20:51:42 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007889.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Jun 15 20:53:13 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007890.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Jun 15 20:54:45 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007891.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Jun 15 20:56:16 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007892.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Jun 15 20:57:47 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-June/007893.html

___
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 )