<div class="gmail_quote">On Thu, Jan 20, 2011 at 5:57 PM, Tim Allen <span dir="ltr">&lt;<a href="mailto:screwtape@froup.com">screwtape@froup.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, Jan 20, 2011 at 05:22:55PM -0600, Kevin Horn wrote:<br>
&gt; Hmmm...yes, I think it does.  It looks like the l2s_builder script is<br>
&gt; choking on fetching the DTD for some reason.  lore2sphinx itself is supposed<br>
&gt; to cache the DTD between runs, but I&#39;m betting it doesn&#39;t work in the<br>
&gt; buildbot due to the (hopefully) clean environment it has every time it runs.<br>
&gt;<br>
&gt; I can change it to not care about that, but if I do, then it won&#39;t be able<br>
&gt; to resolve HTML entities (of which there are a few in the Lore sources,<br>
&gt; mostly em-dashes IIRC).<br>
<br>
</div>You mean these DTDs?<br>
<br>
    twisted/lore/xhtml1-strict.dtd<br>
    twisted/lore/xhtml1-transitional.dtd<br>
<br>
They reference the xhtml-*.ent entity definitions which are also in the<br>
same directory. It would be neat if lore2sphinx could be taught to use<br>
the DTDs packaged with lore instead of having to download them from the<br>
Internet every time.<br>
<div><div></div><div class="h5"><br></div></div></blockquote></div><br>Huh. Never even knew that was there.  It probably could, and the reason it downloads from the internet was because that&#39;s the default way of doing it in lxml.  I&#39;ve since figured out how to override that behavior (which is how the caching works) so maybe that wouldn&#39;t even be hard.  The easiest/fastest fix for the moment though would probably be to pre-populate the cache as I mentioned before, since IIRC, this would just involve adding the file to my hg repo.  I&#39;ll have to look into it though, it may be just as easy to do it the other way, though I don&#39;t want to depend necessarily on having Twisted&#39;s code available (remember, this is supposed to work on the various divmod projects, and anything else that uses Lore, too).<br>
<br>Kevin Horn<br>