[Moin-user] How do you develop/deploy a formatter plugin for a specific MIME type?

Uche Ogbuji uche.ogbuji at gmail.com
Wed May 19 13:29:51 EDT 2010

On Wed, May 19, 2010 at 3:05 AM, Thomas Waldmann <tw-public at gmx.de> wrote:

> On Tue, 2010-05-18 at 11:43 -0600, Uche Ogbuji wrote:
> > I'm trying to distribute a non-broken version of the text_xml.py
> > formatter as a third-party plug-in,
> I guess we would also accept a fix for the builtin one. :)
> Because it is very broken (non valid xml), I suspect noone can really
> use it anyway currently.
> But be warned, producing valid xml with the current parser/formatter
> infrastructure is likely not easy.

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.


>  but I'm not sure how I register the statement "please use this
> > formatter instance for requests with mimetype=text/xml".
> It is the module name of the formatter.
> mimetype text/xml -> module text_xml

A ha!  Thanks.

> If your project of fixing the text/xml stuff is more future/long-term
> oriented than "I want it right now", you could also consider moin2,
> which has a quite different infrastructure (but will take quite some
> time until it is usable for production).

Yeah, I was noticing that.  I'll definitely keep my eye on Moin2.

> BTW, if you had time to look at our other xmlish code, that would be
> great. We have python-xml dependencies at some places and noone has a
> clue about what to do with that without having breakage (and
> distributions already have removed the pyxml package).

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.

Uche Ogbuji                       http://uche.ogbuji.net
Weblog:                            http://copia.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
Linked-in: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/
Poetry ed @TNB: http://www.thenervousbreakdown.com/uogbuji/
Friendfeed: http://friendfeed.com/uche
Twitter: http://twitter.com/uogbuji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20100519/0ae90318/attachment.html>

More information about the Moin-user mailing list