[Zope3-dev] absolute_url misconfiguration?

Sidnei da Silva sidnei@x3ng.com
Mon, 24 Mar 2003 16:33:08 -0300


Howdy folks,

I was trying to improve HTTP and DAV support on Zope3, and found a
strange bug. I implemented a very simple OPTIONS handler, and tried it
with cadaver. Heres the traceback:

======================================================================
  File "/home/sidnei/Zope3/Zope3/src/zope/component/__init__.py", line
  106, in getView
    'Views').getView(wrapped_object, name, request)
  File "/home/sidnei/Zope3/Zope3/src/zope/app/services/view.py", line
  122, in getView
    raise ComponentLookupError(object, name)
ComponentLookupError: (<zope.app.content.folder.RootFolder object at
0x10b5ad60>, 'absolute_url')
127.0.0.1:  - anonymous [2003/Mar/24:16:13:10 -0200] "PROPFIND /
HTTP/1.1" 500 320 "" "cadaver/0.21.0 neon/0.24.0-dev
======================================================================

>From this, I would conclude that theres no absolute_url view
registered for RootFolder, from what I can see. There are tests for
this and the tests are passing. Does it look like a ZCML error maybe?

src/zope/app/browser/traversal.zcml has this:

======================================================================
<page
    for="zope.app.interfaces.traversing.IContainmentRoot"
    name="absolute_url"
    class=".absoluteurl.SiteAbsoluteURL"
    permission="zope.Public"
    allowed_interface="zope.app.interfaces.browser.absoluteurl.IAbsoluteURL"
    />
======================================================================

And it seems right. Im lost :(

[]'s
-- 
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>
GNU/Linux user 257852
Debian GNU/Linux 3.0 (Sid) 2.4.18 ppc

A computer without COBOL and Fortran is like a piece of chocolate cake
without ketchup and mustard.