durusmail: qp: Re: qpy development ideas
qpy development ideas
2007-10-08
2007-10-09
Re: qpy development ideas
2007-10-10
2007-10-10
2007-10-14
2007-10-15
David K. Hess (2 parts)
2007-10-09
2007-10-09
2007-10-10
2007-10-10
2007-10-10
2007-10-10
2007-10-10
Re: qpy development ideas
dhess@fishsoftware.com
2007-10-11
> I currently have "xml" as the name of the xml_quote_no_more class,
> so that [xml] and [str] are intended to hint that we are accumulating
> xml or str values.

The talk of xml has me wondering about a new feature. I would find useful
a feature of qpy where it would optionally take the result of an [xml]
tagged method/function and run it through an XML parser to check syntax
and maybe even semantics against a specified DTD/schema (XHTML). If this
were enabled and parsing/validation fails, then an Exception would be
thrown on return from the method/function.

My motivation for this is that it can be difficult to get an online
validator to validate offline and secure websites. This could also be
useful when using qp to implement REST web services.

I suppose I could implement this with a decorator of my own but it seems
an interesting feature during development.

Dave

reply