[Zope3-dev] Bug in apidoc?

Florian Lindner mailinglists at xgm.de
Sun Nov 28 03:27:26 EST 2004


Hello,
when I go the the interface documentstion of any interface including my 
own ones, for example: 
http://localhost:8080/++apidoc++/Interface/zope.interface.Interface/apiindex.html 
and click on one of the links in the Adapters section, those who are 
placed after "liefert:" ("delivers:"), for example the first one: 
http://localhost:8080/++apidoc++/Interface/zope.app.traversing.interfaces.ITraversable/apiindex.html 
I get a server error occured.

The ErrorLog list two errors:


Zeit Sun Nov 28 12:21:29 2004
Benutzer florian, zope.manager, Manager,
Anfrage-URL 
http://localhost:8080/++apidoc++/Interface/zope.app.traversing.interfaces.ITraversable/apiindex.html
Ausnahmetyp AttributeError
Ausnahmewert 'SubscriptionRegistration' object has no attribute 'name

Traceback (innermost last):
   Module zope.publisher.publish, line 138, in publish
     result = publication.callObject(request, object)
   Module zope.app.publication.zopepublication, line 153, in callObject
     return mapply(ob, request.getPositionalArguments(), request)
   Module zope.publisher.publish, line 113, in mapply
     return debug_call(object, args)
    - __traceback_info__: <security proxied 
zope.app.pagetemplate.simpleviewclass.SimpleViewClass from 
C:\Python23\Lib\site-packages\zope\app\apidoc\ifacemodule\index.pt 
instance at 0x021037D0>
   Module zope.publisher.publish, line 119, in debug_call
     return object(*args)
   Module zope.app.pagetemplate.simpleviewclass, line 45, in __call__
     return self.index(*args, **kw)
   Module zope.app.pagetemplate.viewpagetemplatefile, line 76, in __call__
     return self.im_func(im_self, *args, **kw)
   Module zope.app.pagetemplate.viewpagetemplatefile, line 45, in __call__
     s = self.pt_render(namespace)
   Module zope.pagetemplate.pagetemplate, line 118, in pt_render
     context, output, tal=not source, strictinsert=0)()
   Module zope.tal.talinterpreter, line 165, in __call__
     self.interpret(self.program)
   Module zope.tal.talinterpreter, line 208, in interpret
     handlers[opcode](self, args)
   Module zope.tal.talinterpreter, line 681, in do_useMacro
     self.interpret(macro)
   Module zope.tal.talinterpreter, line 208, in interpret
     handlers[opcode](self, args)
   Module zope.tal.talinterpreter, line 377, in do_optTag_tal
     self.do_optTag(stuff)
   Module zope.tal.talinterpreter, line 362, in do_optTag
     return self.no_tag(start, program)
   Module zope.tal.talinterpreter, line 357, in no_tag
     self.interpret(program)
   Module zope.tal.talinterpreter, line 208, in interpret
     handlers[opcode](self, args)
   Module zope.tal.talinterpreter, line 706, in do_defineSlot
     self.interpret(slot)
   Module zope.tal.talinterpreter, line 208, in interpret
     handlers[opcode](self, args)
   Module zope.tal.talinterpreter, line 427, in do_setLocal_tal
     self.engine.setLocal(name, self.engine.evaluateValue(expr))
   Module zope.tales.tales, line 698, in evaluate
     return expression(self)
    - C:\Python23\Lib\site-packages\zope\app\apidoc\ifacemodule\index.pt
    - Line 151, Column 2
    - Expression: <PathExpr standard:'view/getProvidedAdapters'>
    - Names:
       {'args': (),
        'context': <InterfaceClass 
zope.app.traversing.interfaces.ITraversable>,
        'default': <object object at 0x0089D468>,
        'loop': {},
        'nothing': None,
        'options': {},
        'repeat': {},
        'request': <zope.publisher.browser.BrowserRequest instance 
URL=http://localhost:8080/++apidoc++/Interface/zope.app.traversing.interfaces.ITraversable/apiindex.html>,
        'template': 
<zope.app.pagetemplate.viewpagetemplatefile.ViewPageTemplateFile object 
at 0x01ACD990>,
        'usage': <zope.pagetemplate.pagetemplate.TemplateUsage object at 
0x021033F0>,
        'view': <zope.app.pagetemplate.simpleviewclass.SimpleViewClass 
from C:\Python23\Lib\site-packages\zope\app\apidoc\ifacemodule\index.pt 
object at 0x021037D0>,
        'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper 
object at 0x02103C70>}
   Module zope.tales.expressions, line 207, in __call__
     return self._eval(econtext)
   Module zope.tales.expressions, line 201, in _eval
     return ob()
   Module zope.app.apidoc.ifacemodule.browser, line 490, in 
getProvidedAdapters
     adapters.append({
AttributeError: 'SubscriptionRegistration' object has no attribute 'name'



and the other one:


Zeit Sun Nov 28 12:21:29 2004
Benutzer florian, zope.manager, Manager,
Anfrage-URL http://localhost:8080/favicon.ico
Ausnahmetyp NotFound
Ausnahmewert Object: <zope.app.folder.folder.Folder object at 
0x01FEBEF0>, name: u'favicon.ico'

This just for the sake of completeness, I don't think this one is important.

Should I file a collector bug item for that? I just want to have it 
confirmed.


Florian


More information about the Zope3-dev mailing list