[Twisted-Python] feature request for microdom
bob at redivi.com
Wed Sep 25 21:28:16 EDT 2002
Not all xml comes from files, or has more than one line.. often with
over-network or mostly-human-unreadable-anyways xml you'll strip all
the whitespace, because you can always parse it and "toprettyxml()" it
if you need later on.
You only really want line numbers and stuff if it doesn't parse when
you throw the exception
On Wednesday, September 25, 2002, at 08:11 PM, Bruce Mitchener wrote:
> Hey DOMmies,
> Well, since we're using MicroDOM .. we might as well make it kick some
> more ass. :)
> In working with the Woven stuff, one thing that would help a lot in
> the formatted failure pages is if the __repr__ of the objects wasn't
> just this:
> <twisted.web.microdom.Element instance at 0x83a76dc>
> but maybe included other information about the element. The best
> would be to include the name of the file, the line number, the tag
> name and any attributes. :) But that might be asking for too much.
> Is there some happy middle ground?
> Still learning Python and Twisted or I'd do this myself.
> - Bruce
More information about the Twisted-Python