On Wed, May 19, 2010 at 3:05 AM, Thomas Waldmann <span dir="ltr"><<a href="mailto:tw-public@gmx.de">tw-public@gmx.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, 2010-05-18 at 11:43 -0600, Uche Ogbuji wrote:<br>
> I'm trying to distribute a non-broken version of the text_xml.py<br>
> formatter as a third-party plug-in,<br>
<br>
</div>I guess we would also accept a fix for the builtin one. :)<br>
Because it is very broken (non valid xml), I suspect noone can really<br>
use it anyway currently.<br>
<br>
But be warned, producing valid xml with the current parser/formatter<br>
infrastructure is likely not easy.<br></blockquote><div><br></div><div>Well, that's the thing.  Producing valid xml with the current parser/formatter infrastructure using Python stdlib is *definitely* not easy.  That's why my extensions require Amara, because I want it to be easy ;)  And I am not willing to presume that Amara would be made a prerequisite for XML output, so my plan is to share a third-party plug-in that folks can deploy if they don't mind also installing Amara.</div>
<div><br></div><div><a href="http://wiki.xml3k.org/Amara2">http://wiki.xml3k.org/Amara2</a></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">>  but I'm not sure how I register the statement "please use this<br>
> formatter instance for requests with mimetype=text/xml".<br>
<br>
</div>It is the module name of the formatter.<br>
<br>
mimetype text/xml -> module text_xml<br></blockquote><div><br></div><div>A ha!  Thanks.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If your project of fixing the text/xml stuff is more future/long-term<br>
oriented than "I want it right now", you could also consider moin2,<br>
which has a quite different infrastructure (but will take quite some<br>
time until it is usable for production).<br></blockquote><div><br></div><div>Yeah, I was noticing that.  I'll definitely keep my eye on Moin2.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
BTW, if you had time to look at our other xmlish code, that would be<br>
great. We have python-xml dependencies at some places and noone has a<br>
clue about what to do with that without having breakage (and<br>
distributions already have removed the pyxml package).<br>
</blockquote></div><div><br></div>I'm willing to do what I can.  Part of the problem is that in my opinion Python's built-ins for XML are awful.  Note: others have very strong, differing opinions from mine about what makes a good XML library ;)  XML seems to perpetuate such controversies.<br>
<br clear="all"><br>-- <br>Uche Ogbuji                       <a href="http://uche.ogbuji.net">http://uche.ogbuji.net</a><br>Weblog:                            <a href="http://copia.ogbuji.net">http://copia.ogbuji.net</a><br>
Founding Partner, Zepheira        <a href="http://zepheira.com">http://zepheira.com</a><br>Linked-in: <a href="http://www.linkedin.com/in/ucheogbuji">http://www.linkedin.com/in/ucheogbuji</a><br>Articles: <a href="http://uche.ogbuji.net/tech/publications/">http://uche.ogbuji.net/tech/publications/</a><br>
Poetry ed @TNB: <a href="http://www.thenervousbreakdown.com/uogbuji/">http://www.thenervousbreakdown.com/uogbuji/</a><br>Friendfeed: <a href="http://friendfeed.com/uche">http://friendfeed.com/uche</a><br>Twitter: <a href="http://twitter.com/uogbuji">http://twitter.com/uogbuji</a><br>
<a href="http://www.google.com/profiles/uche.ogbuji">http://www.google.com/profiles/uche.ogbuji</a><br><br>