I'm working on enhancing zope.app.apidoc, but I ran into an exception that's hard to decipher. I've attached the traceback. I don't know which __init__() it's complaining about, and I don't know how to find out. What can I do to find out which __init__() the adapter hook is trying to call?


File "/home/shane/svn/Zope3/src/zope/app/apidoc/codemodule/browser/README.txt", 
line 66, in README.txt
Failed example:
    code_breadcrumbs = traverse(details.context, '@@code_breadcrumbs')
Exception raised:
    Traceback (most recent call last):
      File "/home/shane/svn/Zope3/src/zope/testing/doctest.py", line 1361, in 
        compileflags, 1) in test.globs
      File "<doctest README.txt[11]>", line 1, in ?
        code_breadcrumbs = traverse(details.context, '@@code_breadcrumbs')
      File "/home/shane/svn/Zope3/src/zope/traversing/api.py", line 87, in 
        return traverser.traverse(path, request=request)
      File "/home/shane/svn/Zope3/src/zope/traversing/adapters.py", line 113, 
in traverse
        curr = traversePathElement(curr, name, path, request=request)
      File "/home/shane/svn/Zope3/src/zope/traversing/adapters.py", line 154, 
in traversePathElement
        return namespaceLookup(ns, nm, obj, request)
      File "/home/shane/svn/Zope3/src/zope/traversing/namespace.py", line 107, 
in namespaceLookup
        traverser = zope.component.queryAdapter(object, ITraversable, ns)
      File "/home/shane/svn/Zope3/src/zope/component/_api.py", line 96, in 
        return adapter_hook(interface, object, name, default)
      File "/home/shane/svn/Zope3/src/zope/app/component/hooks.py", line 96, in 
        return siteinfo.adapter_hook(interface, object, name, default)
    TypeError: __init__() takes exactly 3 arguments (2 given)
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to