[Zope-CVS] CVS: Products/QueueCatalog - QueueCatalog.py:1.12
Sidnei da Silva
sidnei@x3ng.com.br
Mon, 9 Jun 2003 16:04:31 -0400
Update of /cvs-repository/Products/QueueCatalog
In directory cvs.zope.org:/tmp/cvs-serv7895
Modified Files:
QueueCatalog.py
Log Message:
Delegating to ZCatalog, at Shane's request
=== Products/QueueCatalog/QueueCatalog.py 1.11 => 1.12 ===
--- Products/QueueCatalog/QueueCatalog.py:1.11 Fri May 30 15:29:32 2003
+++ Products/QueueCatalog/QueueCatalog.py Mon Jun 9 16:04:31 2003
@@ -48,6 +48,7 @@
'index_objects': 1,
'searchResults': 1,
'__call__': 1,
+ 'refreshCatalog': 1,
}
_is_zcatalog_method = _zcatalog_methods.has_key
@@ -324,23 +325,6 @@
"""
# Punt for now and ignore idxs.
self.catalog_object(object)
-
- def refreshCatalog(self, clear=0):
- """ re-index everything we can find """
-
- zc = self.getZCatalog()
- cat = zc._catalog
- paths = cat.paths.values()
- if clear:
- paths = tuple(paths)
- cat.clear()
-
- for p in paths:
- obj = zc.resolve_path(p)
- if not obj:
- obj = zc.resolve_url(p, self.REQUEST)
- if obj is not None:
- self.catalog_object(obj, p)
# Provide web pages. It would be nice to use views, but Zope 2.6
# just isn't ready for views. :( In particular, we'd have to fake