Help save net neutrality! Learn more.
Close

#354 fails to parse django view class

v3.0
open
nobody
None
5
2012-08-02
2012-08-02
qMax
No

==== way to reproduce:
$ django-startproject tmp
$ cd tmp
$ django startapp app
$ edit app/views.py:
from django.views.generic.base import TemplateView
class Page(TemplateView):
template_name = "page.html"

$ epydoc app

==== result
cli() Building documentation: app.views (/home/qmax/test/tmp/app/views.pyc)
File "/usr/lib/python2.7/dist-packages/epydoc/cli.py", line 965, in cli
main(options, names)
File "/usr/lib/python2.7/dist-packages/epydoc/cli.py", line 757, in main
exclude_parse=exclude_parse)
File "/usr/lib/python2.7/dist-packages/epydoc/docbuilder.py", line 206, in build_doc_index
doc_pairs = _get_docs_from_items(items, options)
File "/usr/lib/python2.7/dist-packages/epydoc/docbuilder.py", line 398, in _get_docs_from_items
item, doc_pairs[-1], options, progress_estimator)
File "/usr/lib/python2.7/dist-packages/epydoc/docbuilder.py", line 595, in _get_docs_from_submodules
module_filename, options, progress_estimator, pkg_docs)
File "/usr/lib/python2.7/dist-packages/epydoc/docbuilder.py", line 541, in _get_docs_from_module_file
filename=filename, context=parent_docs[0])
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 131, in introspect_docs
introspect_func(value, val_doc, module_name=module_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 276, in introspect_module
module_name=dotted_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 131, in introspect_docs
introspect_func(value, val_doc, module_name=module_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 373, in introspect_class
basedoc = introspect_docs(base)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 131, in introspect_docs
introspect_func(value, val_doc, module_name=module_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 373, in introspect_class
basedoc = introspect_docs(base)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 131, in introspect_docs
introspect_func(value, val_doc, module_name=module_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 400, in introspect_class
module_name=module_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 131, in introspect_docs
introspect_func(value, val_doc, module_name=module_name)
File "/usr/lib/python2.7/dist-packages/epydoc/docintrospecter.py", line 425, in introspect_routine
func = routine.__get__(0).im_func
TypeError: __get__() takes exactly 3 arguments (2 given)

Discussion


Log in to post a comment.