I've been trying to generate docs for my project, however since one
of classes relies on a thread local that will only exist in a
specific context (which doesn't exist during Pudge generation), Pudge
apparently dies on this error.
I'm not sure offhand how Pudge is generating docs, but I'd imagine it
should either ignore such objects, or get the doc-strings without
instantiating it or actually hitting the imports (whichever is
killing it). Here's the relative portion of the traceback:
......
File "/Users/ben/Programming/Python/pudge/pudge/browser.py", line
357, in all
if (visible_only and not m.isvisible()) or \
File "/Users/ben/Programming/Python/pudge/pudge/browser.py", line
195, in isvisible
if getattr(self.obj, '__deprecated__', False):
File "/Users/ben/Programming/Python/pylons/pylons/helpers.py",
line 26, in __getattr__
return getattr(self._get_object(), name)
File "/Users/ben/Programming/Python/pylons/pylons/helpers.py",
line 45, in _get_object
inst = request.instance()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/Myghty-0.99bdev_r2028-py2.4.egg/myghty/
request.py", line 937, in instance
return reqinstance.get()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/Myghty-0.99bdev_r2028-py2.4.egg/myghty/
util.py", line 113, in get
return self.dict[_thread.get_ident()]
KeyError: -1610551960
The object in question here doesn't exist in this context, so I'd
assume the ideal behavior would be for Pudge to move on.
Also, on the templating choices, what kind of effort are we looking
at to utilize template plug-ins? I ask mainly because I've now hit
several severe limitations of Kid when trying to generate docs using it.
Thanks,
Ben
_______________________________________________
Pudge mailing list
[email protected]
http://lesscode.org/mailman/listinfo/pudge