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?

Shane

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 
__run
        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 
traverse
        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 
queryAdapter
        return adapter_hook(interface, object, name, default)
      File "/home/shane/svn/Zope3/src/zope/app/component/hooks.py", line 96, in 
adapter_hook
        return siteinfo.adapter_hook(interface, object, name, default)
    TypeError: __init__() takes exactly 3 arguments (2 given)
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to