[mod_python] mod_python / memcahced for on-the-fly rendering oflatex in html

Jay jayed at meangrape.com
Sun Apr 9 21:16:12 EDT 2006


On Sun, Apr 09, 2006 at 09:02:11PM -0400, Graham Dumpleton wrote:
>     """
>     if not os.path.isdir(TEMPDIR):
>         os.mkdir(TEMPDIR, 0755)
>     os.chdir(TEMPDIR)
>     soup = BeautifulSoup(data)
>     equations = soup.fetch(TYPES)
>     if not equations:
>         # return
>         return data # <--------------------------------------
> 
> In other words, if there are no embedded equations, return the original
> page content as is.

That makes perfect sense, Graham.  As does the content-length tip.
Thanks!

--
Jay.


More information about the Mod_python mailing list