[Zope] Apache + ZServer + SiteAccess

Meng Kuan mengkuan@lga.net.sg
Thu, 17 Feb 2000 13:29:53 +0800


Hi,

I was previously using the fastcgi solution but recently switched to use
anser's solution as given in the how-to:

http://www.zope.org/Members/anser/apache_zserver

Everything has been working solidly (and fast!) until I found out that
it can't seem to do a recatalog properly.

Details are:

Zope 2.1.4 + apache 1.3.9 on Debian potato.

Zope is served off http://myserver.com/Zope/. I have a product called
Sample that subclasses ZCatalog and reindexes its objects when edited.
However, now when I tried to perform an edit, the following error
message results:

Error Type: ValueError
Error Value: Uncatalog of absent id 'Zope/Sample/Object1'

<!--
Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: CatalogAware)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
    (Object: manage_edit)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
    (Object: manage_edit)
  File /usr/lib/zope/lib/python/Products/Sample/Sample.py, line 184, in
manage_edit
    (Object: CatalogAware)
  File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py,
line 190, in reindex_object
    (Object: CatalogAware)
  File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py,
line 186, in unindex_object
    (Object: CatalogAware)
  File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 357,
in uncatalog_object
    (Object: ElementWithAttributes)
  File /usr/lib/zope/lib/python/Products/ZCatalog/Catalog.py, line 373,
in uncatalogObject
ValueError: (see above)

-->

My guess is that it was previously catalogued as 'Sample/Object1' but
ZCatalog now gets the uid of the object as 'Zope/Sample/Object1'. Is
there anything that I can do to overcome this? Will installing a
SiteRoot in Catalog (my default catalog object) itself help?

Any help is appreciated,

Thanks
Meng Kuan