-
;g=c       s    d  Z    h  d d <d d <d d <d d <d	 d
 <d d <d d <Z - y . e d i d  d Z Wn / 0 d Z n X5 d k Z 6 d k Z 7 d k Z 8 d k Z = d k Z > d k	 Z D d   Z
 M d e i i i f d     YZ 'd e i i f d     YZ ge d j od hxZ d d f d d f d d f d d f d d f f Dh]" \ Z Z ue i i e e  qgWn d S(   s,   Formatter which produces HTML with tables.

s#   $RCSfile: formatter_HTMLFile.py,v $s   module_names    Doug Hellmann <doug@hellfly.net>s   creators   HappyDocs   projects   Sat, 03-Jun-2000 17:58:48 EDTs   createds   $Author: doughellmann $s   authors   $Revision: 1.6 $s   versions   $Date: 2002/08/24 19:53:31 $s   dates    i   s   0.0Nc      s#   D E F h  d d <t  d <Sd S(   s;   Return information about this module to the dynamic loader.s	   HTMLTables   names   factoryN(   s   HTMLTableFormatter(    (    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   entryPointD s   s   HTMLTableFormatterc      s$  M d  Z    d d d d d d e d d d d d  Z  e i d	  Z  e d
  Z  d   Z d   Z &d   Z	 0d   Z
 4d d  Z Ad e d  Z Id   Z Od   Z Td   Z bd   Z }d   Z d   Z d   Z d   Z d   Z d   Z d d  Z 1d   Z Bd   Z Ld   Z Qd    Z Xe d d!  Z bd"   Z jd#   Z d$   Z d%   Z  d&   Z! d'   Z" e d(  Z# d)   Z$ d*   Z% d+   Z& d,   Z' d-   Z( d. d/  Z) !d0   Z* RS(1   s  Formatter which produces HTML with tables.

    The output from this formatter is not generally suitable for
    printing, but works fine for online documentation.  The primary
    concern with printing the output is that the nested tables can
    cause pages to be very wide, especially with a lot of nesting of
    classes.  Printable HTML output should be addressed by another
    formatter.

      Parameters

        compactHTML -- A boolean switch to cause the formatter
                       to generate more compact HTML.  Extra
                       whitespace is removed in order to make the
                       generated files take up less space and
                       download more quickly.  The default is
                       False to cause output to be more readable.
      
        filenamePrefix -- A prefix to preprend to the base names of
                          files and directories being created.  This
                          is useful for situations where the names
                          which would be automatically generated might
                          cause a name clash or conflict.

        pageBackgroundColor -- Background color for HTML pages

        levelOneHeadingBackgroundColor -- Background color for level
                                          one heading sections.

        levelOneHeadingForegroundColor -- Foreground color for level
                                          one heading sections.

        levelTwoHeadingBackgroundColor -- Background color for level
                                          two heading sections

        levelTwoHeadingForegroundColor -- Foreground color for level
                                          two heading sections.

        codeForegroundColor -- Foreground color for code blocks.

        dateStampFiles -- Boolean indicating whether or not to include
                          a date/time stamp in files.

        htmlQuoteText -- Boolean indicating whether or not to assume
                         that docstrings need to be quoted because
                         they might have special HTML characters in
                         them.  Defaults to true so that text is
                         quoted.

        debug -- Enable debugging comments in output.
      
    s   #ffffffs   #88bbees   #000000s   #99ccffs   #000088i   i    c    s      | |  _  | |  _  | |  _  | |  _  | |  _
  | |  _  t i i |	  |  _  t i i |
  |  _  t i i |  |  _  | |  _  h  |  _  d |  _  d |  _  t t i i i i  |  | f  |   d Sd S(   s
  Initialize the HTMLTableFormatter.

        Parameters

            'docSet' -- the DocSet instance containing global cross-reference
                      information
            
            '**configuration' -- additional, optional, configuration values

        i    i   N(!   s   pageBackgroundColors   selfs   _page_bgcolors   levelOneHeadingBackgroundColors   _l1_bgcolors   levelOneHeadingForegroundColors   _l1_fgcolors   levelTwoHeadingBackgroundColors   _l2_bgcolors   levelTwoHeadingForegroundColors   _l2_fgcolors   codeForegroundColors   _code_fgcolors   happydoclibs   optiontoolss   getBooleanArgumentValues   dateStampFiless   _date_stamp_filess   htmlQuoteTexts   _html_quote_texts   compactHTMLs   _compact_htmls   debugs   _section_header_counterss   _section_header_counters   _section_level_counters   applys	   formatters   fileformatterbases   FileBasedFormatters   __init__s   docSets   configuration(   s   selfs   docSets   pageBackgroundColors   levelOneHeadingBackgroundColors   levelOneHeadingForegroundColors   levelTwoHeadingBackgroundColors   levelTwoHeadingForegroundColors   codeForegroundColors   docsetTitles   dateStampFiless   htmlQuoteTexts   compactHTMLs   debugs   configuration(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   __init__ s$   
c    s      t  i i d d  d |  | i | d  }  | d j o-  | d  d j o  d | d	 } n n  t  i i |  Sd
 S(   s   All HTML links use the '/' separator, so here the current
        platform separator needs to be replaced with the '/'.
        s   HTMLTableFormatters   _fixReferences	   references   /s   :i   s   https	   http://%si   N(   s   happydoclibs   TRACEs   intos	   references   replaces   seps   new_refs   outof(   s   selfs	   references   seps   new_ref(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   _fixReference s   c 	 	  s     t  i i d d  d |  d |  d |  t | d  o)  | i   }  t  i i	 d |  n  | o,  |  i |  }  t  i i	 d |  n  |  i |  }  t  i i	 d |   t  i i |  |  |  i i    }  t  i i d	 |   t  i i	 d
 |   | d d j o  t  i i d  n  |  i |  }  h  | d <| d
 <}  d | }  t  i i |  Sd S(   sG   Returns a reference to the 'infoSource' from 'relativeSource'.
        s   HTMLTableFormatters   getReferences
   infoSources   names   relativeSources   getPaths   paths   info_source_paths   Name is "%s"s   linki    s   /s   starts at roots   <a href="%(link)s">%(name)s</a>N(   s   happydoclibs   TRACEs   intos
   infoSources   names   relativeSources   hasattrs   getPaths   paths   writeVars   selfs   getNameForInfoSources   getFullOutputNameForObjects   info_source_paths   computeRelativeHTMLLinks   _docsets   getOutputBaseDirectorys   links   writes   _fixReferences   infos   refs   outof(	   s   selfs
   infoSources   relativeSources   names   infos   info_source_paths   links   paths   ref(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getReference s0   		c  	  s   t  i i d d d | i   d | d | t  i i d |  i	 |   	t  i
 i | |  i	 |  |  i i    } t  i i d |  |  i |  } h  | i   d <| d <| d <} d	 | } t  i i |  Sd
 S(   so   Returns a reference to 'name' within the documentation for
        'infoSource' from 'relativeSource'.
        s   HTMLTableFormatters   getNamedReferences
   infoSources   names   relativeSources   output_names   links   targets,   <a href="%(link)s#%(target)s">%(target)s</a>N(   s   happydoclibs   TRACEs   intos
   infoSources   getNames   names   relativeSources   writeVars   selfs   getOutputNameForObjects   paths   computeRelativeHTMLLinks   _docsets   getOutputBaseDirectorys   links   _fixReferences   infos   refs   outof(   s   selfs
   infoSources   names   relativeSources   infos   links   ref(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getNamedReference s   	*c    s6    h  | i   d <} #d | } $| Sd S(   sI   Returns a reference to 'infoSource' within the current document.
        s   names    <a href="#%(name)s">%(name)s</a>N(   s
   infoSources   getNames   infos   ref(   s   selfs
   infoSources   infos   ref(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getInternalReferences   c    sB   &)*|  i } +| |  i j o ,d t   Sn .| Sd S(   s   Returns a reference to 'moduleName' documentation on the
        "Python.org":http://www.python.org documentation site.
        sB   <a href="%(libdoc)s/module-%(moduleName)s.html">%(moduleName)s</a>N(   s   selfs   _python_lib_docs   libdocs
   moduleNames   sys_moduless   locals(   s   selfs
   moduleNames   libdoc(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getPythonReference&s
   c    s   012d Sd S(   s0   Returns the extension for creating output files.s   htmlN(    (   s   self(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getFilenameExtension0s   s   &nbsp;c    sN   479t  i i i i |  ;| <|  } >|  i	 | | |  ?| Sd S(   s   Open output destination using 'name' with the title from 'title1'.
        Write 'title2' as a secondary title to the new output.
        N(   s   happydoclibs	   formatters   fileformatterbases   FileBasedFormatters
   openOutputs   selfs   names   title1s   fs
   fileHeaders   title2(   s   selfs   names   title1s   title2s   f(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   openOutput4s   c    s<   ABC|  i | | D|  i E|  i F|  Gd Sd S(   s8   Write the formatting for a file header to the open file.N(   s   selfs
   htmlHeaders   title1s   title2s   _l1_bgcolors   _l1_fgcolors   output(   s   selfs   title1s   title2s   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   fileHeaderAs   		
c    s.   IJK|  i |  L| i   Md Sd S(   s   Close the 'output' handle.N(   s   selfs
   fileFooters   outputs   close(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   closeOutputIs   c    s!   OPQ|  i |  Rd Sd S(   s8   Write the formatting for a file footer to the open file.N(   s   selfs
   htmlFooters   output(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   fileFooterOs   c    s   TUV|  i d |  _ W|  i i |  i d  |  _ Y|  i d |  i |  i f [|  \|  i d ^|  _|  i d |  `d Sd S(   s+   Push a section level on the 'output' stack.i   i    s   section %d:%d (push level)s@   <table border="0" cellpadding="5" cellspacing="0" width="100%">
s
   push levelN(   s   selfs   _section_level_counters   _section_header_counterss   gets   _section_header_counters   comments   outputs	   writeHTML(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   pushSectionLevelTs   

c    s   bcd|  i d |  i |  i f f|  h|  i d |  i|  i d |  od |  i |  i <s|  i d |  _ x|  i i |  i d  |  _ zd Sd S(   s,   Pop a section level from the 'output' stack.s   section %d:%d (pop level)s	   </table>
s	   pop leveli    i   N(   s   selfs   comments   _section_level_counters   _section_header_counters   outputs	   writeHTMLs   _section_header_counterss   get(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   popSectionLevelbs   
c    s   }~|  i i } | i } t i i |  i	 i
   |  i    } | | j o |  i   } n+ t i i | | |  i	 i
    } | Sd S(   sO   Return the root documentation node location relative to this 'output' location.N(   s   selfs   open_root_files   names   first_file_openeds   outputs   current_output_names   happydoclibs   paths   joins   _docsets   getOutputBaseDirectorys   getRootNodeNames   root_node_names   root_locations   computeRelativeHTMLLink(   s   selfs   outputs   root_node_names   first_file_openeds   current_output_names   root_location(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getRootLocation}s   c    s   | o d } n |  i |  } h  |  i d <| d <| d <| d <| d <| d <} |  i
 d | |  |  i d	 |  d
 Sd
 S(   s=  Output a standard HTML header used by all output files.

        Parameters

            'title' -- title of the document

            'output' -- destination for written output

            'titleBg' -- background color for the title bar

            'titleFg' -- foreground color for text in the title bar

        s   &nbsp;s   bgcolors   titles   subtitles   title_bgs   title_fgs   roots  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html40/loose.dtd">

<html>
         
  <head>
    <title>%(title)s</title>
  </head>

  <body bgcolor="%(bgcolor)s">

        <p><i><a href="%(root)s">Table of Contents</a></i></p>
        
        <table border="0" cellpadding="5" cellspacing="0" width="100%%">
        <tr>
            <th rowspan="2"
                valign="top"
                align="left"
                width="10%%"
                bgcolor="%(title_bg)s"><font color="%(title_fg)s">%(title)s</font>
            </th>
            <th bgcolor="%(title_bg)s"
                width="90%%"
                align="right"><font color="%(title_fg)s">%(subtitle)s</font>
            </th>
        </tr>
        <tr>
        <td>
        s   html headerN(   s   subtitles   selfs   getRootLocations   outputs   root_locations   _page_bgcolors   titles   titleBgs   titleFgs   infos	   writeHTMLs   comment(   s   selfs   titles   subtitles   titleBgs   titleFgs   outputs   infos   root_location(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   htmlHeaders   B	c    s   |  i o d |  i } n
 d } h  t i   d <| d <|  i |  d <} |  i	 d |  |  i	 d t
 |  i  |  |  i	 d t
 |  i  |  |  i d	 | |  d
 Sd
 S(   s9   Output a standard HTML footer used by all 'output' files.s   on %ss    s   app_versions   date_strs   roots   html footers   section header %ss   section level %ssu  
        </td>
        </tr>
        </table>

        <hr>

        <p><i><a href="%(root)s">Table of Contents</a></i></p>

        <font size="-2"><i>This document was automatically generated
        %(date_str)s by
        <a href="http://happydoc.sourceforge.net">HappyDoc</a> version
        %(app_version)s</i></font>
        
        </body>
        </html>
        N(   s   selfs   _date_stamp_filess   _update_times   date_strs   happydoclibs   cvsProductVersions   getRootLocations   outputs   infos   comments   strs   _section_header_counters   _section_level_counters	   writeHTML(   s   selfs   outputs   infos   date_str(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   htmlFooters   	3  c    sc   t  i i d d  |  i   o d |  i   } n
 d } t  i i |  Sd S(   sA   Returns the name of the root node for documentation of this type.s   HTMLFileFormatters   getRootNodeNames   %sindex.htmls
   index.htmlN(   s   happydoclibs   TRACEs   intos   selfs   getFilenamePrefixs   root_node_names   outof(   s   selfs   root_node_name(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   getRootNodeNames   	c    s$   |  i d |  d Sd S(   s   Begin an indented section.s   <ul>
N(   s   selfs	   writeHTMLs   output(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   indents   c    s$   	|  i d |  
d Sd S(   s   End an indented section.s   </ul>
N(   s   selfs	   writeHTMLs   output(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   dedents   c    s   | o d Sn |  i |  } #t i i |  } $|   } (|  i	 o | o )| i
 | d  } n -| i | d d d } .|  i | |  /d Sd S(   s  Format and write the 'text' to the 'output'.

        Arguments:

          'text' -- String to be written.

          'output' -- Stream to which 'text' should be written.

          'textFormat' -- String identifying the format of 'text' so
          the formatter can use a docstring converter to convert the
          body of 'text' to the appropriate output format.

          'quote=1' -- Boolean option to control whether the text
          should be quoted to escape special characters.

        Ns   htmls   leveli   (   s   texts   selfs   _unquoteStrings   happydoclibs	   docstrings   getConverterFactorys
   textFormats   converter_factorys	   converters   _html_quote_texts   quotes   converts   htmls	   writeHTMLs   output(   s   selfs   texts   outputs
   textFormats   quotes   converter_factorys   htmls	   converter(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys	   writeTexts   c    s   123|  i oY 4t i t t 5t t i 6t i | 7d    ;d  } =|  i | |  n ?|  i | |  @d Sd S(   s3   Remove extra white space in HTML before outputting.s   
N(   s   selfs   _compact_htmls   strings   joins   filters   Nones   maps   strips   splits   texts   compact_texts   writeRaws   output(   s   selfs   texts   outputs   compact_text(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys	   writeHTML1s   c    sT   BCDt  i i |  } E|   } Fd |  i | i | d  f } J| Sd S(   s7   Format 'text' as source code and return the new string.s(   <font color="%s"><pre>
%s
</pre></font>
s   htmlN(   s   happydoclibs	   docstrings   getConverterFactorys
   textFormats   converter_factorys	   converters   selfs   _code_fgcolors   quotes   texts   formatted_text(   s   selfs   texts
   textFormats   formatted_texts   converter_factorys	   converter(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   formatCodeBs
   "c    s   LMNd | } O| Sd S(   s5   Format 'text' as a keyword and return the new string.s	   <b>%s</b>N(   s   texts   formatted_text(   s   selfs   texts   formatted_text(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   formatKeywordLs   c    sF   QRS| o Td Sn U|  i |  i | |  |  Vd Sd S(   s7   Format and write the 'text' to 'output' as source code.N(   s   texts   selfs   writeRaws
   formatCodes
   textFormats   output(   s   selfs   texts
   textFormats   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys	   writeCodeQs
   c    sY   X[\| o ]|  i d | |  n ^|  i d |  _|  i |  `d Sd S(   s   Output 'title' as a heading for a list.  If 'allowMultiColumn' is
        true, set up the list to have more than one column.
        s   <h4>%s</h4>
s   
N(   s   titles   selfs	   writeHTMLs   outputs   _pushListContexts   allowMultiColumn(   s   selfs   outputs   titles   allowMultiColumn(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   listHeaderXs   
c    sR   bcd|  i t j	 o e|  i i |  n g|  i d | |  hd Sd S(   s/   Format and output the 'text' as a list element.s   %s<br>
N(   s   selfs   current_list_contexts   Nones   appends   texts	   writeHTMLs   output(   s   selfs   outputs   text(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   listItembs
   c 
   s  jkpt  |  } q| d j  o rd } s| } n< u| d j  o vd } n
 xd } y| | | | } ~| d j o5 x+ |  i D] } |  i d | |  q Wn|  i
 d |  |  i d |  x t |  D] }	 |  i d	 |  |	 | } x] t | | |  D]E } y |  i d | | |  Wn t j
 o Pn Xq1W|  i d
 |  q W|  i d |  |  i d |  |  i
 d |  d Sd S(   s/   Format and output the 'items' as list elements.i
   i   i   i   i   s   %s<br>
s
   start listsl   
            <table border="0" cellspacing="2" cellpadding="2" width="100%">
              <tr>
            s   <td align="LEFT" valign="TOP">
s   </td>
s   </tr>s"   
            </table>
            s   list endN(   s   lens   itemss	   num_itemss   num_colss   num_rowss   selfs   current_list_contexts   items	   writeHTMLs   outputs   comments   ranges   cols	   base_items   item_nos
   IndexError(
   s   selfs   itemss   outputs   item_nos	   num_itemss   items   num_colss	   base_items   num_rowss   col(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   _writeListItemsjs<   		 	 	 	c    sX   |  i o |  i |  i |  n |  i d |  |  i   d Sd S(   s4   Write the closing footer for a list to the 'output'.s   
N(   s   selfs   current_list_contexts   _writeListItemss   outputs	   writeHTMLs   _popListContext(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   listFooters   c    so   |  i d |  |  i d |  | o |  i d | |  n |  i d |  d Sd S(   sH   Write the 'title' as the heading for a descriptive list to the 'output'.s   
s   descriptive list headers   <h4>%s</h4>
s3   <table border="0" cellpadding="3" cellspacing="0">
N(   s   selfs   writeRaws   outputs   comments   titles	   writeHTML(   s   selfs   outputs   title(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   descriptiveListHeaders   
c    sg   |  i d | |  |  i d |  |  i | | |  |  i d |  d Sd S(   sU   Format and write the 'item' and 'description' for a descriptive list to the 'output'.s0   <tr><td valign="top" align="left"><p>%s</p></td>s   <td valign="top" align="left">s   </td></tr>
N(   s   selfs	   writeHTMLs   items   outputs	   writeTexts   descriptions   descriptionFormat(   s   selfs   outputs   items   descriptions   descriptionFormat(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   descriptiveListItems   
c    s7   |  i d |  |  i d |  d Sd S(   s@   Write the closing footer for a descriptive list to the 'output'.s	   </table>
s   descriptive list footerN(   s   selfs	   writeHTMLs   outputs   comment(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   descriptiveListFooters   c    s  | t j o d } n | t j o d } n d } d } |  i d |  _ |  i |  i |  i <h  |  i	 d <|  i
 d <| d <| d <| d	 <} |  i d
 |  i |  i f |  |  i d | |  |  i d |  d Sd S(   s  Output a standard nested table chunk which represents a section header.

        The output looks something like this::

            |--------|---------------------------|
            | title1 | title2                    |
            |        |---------------------------|
            |        | section text goes here
            |--------|

        Parameters

            'output' -- destination for written output

            'title1' -- title to be placed in left column

            'title2' -- title to be placed on top of right column

            'anchor' -- optional, anchor to which a reference can point
            to find this section

        s    s   #ccccccs   #000000i   s   bgcolors   fgcolors   title1s   title2s   anchors   section %d:%d (header)s]  
        <tr>
            <th bgcolor="%(bgcolor)s"
                rowspan="2"
                valign="top"
                align="left"
                width="20%%"
                >
                <font color="%(fgcolor)s">
                  <a name="%(anchor)s">%(title1)s</a>&nbsp;
                </font>
            </th>
            <th bgcolor="%(bgcolor)s"
                valign="top"
                align="left"
                width="80%%"
                >
                <font color="%(fgcolor)s">%(title2)s&nbsp;</font>
            </th>
        </tr>
        <tr>
        <td>
        s   section headerN(   s   title1s   Nones   title2s   bgcolors   fgcolors   selfs   _section_header_counters   _section_header_counterss   _section_level_counters   _l2_bgcolors   _l2_fgcolors   anchors   infos   comments   outputs	   writeHTML(   s   selfs   outputs   title1s   title2s   anchors   infos   bgcolors   fgcolor(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   genericSectionHeaders   		<
c    s   |  i d |  i |  i f  |  |  i d |  |  i d |  |  i d |  _ |  i |  i |  i <d Sd S(   s?   Write a general purpose section closing footer to the 'output'.s   section %d:%d (footer)s   </td></tr>
s   section footeri   N(   s   selfs   comments   _section_level_counters   _section_header_counters   outputs	   writeHTMLs   _section_header_counters(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   genericSectionFooters   
c    s*   	|  i | | t |  
d Sd S(   s?   Write a general purpose section openning title to the 'output'.N(   s   selfs   genericSectionHeaders   outputs   titles   None(   s   selfs   outputs   title(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   sectionHeaders   c    s!   |  i |  d Sd S(   s?   Write a general purpose section closing footer to the 'output'.N(   s   selfs   genericSectionFooters   output(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   sectionFooters   c    s9   | i   } |  i | t | |  d Sd S(   sD   Write a section openning header for an 'infoObject' to the 'output'.N(   s
   infoObjects   getNames   names   selfs   genericSectionHeaders   outputs   None(   s   selfs   outputs
   infoObjects   name(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   itemHeaders   c    s!   |  i |  d Sd S(   s/   Write a section closing footer to the 'output'.N(   s   selfs   genericSectionFooters   output(   s   selfs   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys
   itemFooters   s   -c    s!   | i d  d Sd S(   sV   Write a sectional dividing line made up of repeated 'fill' characters to the 'output'.s   <hr>
N(   s   outputs   write(   s   selfs   outputs   fill(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   dividingLines   c    s9   !"#|  i o #|  i d | |  n $d Sd S(   s   Output text as a comment.s   <!-- %s -->
N(   s   selfs   debugs	   writeHTMLs   texts   output(   s   selfs   texts   output(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   comment!s    (+   s   __doc__s   Nones   __init__s   oss   seps   _fixReferences   getReferences   getNamedReferences   getInternalReferences   getPythonReferences   getFilenameExtensions
   openOutputs
   fileHeaders   closeOutputs
   fileFooters   pushSectionLevels   popSectionLevels   getRootLocations
   htmlHeaders
   htmlFooters   getRootNodeNames   indents   dedents	   writeTexts	   writeHTMLs
   formatCodes   formatKeywords	   writeCodes
   listHeaders   listItems   _writeListItemss
   listFooters   descriptiveListHeaders   descriptiveListItems   descriptiveListFooters   genericSectionHeaders   genericSectionFooters   sectionHeaders   sectionFooters
   itemHeaders
   itemFooters   dividingLines   comment(    (    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   HTMLTableFormatterM sP   	4-?/	
C#%

/		Cs   HTMLTableFormatterUTc      s)   '*d   Z  =d   Z Rd   Z RS(   Nc    s   *+t  i i t  i d d  g } ,d  k } -d  k } .| i i	 d t
 0d | i i 1d h  d d <2d | 3d	 |  i  } 5| d
 } 6| i } 7| i | d d  } 8d } 9t o! | | j p t d | | f  ;d  Sd  S(   Ns   happydoclibs   CommandLineApp.pys   formatterFactorys
   parserFuncs   defaultParserConfigValuess   StructuredTexts   docStringFormats   inputModuleNamess   outputBaseDirectoryi    s   CommandLineApps
   index.htmls?   <a href="CommandLineApp.html#CommandLineApp">CommandLineApp</a>s"   Got reference "%s" instead of "%s"(   s   oss   paths   joins   curdirs	   filenamess   happydoclib.parseinfos   happydoclibs   happydoclib.happydocsets   happydocsets   DocSets   HTMLTableFormatters	   parseinfos   getDocss   selfs
   output_dirs   docsets   clas
   _formatters	   formatters   getNamedReferences	   references   expected_references	   __debug__s   AssertionError(   s   selfs   docsets	   references   expected_references	   formatters   clas   happydoclibs	   filenames(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   testReferences*s   !		+c 	   s  =>t  i i t  i d d  g } ?d  k } @d  k } A| i i	 d t
 Cd | i i Dd h  d d <Ed | Fd	 |  i  } H| d
 } I| i } Kd } Ld } M| i | d d } Nt o! | | j p t d | | f  Pd  Sd  S(   Ns   happydoclibs   CommandLineApp.pys   formatterFactorys
   parserFuncs   defaultParserConfigValuess   StructuredTexts   docStringFormats   inputModuleNamess   outputBaseDirectoryi    s   http:\\full\url\path\index.htmls   http://full/url/path/index.htmls   seps   \s"   Fixing Windows URL failed (%s, %s)(   s   oss   paths   joins   curdirs	   filenamess   happydoclib.parseinfos   happydoclibs   happydoclib.happydocsets   happydocsets   DocSets   HTMLTableFormatters	   parseinfos   getDocss   selfs
   output_dirs   docsets   clas
   _formatters	   formatters   inputs   expecteds   _fixReferences   actuals	   __debug__s   AssertionError(	   s   selfs   actuals   clas	   filenamess   docsets   expecteds   inputs	   formatters   happydoclib(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   testFixReferencesWindows=s   !			+c 	   s  RSt  i i t  i d d  g } Td  k } Ud  k } V| i i	 d t
 Xd | i i Yd h  d d <Zd | [d	 |  i  } ]| d
 } ^| i } `d } ad } b| i | d d } ct o! | | j p t d | | f  ed  Sd  S(   Ns   happydoclibs   CommandLineApp.pys   formatterFactorys
   parserFuncs   defaultParserConfigValuess   StructuredTexts   docStringFormats   inputModuleNamess   outputBaseDirectoryi    s   http:full:url:path:index.htmls   http://full/url/path/index.htmls   seps   :s    Fixing MacOS URL failed (%s, %s)(   s   oss   paths   joins   curdirs	   filenamess   happydoclib.parseinfos   happydoclibs   happydoclib.happydocsets   happydocsets   DocSets   HTMLTableFormatters	   parseinfos   getDocss   selfs
   output_dirs   docsets   clas
   _formatters	   formatters   inputs   expecteds   _fixReferences   actuals	   __debug__s   AssertionError(	   s   selfs   actuals   clas	   filenamess   docsets   expecteds   inputs	   formatters   happydoclib(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   testFixReferencesMacOSRs   !			+(   s   testReferencess   testFixReferencesWindowss   testFixReferencesMacOS(    (    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   HTMLTableFormatterUT's   s   __main__s
   index.htmls   HappyDoc/CommandLineApp.py.htmls.   HappyDoc/CommandLineApp.py_CommandLineApp.htmlsC   /home/hellmann/devel/HappyDoc/doc/HappyDoc/ts_regex.py_compile.htmls,   /home/hellmann/devel/HappyDoc/doc/index.html(   s   __doc__s   __rcs_info__s   splits   __version__s   oss   res   strings   typess   happydoclibs'   happydoclib.formatter.fileformatterbases
   entryPoints	   formatters   fileformatterbases   FileBasedFormatters   HTMLTableFormatters   StreamFlushTests   HTMLTableFormatterUTs   __name__s   fros   tos   paths   computeRelativeHTMLLink(   s   HTMLTableFormatterUTs   strings   tos   fros   res   HTMLTableFormatters
   entryPoints   typess   __version__s   oss   happydoclibs   __rcs_info__(    (    sf   /home/dhellmann/Personal/Devel/HappyDoc/dist/HappyDoc-r2_1/happydoclib/formatter/formatter_HTMLFile.pys   ? s(   H	"  @7 