1. Wolfgang Scherer
  2. wolfmanx.bitbucket.org

Commits

Wolfgang Scherer  committed 934e4ca

adhoc update.

  • Participants
  • Parent commits bc0c50b
  • Branches default

Comments (0)

Files changed (11)

File adhoc/.buildinfo

View file
  • Ignore whitespace
 # Sphinx build info version 1
 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: bb7018b45fac9ff14f1b647dadb1130d
+config: 16b4dd265e3633b8a490092e552cd7ab
 tags: fbb0d17656682115ca4d033fb2f83ba1

File adhoc/_modules/adhoc.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="../_static/jquery.js"></script>
     <script type="text/javascript" src="../_static/underscore.js"></script>
     <script type="text/javascript" src="../_static/doctools.js"></script>
+    <link rel="shortcut icon" href="../_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="../index.html" />
     <link rel="up" title="Module code" href="index.html" /> 
   </head>
 <span class="c"># AdHoc Standalone Python Script Generator</span>
 <span class="c"># ########################################</span>
 <span class="c">#</span>
-<span class="c"># The `AdHoc` compiler can be used as a program (see `Script Usage`_)</span>
+<span class="c"># The *AdHoc* compiler can be used as a program (see `Script Usage`_)</span>
 <span class="c"># as well as a module (see :class:`adhoc.AdHoc`).</span>
 <span class="c">#</span>
-<span class="c"># Since the `AdHoc` compiler itself is installed as a compiled `AdHoc`</span>
+<span class="c"># Since the *AdHoc* compiler itself is installed as a compiled *AdHoc*</span>
 <span class="c"># script, it serves as its own usage example.</span>
 <span class="c">#</span>
-<span class="c"># After installation of the `adhoc.py` script, the full source can be</span>
+<span class="c"># After installation of the *adhoc.py* script, the full source can be</span>
 <span class="c"># obtained in directory ``__adhoc__``, by executing::</span>
 <span class="c">#</span>
 <span class="c">#     adhoc.py --explode</span>
 <span class="c">#</span>
+<span class="c"># .. @@contents@@</span>
+<span class="c">#</span>
 <span class="c"># @:adhoc_template:@ doc/index.rst # off</span>
 <span class="c"># @:adhoc_uncomment:@</span>
 
 <span class="sd">  -c, --compile         compile file(s) or standard input into output file</span>
 <span class="sd">                        (default: standard output).</span>
 <span class="sd">  -d, --decompile       decompile file(s) or standard input into</span>
-<span class="sd">                        output directory (default `__adhoc__`).</span>
+<span class="sd">                        output directory (default ``__adhoc__``).</span>
 <span class="sd">  -o, --output OUT      output file for --compile/output directory for</span>
 <span class="sd">                        --decompile.</span>
 
 
 <span class="sd">  --template list       show available templates.</span>
 <span class="sd">  --template[=NAME]     extract named template to standard</span>
-<span class="sd">                        output. Default NAME is `-`.</span>
-<span class="sd">  --extract[=DIR]       extract adhoc files to directory DIR (default: `.`)</span>
+<span class="sd">                        output. Default NAME is ``-``.</span>
+<span class="sd">  --extract[=DIR]       extract adhoc files to directory DIR (default: ``.``)</span>
 <span class="sd">  --explode[=DIR]       explode script with adhoc in directory DIR</span>
-<span class="sd">                        (default `__adhoc__`)</span>
+<span class="sd">                        (default ``__adhoc__``)</span>
 <span class="sd">  --implode             implode script with adhoc</span>
 <span class="sd">  --install             install adhoc.py script</span>
 
 <span class="sd">  -t, --test            run doc tests</span>
 <span class="sd">  ===================== ==================================================</span>
 
-<span class="sd">`adhoc.py` is compatible with Python 2.4+ and Python 3. (For Python</span>
-<span class="sd">&lt;2.6 the packages `stringformat` and `argparse` are needed and</span>
+<span class="sd">*adhoc.py* is compatible with Python 2.4+ and Python 3. (For Python</span>
+<span class="sd">&lt;2.6 the packages *stringformat* and *argparse* are needed and</span>
 <span class="sd">included.)</span>
 
 <span class="sd">.. _END_OF_HELP:</span>
 
-<span class="sd">.. |=NUM| replace:: `[=NUM]`</span>
+<span class="sd">.. |=NUM| replace:: ``[=NUM]``</span>
 
 <span class="sd">Script Examples</span>
 <span class="sd">===============</span>
 <span class="sd">adhoc.py --template setup.py                # !setup.py                adhoc_unpack</span>
 <span class="sd">=========================================== ========================== ================</span>
 
-<span class="sd">``python adhoc.py --template`` prints the standard template ``-``:</span>
-
-<span class="sd">&gt;&gt;&gt; ign = main(&#39;./adhoc.py --template&#39;.split())</span>
-<span class="sd">Standard template.</span>
+<span class="sd">``python adhoc.py --template`` prints the standard template ``-``</span>
+<span class="sd">(closing delimiter replaced by ellipsis):</span>
+
+<span class="sd">&gt;&gt;&gt; ign = main(&#39;./adhoc.py --template&#39;.split()) #doctest: +ELLIPSIS</span>
+<span class="sd"># @:adhoc_disable... allow modification of exploded sources in original place</span>
+<span class="sd">sys.path.append(&#39;__adhoc__&#39;)</span>
+<span class="sd"># @:adhoc_disable...</span>
+<span class="sd">&lt;BLANKLINE&gt;</span>
+<span class="sd"># @:adhoc_run_time... The run-time class goes here</span>
+<span class="sd"># @:adhoc_run_time_engine... settings enabled at run-time</span>
+<span class="sd"># @:adhoc_enable...</span>
+<span class="sd"># RtAdHoc.flat = False</span>
+<span class="sd"># @:adhoc_enable...</span>
+<span class="sd"># @:adhoc_run_time_engine...</span>
+<span class="sd">&lt;BLANKLINE&gt;</span>
+<span class="sd">#import adhoc                                               # @:adhoc...</span>
 
 <span class="sd">``python adhoc.py --template test`` prints the template named ``-test``.</span>
 <span class="sd">the leading ``-`` signifies disposition to standard output:</span>
 <span class="sd">The default destination for extracting files is the current working</span>
 <span class="sd">directory.</span>
 
-<span class="sd">Files extracted consist of packed files generated by |adhoc_include|,</span>
-<span class="sd">templates generated by |adhoc_verbatim| and templates with a file</span>
-<span class="sd">destination other than standard output.</span>
+<span class="sd">Files extracted consist of</span>
+
+<span class="sd">- packed files generated by |adhoc_include|</span>
+<span class="sd">- templates generated by |adhoc_verbatim|</span>
+<span class="sd">- templates with a file destination other than standard output</span>
 
 <span class="sd">``python adhoc.py --extract __adhoc_extract__`` unpacks the following files into</span>
 <span class="sd">directory ``__adhoc_extract__``:</span>
 <span class="sd">The default destination for exporting files is the</span>
 <span class="sd">subdirectory ``__adhoc__``.</span>
 
-<span class="sd">Files exported consist of imported modules generated by |adhoc| and all</span>
-<span class="sd">files covered in section `Extract`_.</span>
+<span class="sd">Files exported consist of</span>
+
+<span class="sd">- imported modules generated by |adhoc|</span>
+<span class="sd">- all files covered in section `Extract`_</span>
 
 <span class="sd">``python adhoc.py --explode __adhoc_explode__`` unpacks the following files into</span>
 <span class="sd">directory ``__adhoc_explode__``:</span>
 <span class="c"># Purpose</span>
 <span class="c"># =======</span>
 <span class="c">#</span>
-<span class="c"># `AdHoc` provides python scripts with</span>
+<span class="c"># *AdHoc* provides python scripts with</span>
 <span class="c">#</span>
 <span class="c"># - template facilities</span>
 <span class="c"># - default file generation</span>
 <span class="c"># See also `Use Cases`_.</span>
 <span class="c">#</span>
 <span class="c"># @:adhoc_index_only:@</span>
-<span class="c"># `AdHoc` has been designed to provide an implode/explode cycle:</span>
+<span class="c"># *AdHoc* has been designed to provide an implode/explode cycle:</span>
 <span class="c">#</span>
 <span class="c"># ========  =======  =========  =======  =========</span>
 <span class="c"># source_0                               xsource_0</span>
 <span class="c">#     mkdir -p __adhoc__ &amp;&amp; \</span>
 <span class="c">#     adhoc.py --decompile &lt;script-compiled.py &gt;__adhoc__/script.py</span>
 <span class="c">#</span>
-<span class="c"># .. |@:| replace:: `@:`</span>
-<span class="c"># .. |:@| replace:: `:@`</span>
-<span class="c"># .. |adhoc_run_time| replace:: |@:|\ `adhoc_run_time`\ |:@|</span>
-<span class="c"># .. |adhoc| replace:: |@:|\ `adhoc`\ |:@|</span>
+<span class="c"># .. |@:| replace:: ``@:``</span>
+<span class="c"># .. |:@| replace:: ``:@``</span>
+<span class="c"># .. |adhoc_run_time| replace:: |@:|\ ``adhoc_run_time``\ |:@|</span>
+<span class="c"># .. |adhoc| replace:: |@:|\ ``adhoc``\ |:@|</span>
 <span class="c">#</span>
 <span class="c"># Description</span>
 <span class="c"># ===========</span>
 <span class="c">#</span>
-<span class="c"># The `AdHoc` compiler/decompiler parses text for tagged lines and</span>
+<span class="c"># The *AdHoc* compiler/decompiler parses text for tagged lines and</span>
 <span class="c"># processes them as instructions.</span>
 <span class="c">#</span>
 <span class="c"># The minimal parsed entity is a tagged line, which is any line</span>
-<span class="c"># containing a recognized `AdHoc` tag.</span>
+<span class="c"># containing a recognized *AdHoc* tag.</span>
 <span class="c">#</span>
-<span class="c"># All `AdHoc` tags are enclosed in delimiters (default: |@:| and |:@|). E.g:</span>
+<span class="c"># All *AdHoc* tags are enclosed in delimiters (default: |@:| and |:@|). E.g:</span>
 <span class="c">#</span>
 <span class="c">#   |@:|\ adhoc\ |:@|</span>
 <span class="c">#</span>
 <span class="c"># -----</span>
 <span class="c">#</span>
 <span class="c"># :|adhoc_run_time|:</span>
-<span class="c">#     The place where the `AdHoc` run-time code is added.  This flag must</span>
+<span class="c">#     The place where the *AdHoc* run-time code is added.  This flag must</span>
 <span class="c">#     be present in files, which use the |adhoc| import feature.  It</span>
 <span class="c">#     is not needed for the enable/disable features.</span>
 <span class="c">#</span>
+<span class="c">#     This flag is ignored, if double commented. E.g.:</span>
+<span class="c">#</span>
+<span class="c">#       | # # |adhoc_run_time|</span>
+<span class="c">#</span>
 <span class="c"># :|adhoc| [force] [flat | full]:</span>
 <span class="c">#     Mark import line for run-time compilation.</span>
 <span class="c">#</span>
 <span class="c">#     Include files for verbatim extraction. See adhoc_include_ for</span>
 <span class="c">#     ``file_spec``.</span>
 <span class="c">#</span>
-<span class="c">#     The files are included as |adhoc_template_v| sections. `file` is used</span>
-<span class="c">#     as `export_file` mark. If `file` is ``--``, the template disposition</span>
+<span class="c">#     The files are included as |adhoc_template_v| sections. *file* is used</span>
+<span class="c">#     as *export_file* mark. If *file* is ``--``, the template disposition</span>
 <span class="c">#     becomes standard output.</span>
 <span class="c">#</span>
 <span class="c">#     Optional flags can be any combination of ``[+|-]NUM`` for</span>
 <span class="c">#</span>
 <span class="c">#       | # |adhoc_verbatim| +4# my_file from /dev/null</span>
 <span class="c">#</span>
-<span class="c">#     `my_file` (or `/dev/null`) is read, commented and indented 4</span>
+<span class="c">#     *my_file* (or ``/dev/null``) is read, commented and indented 4</span>
 <span class="c">#     spaces.</span>
 <span class="c">#</span>
 <span class="c">#     If the |adhoc_verbatim| tag is already indented, the specified</span>
 <span class="c">#</span>
 <span class="c"># :|adhoc_self| name ...:</span>
 <span class="c">#     Mark name(s) as currently compiling.  This is useful, if</span>
-<span class="c">#     `__init__.py` imports other module parts. E.g:</span>
+<span class="c">#     ``__init__.py`` imports other module parts. E.g:</span>
 <span class="c">#</span>
 <span class="c">#       | import pyjsmo             # |@:|\ adhoc\ |:@|</span>
 <span class="c">#</span>
 <span class="c">#</span>
 <span class="c"># :|adhoc_run_time_class|:</span>
 <span class="c">#     Marks the beginning of the run-time class.  This is only</span>
-<span class="c">#     recognized in the `AdHoc` programm/module.</span>
+<span class="c">#     recognized in the *AdHoc* programm/module.</span>
 <span class="c">#</span>
 <span class="c"># :|adhoc_run_time_section|:</span>
 <span class="c">#     All sections are concatenated and used as run-time code.  This is</span>
-<span class="c">#     only recognized in the `AdHoc` programm/module.</span>
+<span class="c">#     only recognized in the *AdHoc* programm/module.</span>
 <span class="c">#</span>
 <span class="c"># In order to preserve the ``xsource_i === source_i`` bijective</span>
 <span class="c"># condition, macros are expanded/collapsed with special macro</span>
 <span class="c"># @:adhoc_uncomment:@</span>
 <span class="c"># @:adhoc_template:@ doc/index.rst</span>
 <span class="c">#</span>
-<span class="c"># .. |adhoc_self| replace:: |@:|\ `adhoc_self`\ |:@|</span>
-<span class="c"># .. |adhoc_include| replace:: |@:|\ `adhoc_include`\ |:@|</span>
-<span class="c"># .. |adhoc_verbatim| replace:: |@:|\ `adhoc_verbatim`\ |:@|</span>
-<span class="c"># .. |adhoc_compiled| replace:: |@:|\ `adhoc_compiled`\ |:@|</span>
-<span class="c"># .. |adhoc_enable| replace:: |@:|\ `adhoc_enable`\ |:@|</span>
-<span class="c"># .. |adhoc_disable| replace:: |@:|\ `adhoc_disable`\ |:@|</span>
-<span class="c"># .. |adhoc_template| replace:: |@:|\ `adhoc_template`\ |:@|</span>
-<span class="c"># .. |adhoc_template_v| replace:: |@:|\ `adhoc_template_v`\ |:@|</span>
-<span class="c"># .. |adhoc_uncomment| replace:: |@:|\ `adhoc_uncomment`\ |:@|</span>
-<span class="c"># .. |adhoc_indent| replace:: |@:|\ `adhoc_indent`\ |:@|</span>
-<span class="c"># .. |adhoc_import| replace:: |@:|\ `adhoc_import`\ |:@|</span>
-<span class="c"># .. |adhoc_unpack| replace:: |@:|\ `adhoc_unpack`\ |:@|</span>
-<span class="c"># .. |adhoc_remove| replace:: |@:|\ `adhoc_remove`\ |:@|</span>
-<span class="c"># .. |adhoc_remove_| replace:: |@:|\ `adhoc_remove_`\ |:@|</span>
-<span class="c"># .. |adhoc_run_time_class| replace:: |@:|\ `adhoc_run_time_class`\ |:@|</span>
-<span class="c"># .. |adhoc_run_time_section| replace:: |@:|\ `adhoc_run_time_section`\ |:@|</span>
-<span class="c"># .. |adhoc_run_time_engine| replace:: |@:|\ `adhoc_run_time_engine`\ |:@|</span>
-<span class="c"># .. |@m| replace:: `@|:`</span>
-<span class="c"># .. |m&gt;| replace:: `:|&gt;`</span>
-<span class="c"># .. |&lt;m| replace:: `&lt;|:`</span>
-<span class="c"># .. |m@| replace:: `:|@`</span>
-<span class="c"># .. |MACRO_NAME| replace:: |@m|\ `MACRO_NAME`\ |m&gt;|</span>
-<span class="c"># .. |adhoc_macro_call| replace:: |&lt;m|\ `adhoc_macro_call`\ |m@|</span>
-<span class="c"># .. |adhoc_macro_expansion| replace:: |&lt;m|\ `adhoc_macro_expansion`\ |m@|</span>
+<span class="c"># .. |adhoc_self| replace:: |@:|\ ``adhoc_self``\ |:@|</span>
+<span class="c"># .. |adhoc_include| replace:: |@:|\ ``adhoc_include``\ |:@|</span>
+<span class="c"># .. |adhoc_verbatim| replace:: |@:|\ ``adhoc_verbatim``\ |:@|</span>
+<span class="c"># .. |adhoc_compiled| replace:: |@:|\ ``adhoc_compiled``\ |:@|</span>
+<span class="c"># .. |adhoc_enable| replace:: |@:|\ ``adhoc_enable``\ |:@|</span>
+<span class="c"># .. |adhoc_disable| replace:: |@:|\ ``adhoc_disable``\ |:@|</span>
+<span class="c"># .. |adhoc_template| replace:: |@:|\ ``adhoc_template``\ |:@|</span>
+<span class="c"># .. |adhoc_template_v| replace:: |@:|\ ``adhoc_template_v``\ |:@|</span>
+<span class="c"># .. |adhoc_uncomment| replace:: |@:|\ ``adhoc_uncomment``\ |:@|</span>
+<span class="c"># .. |adhoc_indent| replace:: |@:|\ ``adhoc_indent``\ |:@|</span>
+<span class="c"># .. |adhoc_import| replace:: |@:|\ ``adhoc_import``\ |:@|</span>
+<span class="c"># .. |adhoc_unpack| replace:: |@:|\ ``adhoc_unpack``\ |:@|</span>
+<span class="c"># .. |adhoc_remove| replace:: |@:|\ ``adhoc_remove``\ |:@|</span>
+<span class="c"># .. |adhoc_remove_| replace:: |@:|\ ``adhoc_remove_``\ |:@|</span>
+<span class="c"># .. |adhoc_run_time_class| replace:: |@:|\ ``adhoc_run_time_class``\ |:@|</span>
+<span class="c"># .. |adhoc_run_time_section| replace:: |@:|\ ``adhoc_run_time_section``\ |:@|</span>
+<span class="c"># .. |adhoc_run_time_engine| replace:: |@:|\ ``adhoc_run_time_engine``\ |:@|</span>
+<span class="c"># .. |@m| replace:: ``@|:``</span>
+<span class="c"># .. |m&gt;| replace:: ``:|&gt;``</span>
+<span class="c"># .. |&lt;m| replace:: ``&lt;|:``</span>
+<span class="c"># .. |m@| replace:: ``:|@``</span>
+<span class="c"># .. |MACRO_NAME| replace:: |@m|\ ``MACRO_NAME``\ |m&gt;|</span>
+<span class="c"># .. |adhoc_macro_call| replace:: |&lt;m|\ ``adhoc_macro_call``\ |m@|</span>
+<span class="c"># .. |adhoc_macro_expansion| replace:: |&lt;m|\ ``adhoc_macro_expansion``\ |m@|</span>
 <span class="c">#</span>
 <span class="c"># @:adhoc_template:@ doc/index.rst # off</span>
 <span class="c"># @:adhoc_uncomment:@</span>
 <span class="c"># (progn (forward-line 1) (snip-insert-mode &quot;py.main.sql.alchemy&quot; t) (insert &quot;\n&quot;))</span>
 <span class="c"># (progn (forward-line 1) (snip-insert-mode &quot;py.main.sql.ws&quot; t) (insert &quot;\n&quot;))</span>
 
-<span class="c"># @:adhoc_disable:@ allow modification of exploded sources in original place</span></div>
+<span class="c"># The standard template should be something useful</span>
+
+<span class="c"># @:adhoc_uncomment:@</span>
+<span class="c"># @:adhoc_template:@ -</span>
+<span class="c"># # @:adhoc_disable:@ allow modification of exploded sources in original place</span></div>
 <span class="n">sys</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="s">&#39;__adhoc__&#39;</span><span class="p">)</span>
-<span class="c"># @:adhoc_disable:@ allow modification of exploded sources in original place</span>
+<span class="c"># # @:adhoc_disable:@</span>
+<span class="c"># @:adhoc_template:@</span>
+<span class="c"># @:adhoc_uncomment:@</span>
 
 <span class="c"># @:adhoc_run_time:@</span>
-<span class="c"># @:adhoc_run_time_engine:@</span>
+<span class="c"># @:adhoc_template:@ -</span>
+
+<span class="c"># @:adhoc_run_time:@ The run-time class goes here</span>
+<span class="c"># @:adhoc_run_time_engine:@ settings enabled at run-time</span>
 <span class="c"># @:adhoc_enable:@</span>
+<span class="c"># # RtAdHoc.flat = False</span>
+<span class="c"># # @:adhoc_template:@</span>
 <span class="c"># RtAdHoc.flat = False</span>
+<span class="c"># # @:adhoc_template:@ -</span>
 <span class="c"># @:adhoc_enable:@</span>
 <span class="c"># @:adhoc_run_time_engine:@</span>
+
 <span class="c">#import adhoc                                               # @:adhoc:@</span>
+<span class="c"># @:adhoc_template:@</span>
 
 <span class="c"># (progn (forward-line 1) (snip-insert-mode &quot;py.b.sformat&quot; t) (insert &quot;\n&quot;))</span>
 <span class="k">try</span><span class="p">:</span>
             <span class="kn">import</span> <span class="nn">stringformat_local</span> <span class="kn">as</span> <span class="nn">stringformat</span>      <span class="c"># @:adhoc:@</span>
         <span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
             <span class="n">printf</span><span class="p">(</span><span class="s">&#39;error: (adhoc) stringformat missing.&#39;</span>
-                   <span class="s">&#39; Try `easy_install stringformat`.&#39;</span><span class="p">,</span> <span class="nb">file</span><span class="o">=</span><span class="n">sys</span><span class="o">.</span><span class="n">stderr</span><span class="p">)</span>
+                   <span class="s">&#39; Try *easy_install stringformat*.&#39;</span><span class="p">,</span> <span class="nb">file</span><span class="o">=</span><span class="n">sys</span><span class="o">.</span><span class="n">stderr</span><span class="p">)</span>
             <span class="nb">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
     <span class="k">def</span> <span class="nf">sformat</span> <span class="p">(</span><span class="n">fmtspec</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
         <span class="k">return</span> <span class="n">stringformat</span><span class="o">.</span><span class="n">FormattableString</span><span class="p">(</span><span class="n">fmtspec</span><span class="p">)</span><span class="o">.</span><span class="n">format</span><span class="p">(</span>
                 <span class="s">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">((</span><span class="s">&quot;# xp: &quot;</span><span class="p">,</span> <span class="n">cls</span><span class="o">.</span><span class="n">__name__</span><span class="p">,</span> <span class="s">&quot;.export__ for `&quot;</span><span class="p">,</span>
                          <span class="n">file_</span><span class="p">,</span> <span class="s">&quot;`</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">)))</span>
         <span class="c"># @:adhoc_run_time_section:@ on</span>
+        <span class="k">if</span> <span class="n">file_</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
+            <span class="k">return</span>
         <span class="n">file_base</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">basename</span><span class="p">(</span><span class="n">file_</span><span class="p">)</span>
         <span class="k">if</span> <span class="n">file_base</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s">&#39;__init__.py&#39;</span><span class="p">):</span>
             <span class="n">is_init</span> <span class="o">=</span> <span class="bp">True</span>
                     <span class="s">&#39;{0}{1}|&#39;</span> <span class="s">&#39;warning: `{2}` does not have any source code.&#39;</span><span class="p">,</span>
                     <span class="n">dbg_comm</span><span class="p">,</span> <span class="n">m</span><span class="p">,</span> <span class="n">module_name</span><span class="p">),</span> <span class="nb">file</span><span class="o">=</span><span class="n">sys</span><span class="o">.</span><span class="n">stderr</span><span class="p">)</span>
             <span class="n">source</span> <span class="o">=</span> <span class="s">&#39;&#39;</span>
+            <span class="k">return</span> <span class="s">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
 
         <span class="c"># recursive!</span>
         <span class="n">exp_source</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">compile_</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">module_file</span><span class="p">,</span> <span class="n">for_</span><span class="p">,</span> <span class="n">zipped</span><span class="p">,</span> <span class="n">forced</span><span class="p">)</span>
             <span class="s">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">((</span><span class="bp">self</span><span class="o">.</span><span class="n">import_section_tag</span><span class="p">,</span> <span class="s">&#39; !&#39;</span><span class="p">,</span> <span class="n">module_name</span><span class="p">)),</span>
             <span class="n">for_</span><span class="p">,</span>
             <span class="nb">repr</span><span class="p">(</span><span class="n">module</span><span class="o">.</span><span class="n">__name__</span><span class="p">),</span>
-            <span class="p">(((</span><span class="n">module_file</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">)</span> <span class="ow">and</span> <span class="p">((</span><span class="n">module_file</span><span class="p">))</span>
-              <span class="ow">or</span> <span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">relpath</span><span class="p">(</span><span class="n">module_file</span><span class="p">)))))),</span>
+            <span class="p">(((</span><span class="n">module_file</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">relpath</span><span class="p">(</span><span class="n">module_file</span><span class="p">))))</span>
+              <span class="ow">or</span> <span class="p">((</span><span class="n">module_file</span><span class="p">)))),</span>
             <span class="c">#repr(mtime),</span>
             <span class="p">(((</span><span class="n">mtime</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="n">mtime</span><span class="o">.</span><span class="n">isoformat</span><span class="p">())))</span>
              <span class="ow">or</span> <span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="n">mtime</span><span class="p">))),</span>
         <span class="k">for</span> <span class="n">section</span> <span class="ow">in</span> <span class="n">ah_run_time_sections</span><span class="p">:</span>
             <span class="n">config_def</span> <span class="o">=</span> <span class="n">section</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
             <span class="k">if</span> <span class="ow">not</span> <span class="n">good</span> <span class="ow">and</span> <span class="n">section</span><span class="p">[</span><span class="mi">0</span><span class="p">]:</span>
-                <span class="n">config_def</span> <span class="o">=</span> <span class="n">sformat</span><span class="p">(</span><span class="s">&#39;{0}{1}&#39;</span><span class="p">,</span>
-                    <span class="n">config_def</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">run_time_section</span><span class="p">)</span>
-                <span class="n">good</span> <span class="o">=</span> <span class="bp">True</span>
+                <span class="c"># ignore double commented tagged lines</span>
+                <span class="k">if</span> <span class="ow">not</span> <span class="n">re</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="s">&#39;</span><span class="se">\\</span><span class="s">s*#</span><span class="se">\\</span><span class="s">s*#&#39;</span><span class="p">,</span> <span class="n">config_def</span><span class="p">):</span>
+                    <span class="n">config_def</span> <span class="o">=</span> <span class="n">sformat</span><span class="p">(</span><span class="s">&#39;{0}{1}&#39;</span><span class="p">,</span>
+                        <span class="n">config_def</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">run_time_section</span><span class="p">)</span>
+                    <span class="n">good</span> <span class="o">=</span> <span class="bp">True</span>
             <span class="n">result</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">config_def</span><span class="p">)</span>
         <span class="n">string</span> <span class="o">=</span> <span class="s">&#39;&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
 
     <span class="k">return</span> <span class="n">cls</span><span class="o">.</span><span class="n">section_tag_remove</span><span class="p">(</span><span class="n">section</span><span class="p">,</span> <span class="n">tag_sym_rx</span><span class="p">,</span> <span class="n">is_re</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
 
 <span class="k">def</span> <span class="nf">tpl_hook_readme</span><span class="p">(</span><span class="n">cls</span><span class="p">,</span> <span class="n">section</span><span class="p">,</span> <span class="n">tag</span><span class="p">,</span> <span class="n">tag_arg</span><span class="p">):</span>           <span class="c"># ||:fnc:||</span>
+    <span class="n">section</span> <span class="o">=</span> <span class="n">section</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s">&#39;@@contents@@&#39;</span><span class="p">,</span> <span class="s">&#39;contents::&#39;</span><span class="p">)</span>
     <span class="n">tag_sym_rx</span> <span class="o">=</span> <span class="s">&#39;|&#39;</span><span class="o">.</span><span class="n">join</span><span class="p">([</span><span class="n">re</span><span class="o">.</span><span class="n">escape</span><span class="p">(</span><span class="n">tag_sym</span><span class="p">)</span> <span class="k">for</span> <span class="n">tag_sym</span> <span class="ow">in</span> <span class="n">doc_index_rst_tag_symbols</span><span class="p">])</span>
     <span class="k">return</span> <span class="n">cls</span><span class="o">.</span><span class="n">remove_sections</span><span class="p">(</span><span class="n">section</span><span class="p">,</span> <span class="n">tag_sym_rx</span><span class="p">,</span> <span class="n">is_re</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
 
     <span class="c"># |:here:|</span>
 
 <span class="c"># @:adhoc_uncomment:@</span>
-<span class="c"># @:adhoc_template:@ -</span>
-<span class="c"># Standard template.</span>
-<span class="c"># @:adhoc_template:@</span>
-<span class="c"># @:adhoc_uncomment:@</span>
-
-<span class="c"># @:adhoc_uncomment:@</span>
 <span class="c"># @:adhoc_template:@ -test</span>
 <span class="c"># Test template.</span>
 <span class="c"># @:adhoc_template:@</span>

File adhoc/_modules/index.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="../_static/jquery.js"></script>
     <script type="text/javascript" src="../_static/underscore.js"></script>
     <script type="text/javascript" src="../_static/doctools.js"></script>
+    <link rel="shortcut icon" href="../_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="../index.html" /> 
   </head>
   <body>

File adhoc/_modules/namespace_dict.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="../_static/jquery.js"></script>
     <script type="text/javascript" src="../_static/underscore.js"></script>
     <script type="text/javascript" src="../_static/doctools.js"></script>
+    <link rel="shortcut icon" href="../_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="../index.html" />
     <link rel="up" title="Module code" href="index.html" /> 
   </head>
 
 <span class="sd">The `--template` option</span>
 
-<span class="sd">This implementation is compatible with Python 2.5+ and Python 3.</span>
+<span class="sd">This implementation is compatible with Python 2.4+ and Python 3.</span>
 
 <span class="sd">Examples</span>
 <span class="sd">========</span>

File adhoc/_static/adhoc-logo-32.ico

  • Ignore whitespace
Added
New image

File adhoc/genindex.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="_static/jquery.js"></script>
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
+    <link rel="shortcut icon" href="_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="index.html" /> 
   </head>
   <body>

File adhoc/index.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="_static/jquery.js"></script>
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
+    <link rel="shortcut icon" href="_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="#" /> 
   </head>
   <body>

File adhoc/objects.inv

  • Ignore whitespace
Binary file modified.

File adhoc/py-modindex.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="_static/jquery.js"></script>
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
+    <link rel="shortcut icon" href="_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="index.html" />
  
 

File adhoc/search.html

View file
  • Ignore whitespace
     <script type="text/javascript" src="_static/underscore.js"></script>
     <script type="text/javascript" src="_static/doctools.js"></script>
     <script type="text/javascript" src="_static/searchtools.js"></script>
+    <link rel="shortcut icon" href="_static/adhoc-logo-32.ico"/>
     <link rel="top" title="AdHoc 0.2.6 documentation" href="index.html" />
   <script type="text/javascript">
     jQuery(function() { Search.loadIndex("searchindex.js"); });

File adhoc/searchindex.js

View file
  • Ignore whitespace
-Search.setIndex({objects:{"":{adhoc:[0,0,1,""],namespace_dict:[0,0,1,""]},namespace_dict:{NameSpaceDict:[0,5,1,""],NameSpaceNS:[0,5,1,""],NameSpace:[0,5,1,""],NameSpaceMeta:[0,7,1,""]},"namespace_dict.NameSpaceNS":{property_closure:[0,6,1,""],namespace:[0,1,1,""],namespace_closure:[0,1,1,""],property_:[0,1,1,""]},"adhoc.AdHoc":{template_list:[0,1,1,""],tag_split:[0,1,1,""],include_path:[0,2,1,""],enable_sections:[0,1,1,""],template_table:[0,1,1,""],export_source:[0,1,1,""],section_tag_strip:[0,1,1,""],module_setup:[0,1,1,""],pack_file:[0,1,1,""],compile:[0,4,1,""],set_delimiters:[0,1,1,""],std_template_param:[0,1,1,""],std_source_param:[0,1,1,""],extract:[0,1,1,""],section_tag_remove:[0,1,1,""],line_tag:[0,1,1,""],forced:[0,2,1,""],indent_sections:[0,1,1,""],col_param_closure:[0,1,1,""],disable_transform:[0,1,1,""],line_tag_parse:[0,1,1,""],line_delimiters:[0,2,1,""],activate_macros:[0,1,1,""],line_tag_rename:[0,1,1,""],strptime:[0,1,1,""],expand_macros:[0,1,1,""],verbose:[0,2,1,""],macros:[0,2,1,""],section_tag_rename:[0,1,1,""],section_tag_parse:[0,1,1,""],export_dir:[0,2,1,""],write_source:[0,1,1,""],verbatim_:[0,4,1,""],extract_templates:[0,1,1,""],tag_lines:[0,1,1,""],remove_sections:[0,1,1,""],flat:[0,2,1,""],reset_delimiters:[0,1,1,""],section_delimiters:[0,2,1,""],disable_sections:[0,1,1,""],macro_xdef_delimiters:[0,2,1,""],tag_partition:[0,1,1,""],include_:[0,4,1,""],section_tag:[0,1,1,""],template_process_hooks:[0,2,1,""],read_source:[0,1,1,""],unpack_:[0,1,1,""],inc_delimiters:[0,1,1,""],check_xfile:[0,1,1,""],transform_sections:[0,1,1,""],unpack_file:[0,1,1,""],unpack:[0,1,1,""],import_:[0,1,1,""],collapse_macros:[0,1,1,""],macro_call_delimiters:[0,2,1,""],encode_source:[0,1,1,""],uc_type:[0,2,1,""],get_named_template:[0,1,1,""],line_tag_remove:[0,1,1,""],check_coding:[0,6,1,""],frozen:[0,2,1,""],tag_sections:[0,1,1,""],quiet:[0,2,1,""],decode_source:[0,1,1,""],adhoc_tag:[0,6,1,""],extract_dir:[0,2,1,""],get_templates:[0,1,1,""],compile_:[0,4,1,""],has_expanded_macros:[0,1,1,""],adhoc_parse_line:[0,1,1,""],extra_templates:[0,2,1,""],line_tag_strip:[0,1,1,""],debug:[0,2,1,""],transform_lines:[0,1,1,""],compileFile:[0,4,1,""]},adhoc:{adhoc_rst_to_ascii:[0,3,1,""],run:[0,3,1,""],adhoc_check_packing:[0,3,1,""],dict_dump:[0,3,1,""],AdHoc:[0,5,1,""],compile_:[0,3,1,""],strclean:[0,3,1,""],rst_to_ascii:[0,3,1,""],restore_stdout:[0,3,1,""],adhoc_check_module_setup:[0,3,1,""],catch_stdout:[0,3,1,""]}},terms:{all:0,code:0,partial:0,adhoc_ind:0,pathsep:0,global:0,mw_:0,module_setup:0,prefix:0,concept:0,dvhh7ggh8r7:0,expansion_str:0,"_uc":0,follow:0,tpl_hook_doc_index_rst:0,depend:0,unpack:0,base64:0,strptime:0,os_path:0,program:0,use_case_003_import_:0,"1nw0nxsvujot8nms7dsyeksycwzbalxjsylkzz59ocrltmnrygzrkg0":0,collapse_macro:0,worth:0,hl_lvl:0,sourc:0,string:0,fals:0,adhoc_run_time_section_from_fil:0,namespacen:0,attrbut:0,mechan:0,uc_descr_end:0,retriev:0,exact:0,relev:0,adhoc_check_modul:0,tri:0,splitter:0,is_r:0,level:0,cmd:0,list:0,iter:0,adhoc_run_time_sect:0,item:0,get_templ:0,tag_lin:0,namespace_:0,prepar:0,dir:0,header_foot:0,adhoc_macro_cal:0,untag:0,adhoc_includ:0,tag_sect:0,naiv:0,second:0,blanklin:0,design:0,pass:0,adhoc_check_module_setup:0,append:0,compat:0,index:0,disable_transform:0,sub:0,neg:0,section:0,biject:0,abl:0,invok:0,adhoc:0,find:0,current:0,version:0,tagged_lin:0,no_remov:0,extra_templ:0,method:0,catch_stdout:0,elimin:0,full:0,construct:0,variat:0,gener:0,never:0,here:0,closur:0,test:0,modif:0,path:0,becom:0,modifi:0,sinc:0,valu:0,trunc:0,search:0,copyright:0,dbg_twid:0,anymor:0,psourc:0,behav:0,uc00:0,chang:0,adhoc_check_pack:0,overrid:0,via:0,extra:0,appli:0,modul:0,"while":0,filenam:0,api:0,printf:0,marker:0,instal:0,hlss:0,txt:0,full_doc_tag:0,mvar:0,from:0,zip:0,adhoc_dump_list:0,doubl:0,export__:0,two:0,nativestr:0,chp:0,full_doc_tag_sym:0,pad_col:0,call:0,usr:0,taken:0,dict:0,uncompil:0,type:0,adhoc_template_v:0,sort:0,flat:0,rstrip:0,readm:0,expandus:0,tsaaaa:0,carri:0,warn:0,trail:0,flag:0,templat:0,obj:0,effort:0,must:0,adhoc_dump_sect:0,none:0,join:0,my_module_nam:0,restor:0,full_doc:0,alia:0,setup:0,work:0,dev:0,prepare_run_time_sect:0,remain:0,property_closur:0,can:0,strclean:0,purpos:0,activate_macro:0,def:0,explod:0,quickstart:0,process:0,get_:0,adhoc_self:0,std_template_param:0,tag:0,dbg_fwid:0,std_source_param:0,alwai:0,rsourc:0,end:0,newlin:0,programmat:0,anoth:0,snippet:0,how:0,"__init__":0,env:0,uijykoqulazyaqblqbhtnaaaaa:0,instead:0,simpl:0,col_param:0,css:0,collaps:0,map:0,recogn:0,outsid:0,max:0,after:0,befor:0,section_tag:0,rmtree:0,mai:0,encode_module_:0,unlink:0,"_nativestr":0,section_tag_remov:0,read_sourc:0,"short":0,attempt:0,practic:0,classmethod:0,"__name__":0,stdin:0,explicit:0,adhoc_template_check:0,disabl:0,inform:0,environ:0,"1nw0nxsvujot8nms7dskc1j07uaixbxobp4":0,allow:0,lambda:0,order:0,table_in:0,extractor:0,include_path:0,help:0,namespacedict:0,over:0,becaus:0,namespace_dict:0,through:0,file_list:0,mainli:0,paramet:0,write:0,adhoc_run_tim:0,outer:0,template_nam:0,transform_sect:0,"__class__":0,use_case_005_nested_:0,nadhoc_test_sub_import:0,pad:0,hidden:0,main:0,template_process_hook:0,them:0,good:0,"return":0,thei:0,python:0,wolfgang:0,subdirectori:0,stringformat:0,adhoc_index_onli:0,xdir:0,indent_sect:0,restore_stdout:0,half:0,now:0,dump_:0,nor:0,name:0,anyth:0,stringformat_loc:0,separ:0,easili:0,achiev:0,mode:0,each:0,debug:0,found:0,unicod:0,attributeerror:0,mean:0,compil:0,interleav:0,use_case_001_templates_:0,arg0:0,pass_opt:0,arg2:0,arg3:0,overflow:0,continu:0,wrap:0,meta:0,"static":0,expect:0,adhoc_run_time_class:0,line_tag_pars:0,adhoc_:0,hlc:0,special:0,out:0,variabl:0,"try":0,space:0,goe:0,facil:0,content:0,scherer:0,suitabl:0,namespace_closur:0,print:0,my_fil:0,dkei:0,file_nam:0,adhoc_dis:0,dump_attr:0,contain:0,dict_dump:0,differ:0,standard:0,headlin:0,standalon:0,base:0,dictionari:0,adhoc_run_time_engin:0,use_cas:0,use_case_000_:0,output_fil:0,care:0,indent:0,wai:0,"__adhoc_extract__":0,column1:0,traceback:0,dir_:0,h4siaetafvac:[],place:0,line_tag_strip:0,macro_xdef_delimit:0,h4siamk3fvac:[],secti:0,think:0,first:0,origin:0,rang:0,h4siakq3fvac:[],suffix:0,obviou:0,blown:0,h4siabpefvac:0,section_tag_strip:0,remove_sect:0,hook:0,instruct:0,alreadi:0,done:0,wrapper:0,blank:0,stabl:0,rt_adhoc:0,open:0,line_tag:0,prioriti:0,macro_call_delimit:0,tag2:0,script:0,mkdir:0,system:0,messag:0,necessarili:0,statement:0,extract:0,from_:0,conveni:0,file_spec:0,adhoc_remov:0,low:0,encode_includ:0,option:0,especi:0,namespac:0,tool:0,included2:0,use_case_002_include_:0,specifi:0,property_:0,adhoc_compil:0,getter:0,enclos:0,rst_to_ascii:0,rst:0,exactli:0,than:0,section_delimit:0,serv:0,h4siam4ua1ac:[],liter:0,all_:0,prevent:0,remov:0,structur:0,hilari:0,str:0,entri:0,sec:0,initi:0,pre:0,runner:0,ani:0,packag:0,width:0,rc_file:0,have:0,tabl:0,need:0,"null":0,reset_delimit:0,implod:0,import_:0,callback:0,self:0,aefuloo2cqefjwmcgeaqobqsjgaaaa:0,note:0,also:0,exampl:0,read:0,take:0,which:0,combin:0,noth:0,rtadhoc:0,get_named_templ:0,even:0,begin:0,has_expanded_macro:0,disabled_command:0,compilefil:0,exec:0,object:0,most:0,regular:0,pair:0,expand_macro:0,pyc:0,expose_dict:0,"class":0,sys_path:0,renam:0,doc:0,tpl:0,cover:0,indx:0,doe:0,macro_nam:0,declar:0,snapshot:0,determin:0,pars:0,doctest:0,"__adhoc__":0,rt_section:0,uc_typ:0,adhoc_get_run_time_sect:0,show:0,text:0,"__str__":0,verbos:0,dbg:0,urllib:0,trivial:0,anywai:0,setter:0,absolut:0,onli:0,locat:0,pretti:0,"__base__":0,activ:0,state:0,should:0,adhoc_check_encode_modul:0,suppos:0,gb4b4w4:0,namespacemeta:0,local:0,enable_sect:0,mwg_:0,macro_sourc:0,reset:0,variou:0,get:0,"__file__":0,express:0,pypi:0,nativ:0,cannot:0,"16t11":[],"16t13":0,"16t12":[],extract_templ:0,requir:0,bat:0,enabl:0,twice:0,no_dis:0,export_:0,provid:0,compile_:0,stuff:0,adhoc_test_sub_import:0,h4siaje5fvac:[],line_delimit:0,where:0,column2:0,"__module__":0,set:0,dump:0,sep:0,unpack_fil:0,col_count:0,get_readm:0,maximum:0,h4siap8:[],template_t:0,see:0,num:0,signifi:0,result:0,arg:0,close:0,charact:0,adhoc_x_full_doc:0,tag_sym:0,export_fil:0,someth:0,adhoc_test_import:0,"1nw0nxsvujot8nms7dskc1j07uaixaljiurhf5yenvhpvxpmtk5":0,pyjsmo:0,written:0,dvhh7ggh8qhhzrfe:0,macro_xdef_dlm:0,subdir:0,file_encoding_is_clean:0,"02t20":[],neither:0,"18t14":0,dict_:0,attribut:0,altern:0,unmodifi:0,extend:0,cycl:0,entir:0,comm:0,rc_sourc:0,encode_modul:0,come:0,addit:0,both:0,argparse_loc:0,pack_fil:0,adhoc_parse_lin:0,delimit:0,howev:0,quiet:0,len:0,instanc:0,present:0,logic:0,let:0,adhoc_remove_:0,col:0,comment:0,point:0,instanti:0,overview:0,replac:0,pop:0,walk:0,source_0:0,ioerror:0,diff:0,duplic:0,quit:0,creat:0,addition:0,empti:0,usourc:0,my_verbatim:0,trigger:0,besid:0,treat:0,basic:0,higlight:0,immedi:0,verbatim_:0,"__doc__":0,adhoc_disable_check:0,source_n:0,suppress:0,summari:0,convert:0,argument:0,demand:0,last:0,format_:0,those:0,"case":0,ident:0,look:0,raw:0,frozen:0,hoc:0,properti:0,kwarg:0,utf8str:0,adhoc_tag:0,defin:0,calcul:0,sformat:0,ditem:0,h4siadxafvac:[],pack:0,layer:0,argpars:0,source64:0,stdout:0,set_delimit:0,"__main__":0,therefor:0,non:0,dictonari:0,destin:0,included1:0,delimiter_st:0,default_valu:0,conf:0,adhoc_templ:0,fiddl:0,limit:0,shutil:0,ascii:0,sever:0,oper:0,develop:0,sv_quiet:0,minim:0,receiv:0,make:0,referenti:0,same:0,ignore_mark:0,member:0,handl:0,lengthi:0,complex:0,decod:0,split:0,document:0,section_tag_renam:0,complet:0,transform_lin:0,nin:0,denot:0,expans:0,nest:0,wherea:0,effect:0,"__adhoc_explode__":0,user:0,extern:0,set_:0,distutil:0,decode_sourc:0,expand:0,recent:0,"_verbos":0,off:0,is_tag:0,macro:0,hlcr:0,well:0,inherit:0,check_cod:0,without:0,command:0,thi:0,entiti:0,programm:0,everyth:0,check_xfil:0,mvf:0,explan:0,load:0,violat:0,newest:0,execut:0,less:0,nsc:0,get_use_cas:0,additon:0,obtain:0,rest:0,wid:0,adhoc_run_time_sections_from_str:0,heavili:0,"__dict__":0,flavor:0,expos:0,mark:0,copi:0,makefil:0,except:0,param:0,adhoc_macro_expans:0,add:0,full_doc_delimit:0,disable_sect:0,input:0,save:0,match:0,adhoc_uncom:0,bin:0,applic:0,inc_template_mark:0,around:0,recreat:0,mayb:0,preserv:0,disposit:0,setdefaultencod:0,should_be_kept:0,built:0,realiz:0,part:0,recurs:0,adhoc_run_time_modul:0,python3:0,python2:0,ungzip:0,like:0,specif:0,arbitrari:0,docutil:0,xsource_1:0,manifest:0,adhoc_unpack:0,flux:0,section_tag_rx:0,singl:0,export_sourc:0,output:0,elt:0,template_list:0,isstr:0,adhoc_test:0,incent:0,attrib2:0,cpklcqufcokkozkljtmpcnp6elwauul2:0,source_1:0,some:0,mod_nam:0,intern:0,enumer:0,"export":0,ah_check_sourc:0,home:0,librari:0,qcfrisezpcqnvufpt48lajnbls85aaaa:0,tmp:0,freez:0,"__setattr__":0,setup_tag:0,implement:0,xsource_i:0,archiv:0,normal:0,definit:0,hlssr:0,tag_partit:0,substitut:0,slash:0,hlsr:0,condit:0,rc_file_nam:0,col_param_closur:0,tpl_hook_readm:0,previou:0,run:0,process_col:0,importerror:0,symbol_or_r:0,step:0,unpack_:0,fulli:0,export_dir:0,subtract:0,macro_call_dlm:0,actual:0,would:0,incorpor:0,strip_com:0,column:0,materi:0,dbg_comm:0,splitlin:0,doc_index_rst_tag_symbol:0,"_utf8str":0,attrib:0,date_str:0,produc:0,block:0,xsource_0:0,tag_rx:0,commstr:0,own:0,decompil:0,within:0,encod:0,bound:0,automat:0,ellipsi:0,dump__:0,"_quiet":0,been:0,in_sect:0,strip:0,usag:0,"import":0,adhoc_en:0,use_case_003_export:0,"_property_":0,adhoc_rst_to_ascii:0,inclus:0,processor:0,suffici:0,support:0,captur:0,bodi:0,transform:0,adhoc_verbatim:0,avail:0,start:0,interfac:0,includ:0,arg1:0,"var":0,section_tag_pars:0,value2:0,"function":0,fvac:[],gzip:0,verbatim:0,forc:0,tupl:0,rst_header:0,hlr:0,scope:0,line:0,"true":0,conclus:0,longer:0,count:0,concaten:0,made:0,utf:0,consist:0,possibl:0,"default":0,access:0,file_:0,displai:0,lead:0,my_tag:0,below:0,for_:0,otherwis:0,problem:0,more:0,adhocerror:0,encode_sourc:0,line_tag_renam:0,featur:0,evalu:0,"int":0,dure:0,adhoc_indent_check:0,include1:0,include2:0,h4siajoufvac:[],"char":0,dvalu:0,exist:0,file:0,mtime:0,template_raw:0,inf:0,another_valu:0,check:0,tag_split:0,expresss:0,assembl:0,again:0,readi:0,my_:0,todo:0,when:0,detail:0,prepend:0,other:0,writabl:0,ign:0,pad_cols_c:0,nice:0,adhoc_enable_check:0,strquot:0,adhoc_import:0,defpath:0,sequenc:0,symbol:0,write_sourc:0,sure:0,inc_delimit:0,consid:0,source_i:0,include_:0,xsource_n:0,directori:0,regexp:0,line_tag_remov:0,descript:0,dump_fil:0,extract_dir:0,itself:0,ignor:0,time:0,short_doc:0,escap:0},objtypes:{"0":"py:module","1":"py:classmethod","2":"py:attribute","3":"py:function","4":"py:method","5":"py:class","6":"py:staticmethod","7":"py:data"},titles:["AdHoc Standalone Python Script Generator"],objnames:{"0":["py","module","Python module"],"1":["py","classmethod","Python class method"],"2":["py","attribute","Python attribute"],"3":["py","function","Python function"],"4":["py","method","Python method"],"5":["py","class","Python class"],"6":["py","staticmethod","Python static method"],"7":["py","data","Python data"]},filenames:["index"]})
+Search.setIndex({objects:{"":{adhoc:[0,0,1,""],namespace_dict:[0,0,1,""]},namespace_dict:{NameSpaceDict:[0,5,1,""],NameSpaceNS:[0,5,1,""],NameSpace:[0,5,1,""],NameSpaceMeta:[0,7,1,""]},"namespace_dict.NameSpaceNS":{property_closure:[0,6,1,""],namespace:[0,1,1,""],namespace_closure:[0,1,1,""],property_:[0,1,1,""]},"adhoc.AdHoc":{template_list:[0,1,1,""],tag_split:[0,1,1,""],include_path:[0,2,1,""],enable_sections:[0,1,1,""],template_table:[0,1,1,""],export_source:[0,1,1,""],section_tag_strip:[0,1,1,""],module_setup:[0,1,1,""],pack_file:[0,1,1,""],compile:[0,4,1,""],set_delimiters:[0,1,1,""],std_template_param:[0,1,1,""],std_source_param:[0,1,1,""],extract:[0,1,1,""],section_tag_remove:[0,1,1,""],line_tag:[0,1,1,""],forced:[0,2,1,""],indent_sections:[0,1,1,""],col_param_closure:[0,1,1,""],disable_transform:[0,1,1,""],line_tag_parse:[0,1,1,""],line_delimiters:[0,2,1,""],activate_macros:[0,1,1,""],line_tag_rename:[0,1,1,""],strptime:[0,1,1,""],expand_macros:[0,1,1,""],verbose:[0,2,1,""],macros:[0,2,1,""],section_tag_rename:[0,1,1,""],section_tag_parse:[0,1,1,""],export_dir:[0,2,1,""],write_source:[0,1,1,""],verbatim_:[0,4,1,""],extract_templates:[0,1,1,""],tag_lines:[0,1,1,""],remove_sections:[0,1,1,""],flat:[0,2,1,""],reset_delimiters:[0,1,1,""],section_delimiters:[0,2,1,""],disable_sections:[0,1,1,""],macro_xdef_delimiters:[0,2,1,""],tag_partition:[0,1,1,""],include_:[0,4,1,""],section_tag:[0,1,1,""],template_process_hooks:[0,2,1,""],read_source:[0,1,1,""],unpack_:[0,1,1,""],inc_delimiters:[0,1,1,""],check_xfile:[0,1,1,""],transform_sections:[0,1,1,""],unpack_file:[0,1,1,""],unpack:[0,1,1,""],import_:[0,1,1,""],collapse_macros:[0,1,1,""],macro_call_delimiters:[0,2,1,""],encode_source:[0,1,1,""],uc_type:[0,2,1,""],get_named_template:[0,1,1,""],line_tag_remove:[0,1,1,""],check_coding:[0,6,1,""],frozen:[0,2,1,""],tag_sections:[0,1,1,""],quiet:[0,2,1,""],decode_source:[0,1,1,""],adhoc_tag:[0,6,1,""],extract_dir:[0,2,1,""],get_templates:[0,1,1,""],compile_:[0,4,1,""],has_expanded_macros:[0,1,1,""],adhoc_parse_line:[0,1,1,""],extra_templates:[0,2,1,""],line_tag_strip:[0,1,1,""],debug:[0,2,1,""],transform_lines:[0,1,1,""],compileFile:[0,4,1,""]},adhoc:{adhoc_rst_to_ascii:[0,3,1,""],run:[0,3,1,""],adhoc_check_packing:[0,3,1,""],dict_dump:[0,3,1,""],AdHoc:[0,5,1,""],compile_:[0,3,1,""],strclean:[0,3,1,""],rst_to_ascii:[0,3,1,""],restore_stdout:[0,3,1,""],adhoc_check_module_setup:[0,3,1,""],catch_stdout:[0,3,1,""]}},terms:{all:0,code:0,partial:0,adhoc_ind:0,definit:0,global:0,mw_:0,module_setup:0,prefix:0,concept:0,dvhh7ggh8r7:0,"_uc":0,follow:0,content:0,depend:0,unpack:0,base64:0,strptime:0,os_path:0,program:0,use_case_003_import_:0,"1nw0nxsvujot8nms7dsyeksycwzbalxjsylkzz59ocrltmnrygzrkg0":0,collapse_macro:0,worth:0,hl_lvl:0,sourc:0,string:0,fals:0,adhoc_run_time_section_from_fil:0,namespacen:0,attrbut:0,ident:0,mechan:0,uc_descr_end:0,retriev:0,exact:0,relev:0,look:0,tri:0,splitter:0,is_r:0,level:0,cmd:0,list:0,iter:0,adhoc_run_time_sect:0,item:0,get_templ:0,tag_lin:0,namespace_:0,prepar:0,dir:0,header_foot:0,adhoc_includ:0,tag_sect:0,naiv:0,second:0,blanklin:0,design:0,pass:0,adhoc_check_module_setup:0,append:0,compat:0,index:0,disable_transform:0,sub:0,preserv:0,neg:0,section:0,biject:0,abl:0,calcul:0,adhoc:0,anywai:0,current:0,version:0,directori:0,no_remov:0,extra_templ:0,method:0,has_expanded_macro:0,sformat:0,elimin:0,full:0,variat:0,gener:0,never:0,here:0,closur:0,modif:0,path:0,becom:0,modifi:0,sinc:0,valu:0,trunc:0,search:0,pretti:0,anymor:0,psourc:0,behav:0,within:0,uc00:0,chang:0,overrid:0,via:0,extra:0,appli:0,modul:0,filenam:0,api:0,printf:0,marker:0,instal:0,hlss:0,txt:0,source64:0,mvar:0,from:0,zip:0,adhoc_dump_list:0,doubl:0,export__:0,two:0,nativestr:0,chp:0,full_doc_tag_sym:0,pad_col:0,call:0,usr:0,taken:0,suppos:0,type:0,start:0,adhoc_template_v:0,sort:0,flat:0,rstrip:0,expandus:0,tsaaaa:0,warn:0,trail:0,flag:0,templat:0,actual:0,effort:0,must:0,adhoc_dump_sect:0,none:0,join:0,my_module_nam:0,restor:0,full_doc:0,alia:0,setup:0,work:0,dev:0,prepare_run_time_sect:0,remain:0,property_closur:0,can:0,default_valu:0,purpos:0,activate_macro:0,def:0,explod:0,quickstart:0,process:0,adhoc_templ:0,adhoc_self:0,std_template_param:0,tag:0,dbg_fwid:0,std_source_param:0,alwai:0,rsourc:0,end:0,newlin:0,programmat:0,anoth:0,snippet:0,how:0,sever:0,env:0,subdirectori:0,instead:0,export_dir:0,simpl:0,stringformat_loc:0,css:0,collaps:0,map:0,recogn:0,outsid:0,max:0,after:0,invok:0,befor:0,section_tag:0,rmtree:0,mai:0,encode_module_:0,unlink:0,"_nativestr":0,section_tag_remov:0,read_sourc:0,"short":0,attempt:0,practic:0,classmethod:0,stdin:0,explicit:0,adhoc_template_check:0,produc:0,inform:0,environ:0,"1nw0nxsvujot8nms7dskc1j07uaixbxobp4":0,allow:0,first:0,order:0,table_in:0,extractor:0,include_path:0,help:0,namespacedict:0,over:0,becaus:0,namespace_dict:0,through:0,file_list:0,mainli:0,entiti:0,write:0,adhoc_run_tim:0,outer:0,blown:0,transform_sect:0,"__class__":0,carri:0,nadhoc_test_sub_import:0,decod:0,hidden:0,main:0,template_process_hook:0,them:0,good:0,"return":0,thei:0,python:0,wolfgang:0,uijykoqulazyaqblqbhtnaaaaa:0,stringformat:0,adhoc_index_onli:0,xdir:0,indent_sect:0,"try":0,restore_stdout:0,half:0,now:0,dump_:0,nor:0,name:0,anyth:0,file_:0,col_param:0,separ:0,easili:0,achiev:0,"_quiet":0,mode:0,each:0,debug:0,found:0,unicod:0,complet:0,attributeerror:0,mean:0,compil:0,interleav:0,use_case_001_templates_:0,arg0:0,pass_opt:0,arg2:0,arg3:0,continu:0,line:0,wrap:0,meta:0,"static":0,expect:0,adhoc_run_time_class:0,line_tag_pars:0,adhoc_:0,nin:0,hlc:0,special:0,out:0,variabl:0,adhoc_import:0,adhoc_en:0,space:0,goe:0,open:0,tpl_hook_doc_index_rst:0,suitabl:0,namespace_closur:0,print:0,my_fil:0,dkei:0,file_nam:0,fiddl:0,adhoc_dis:0,dump_attr:0,dict_dump:0,differ:0,standard:0,headlin:0,standalon:0,base:0,dictionari:0,adhoc_run_time_engin:0,use_cas:0,import_:0,macro_call_delimit:0,output_fil:0,care:0,indent:0,suffici:0,"__adhoc_extract__":0,where:0,traceback:0,dir_:0,place:0,line_tag_strip:0,macro_xdef_delimit:0,column2:0,think:0,lambda:0,origin:0,rang:0,suffix:0,obviou:0,template_nam:0,h4siabpefvac:0,section_tag_strip:0,system:0,hook:0,instruct:0,alreadi:0,done:0,construct:0,blank:0,stabl:0,rt_adhoc:0,facil:0,line_tag:0,prioriti:0,another_valu:0,tag2:0,messag:0,script:0,mkdir:0,remove_sect:0,wrapper:0,necessarili:0,statement:0,from_:0,conveni:0,file_spec:0,adhoc_remov:0,includ:0,encode_includ:0,option:0,especi:0,namespac:0,tool:0,included2:0,use_case_002_include_:0,specifi:0,property_:0,adhoc_compil:0,getter:0,enclos:0,rst_to_ascii:0,rst:0,exactli:0,than:0,section_delimit:0,serv:0,liter:0,template_t:0,prevent:0,remov:0,structur:0,hilari:0,str:0,entri:0,signifi:0,other:0,pre:0,runner:0,ani:0,packag:0,rc_file:0,have:0,tabl:0,need:0,take:0,"null":0,featur:0,reset_delimit:0,implod:0,recreat:0,callback:0,self:0,violat:0,note:0,also:0,without:0,adhoc_uncom:0,which:0,combin:0,noth:0,rtadhoc:0,get_named_templ:0,even:0,begin:0,sure:0,thi:0,compilefil:0,exec:0,object:0,most:0,regular:0,pair:0,pyc:0,expose_dict:0,"class":0,todo:0,sys_path:0,renam:0,consist:0,doc:0,tpl:0,cover:0,indx:0,doe:0,macro_nam:0,part:0,snapshot:0,determin:0,pars:0,someth:0,rt_section:0,uc_typ:0,show:0,text:0,"__str__":0,verbos:0,dbg:0,writabl:0,pyjsmo:0,section_tag_renam:0,trivial:0,find:0,setter:0,absolut:0,onli:0,locat:0,copyright:0,"__base__":0,activ:0,written:0,should:0,adhoc_check_encode_modul:0,dict:0,gb4b4w4:0,namespacemeta:0,local:0,enable_sect:0,mwg_:0,macro_sourc:0,count:0,variou:0,get:0,"__file__":0,express:0,pypi:0,nativ:0,cannot:0,"16t13":0,extract_templ:0,requir:0,bat:0,enabl:0,twice:0,no_dis:0,export_:0,xsource_i:0,provid:0,compile_:0,stuff:0,adhoc_test_sub_import:0,contain:0,line_delimit:0,column1:0,secti:0,user:0,"__module__":0,set:0,dump:0,sep:0,unpack_fil:0,col_count:0,get_readm:0,displai:0,all_:0,see:0,num:0,sec:0,result:0,arg:0,close:0,charact:0,tag_sym:0,export_fil:0,"__adhoc__":0,adhoc_test_import:0,"1nw0nxsvujot8nms7dskc1j07uaixaljiurhf5yenvhpvxpmtk5":0,urllib:0,state:0,dvhh7ggh8qhhzrfe:0,macro_xdef_dlm:0,subdir:0,file_encoding_is_clean:0,"import":0,neither:0,"18t14":0,dict_:0,attribut:0,altern:0,unmodifi:0,extend:0,cycl:0,entir:0,comm:0,rc_sourc:0,encode_modul:0,come:0,addit:0,both:0,argparse_loc:0,pack_fil:0,adhoc_parse_lin:0,delimit:0,howev:0,delimiter_st:0,quiet:0,len:0,instanc:0,present:0,"__init__":0,logic:0,let:0,adhoc_remove_:0,col:0,comment:0,point:0,instanti:0,overview:0,pop:0,walk:0,empti:0,source_0:0,ioerror:0,diff:0,duplic:0,quit:0,evalu:0,use_case_005_nested_:0,addition:0,been:0,usourc:0,my_verbatim:0,trigger:0,besid:0,treat:0,basic:0,higlight:0,immedi:0,verbatim_:0,"__doc__":0,adhoc_disable_check:0,source_n:0,suppress:0,summari:0,convert:0,argument:0,demand:0,last:0,format_:0,those:0,"case":0,therefor:0,adhoc_check_modul:0,raw:0,frozen:0,hoc:0,properti:0,kwarg:0,utf8str:0,adhoc_tag:0,defin:0,"while":0,catch_stdout:0,exist:0,pack:0,layer:0,argpars:0,conclus:0,full_doc_tag:0,stdout:0,set_delimit:0,"__main__":0,readm:0,non:0,dictonari:0,destin:0,included1:0,itself:0,strclean:0,conf:0,get_:0,adhoc_macro_cal:0,limit:0,shutil:0,ascii:0,adhoc_check_pack:0,oper:0,develop:0,sv_quiet:0,minim:0,receiv:0,make:0,referenti:0,same:0,check:0,member:0,handl:0,lengthi:0,complex:0,pad:0,split:0,document:0,expand_macro:0,doctest:0,transform_lin:0,archiv:0,again:0,expans:0,nest:0,wherea:0,effect:0,"__adhoc_explode__":0,initi:0,extern:0,set_:0,distutil:0,decode_sourc:0,expand:0,recent:0,"_verbos":0,off:0,is_tag:0,macro:0,hlcr:0,well:0,inherit:0,check_cod:0,exampl:0,command:0,disabled_command:0,gzip:0,programm:0,everyth:0,mvf:0,explan:0,load:0,aefuloo2cqefjwmcgeaqobqsjgaaaa:0,newest:0,execut:0,less:0,get_use_cas:0,additon:0,obtain:0,rest:0,wid:0,adhoc_run_time_sections_from_str:0,heavili:0,"__dict__":0,flavor:0,like:0,expos:0,singl:0,adhoc_get_run_time_sect:0,copi:0,makefil:0,except:0,param:0,adhoc_macro_expans:0,add:0,full_doc_delimit:0,disable_sect:0,input:0,save:0,match:0,adhoc_x_full_doc:0,bin:0,applic:0,inc_template_mark:0,around:0,mayb:0,read:0,disposit:0,setdefaultencod:0,should_be_kept:0,built:0,realiz:0,recurs:0,adhoc_run_time_modul:0,python3:0,python2:0,paramet:0,specif:0,arbitrari:0,docutil:0,xsource_1:0,manifest:0,adhoc_unpack:0,flux:0,section_tag_rx:0,macro_call_dlm:0,export_sourc:0,output:0,elt:0,template_list:0,isstr:0,adhoc_test:0,incent:0,attrib2:0,cpklcqufcokkozkljtmpcnp6elwauul2:0,source_1:0,some:0,mod_nam:0,intern:0,enumer:0,"export":0,ah_check_sourc:0,home:0,librari:0,strquot:0,tmp:0,freez:0,"__setattr__":0,setup_tag:0,implement:0,expansion_str:0,normal:0,pathsep:0,hlssr:0,tag_partit:0,substitut:0,slash:0,hlsr:0,condit:0,rc_file_nam:0,col_param_closur:0,tpl_hook_readm:0,previou:0,run:0,process_col:0,importerror:0,symbol_or_r:0,step:0,arg1:0,unpack_:0,fulli:0,"__name__":0,qcfrisezpcqnvufpt48lajnbls85aaaa:0,subtract:0,uncompil:0,obj:0,would:0,incorpor:0,strip_com:0,column:0,materi:0,splitlin:0,doc_index_rst_tag_symbol:0,"_utf8str":0,attrib:0,date_str:0,disabl:0,block:0,xsource_0:0,tag_rx:0,commstr:0,own:0,decompil:0,nsc:0,encod:0,bound:0,automat:0,ellipsi:0,dump__:0,dbg_comm:0,scherer:0,in_sect:0,strip:0,usag:0,mark:0,use_case_003_export:0,"_property_":0,adhoc_rst_to_ascii:0,inclus:0,processor:0,wai:0,support:0,captur:0,bodi:0,transform:0,adhoc_verbatim:0,avail:0,width:0,interfac:0,low:0,replac:0,"var":0,section_tag_pars:0,value2:0,"function":0,verbatim:0,forc:0,tupl:0,rst_header:0,hlr:0,scope:0,overflow:0,"true":0,untag:0,reset:0,concaten:0,made:0,utf:0,tagged_lin:0,possibl:0,"default":0,access:0,dbg_twid:0,maximum:0,lead:0,my_tag:0,below:0,for_:0,otherwis:0,problem:0,more:0,adhocerror:0,encode_sourc:0,line_tag_renam:0,ungzip:0,creat:0,"int":0,dure:0,adhoc_indent_check:0,include1:0,include2:0,"char":0,dvalu:0,ditem:0,file:0,mtime:0,template_raw:0,inf:0,ignore_mark:0,tag_split:0,expresss:0,assembl:0,denot:0,readi:0,my_:0,extract:0,when:0,detail:0,prepend:0,declar:0,test:0,ign:0,pad_cols_c:0,nice:0,adhoc_enable_check:0,use_case_000_:0,xsource_n:0,defpath:0,sequenc:0,symbol:0,write_sourc:0,inc_delimit:0,consid:0,source_i:0,include_:0,longer:0,check_xfil:0,regexp:0,line_tag_remov:0,descript:0,dump_fil:0,extract_dir:0,ignor:0,time:0,short_doc:0,escap:0},objtypes:{"0":"py:module","1":"py:classmethod","2":"py:attribute","3":"py:function","4":"py:method","5":"py:class","6":"py:staticmethod","7":"py:data"},titles:["AdHoc Standalone Python Script Generator"],objnames:{"0":["py","module","Python module"],"1":["py","classmethod","Python class method"],"2":["py","attribute","Python attribute"],"3":["py","function","Python function"],"4":["py","method","Python method"],"5":["py","class","Python class"],"6":["py","staticmethod","Python static method"],"7":["py","data","Python data"]},filenames:["index"]})