Michele Simionato wrote: > I just discovered this: > > $ pydoc beaker.middleware.SessionMiddleware > Traceback (most recent call last): > File "/usr/bin/pydoc", line 5, in ? > pydoc.cli() > File "/usr/lib/python2.4/pydoc.py", line 2247, in cli > help.help(arg) > File "/usr/lib/python2.4/pydoc.py", line 1698, in help > elif request: doc(request, 'Help on %s:') > File "/usr/lib/python2.4/pydoc.py", line 1483, in doc > pager(title % desc + '\n\n' + text.document(object, name)) > File "/usr/lib/python2.4/pydoc.py", line 304, in document > if inspect.isclass(object): return self.docclass(*args) > File "/usr/lib/python2.4/pydoc.py", line 1178, in docclass > inspect.classify_class_attrs(object)) > File "/usr/lib/python2.4/inspect.py", line 214, > in classify_class_attrs > homecls = getattr(obj, "__objclass__", None) > File > "/usr/lib/python2.4/site-packages/Paste-1.4.2-py2.4.egg/paste/ > registry.py", line 125, in __getattr__ > return getattr(self._current_obj(), attr) > File > "/usr/lib/python2.4/site-packages/Paste-1.4.2-py2.4.egg/paste/ > registry.py", line 180, in _current_obj > raise TypeError( > TypeError: No object (name: Beaker Session) has been registered for > this thread > > I am posting here and not to the Beaker guys since it looks more like > as a problem of paste.registry, apologies if I am wrong.
Hmm... I suppose if that raised AttributeError or NameError it'd probably be okay with pydoc, but a TypeError isn't caught. I'm not sure if there was a reason it was a TypeError; Ben, can you think of anything? -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org : Write code, do good : http://topp.openplans.org/careers _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
