[Happydoc-checkins] CVS: HappyDoc3/happydoclib appclass.py,1.13,1.14
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2003-03-15 14:23:24
|
Update of /cvsroot/happydoc/HappyDoc3/happydoclib In directory sc8-pr-cvs1:/tmp/cvs-serv7784/happydoclib Modified Files: appclass.py Log Message: Add optional caching of parse results by pickling the information and writing it to a file in the same directory as the input source. Include command line options for setting the cache file name and turning the cache on and off. Index: appclass.py =================================================================== RCS file: /cvsroot/happydoc/HappyDoc3/happydoclib/appclass.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** appclass.py 19 Jan 2003 22:25:06 -0000 1.13 --- appclass.py 15 Mar 2003 14:23:20 -0000 1.14 *************** *** 128,131 **** --- 128,132 ---- self.set_docset_type('MultiHTMLFile') + #self.set_docset_type('TAL') self._ignore_dir_patterns = Scanner.DEFAULT_IGNORE_PATTERNS[:] *************** *** 249,252 **** --- 250,254 ---- self.output_directory = os.path.normcase(outputDirectory) return + ## def optionHandler_dia(self): *************** *** 280,283 **** --- 282,298 ---- """ happydoclib.parseinfo.setOption(include_comments=0) + return + + def optionHandler_no_cache(self): + """Disable caching of parse results. + """ + happydoclib.parseinfo.setOption(useCache=0) + return + + def optionHandler_cache_prefix(self, cacheFilePrefix): + """Set the prefix of parse cache files. + Defaults to '.happydoc.' + """ + happydoclib.parseinfo.setOption(cacheFilePrefix=cacheFilePrefix) return |