Re: [Epydoc-devel] Proposal: give possibility to use derived customized HTMLWriter
Brought to you by:
edloper
|
From: Thomas K. <sou...@sc...> - 2009-05-23 09:50:12
|
Hi,
I forgot a detail for my patch. To use this patch, and especially the
extension for checker class, it's necessary also to extend basic
DocChecker class. There must be too a extra argument like in HTMLWriter
class to receive commandline options, if necessary.
Here is this patch:
diff -ruN epydoc-3.0.1_orig/epydoc/checker.py epydoc_3.0.1/epydoc/checker.py
--- epydoc-3.0.1_orig/epydoc/checker.py 2007-08-02 18:58:09.000000000 +0200
+++ epydoc_3.0.1/epydoc/checker.py 2008-06-04 18:54:29.000000000 +0200
@@ -144,7 +144,7 @@
ALL = ALL_T + ALL_C + PRIVATE
- def __init__(self, docindex):
+ def __init__(self, docindex, **extra_args):
"""
Create a new C{DocChecker} that can be used to run checks on
the documentation of the objects documented by C{docindex}
@@ -152,6 +152,8 @@
@param docindex: A documentation map containing the
documentation for the objects to be checked.
@type docindex: L{Docindex<apidoc.DocIndex>}
+ @param extra_args: extra arguments and options, actually not used
+ @type extra_args: C{dict}
"""
self._docindex = docindex
|