I've got a strange error here; whenever absolute_url is called, it is raised
a KeyError exception, stating that SERVER_URL is missing..

(The traceback..)

Traceback (innermost last):
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_addTransform)
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: manage_addTransform)
  File /usr/local/Zope/lib/python/Products/Transform/transform.py, line 54, in 
manage_addTransform
  File /usr/local/Zope/lib/python/Products/Transform/transform.py, line 154, in 
__init__
    (Object: CatalogAware)
  File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 278, in _setObject
    (Object: CatalogAware)
  File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 286, in manage_afterAdd
    (Object: Traversable)
  File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 286, in manage_afterAdd
    (Object: Traversable)
  File /usr/local/Zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 114, in 
manage_afterAdd
    (Object: CatalogAware)
  File /usr/local/Zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 184, in 
index_object
    (Object: CatalogAware)
  File /usr/local/Zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 157, in 
url
    (Object: CatalogAware)
  File /usr/local/Zope/lib/python/OFS/Traversable.py, line 119, in absolute_url
    (Object: CatalogAware)
KeyError: (see above)

The line(s) causing the error were a rather long list of _setObject
commands:

"""
[...]
        self._setObject('M', agencysort.AgencySort('M'))
        self._setObject('N', agencysort.AgencySort('N'))
[...]
"""

Any ideas?

Thanks in advance.

-Morten

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to