durusmail: quixote-users: Adding magic to PTL, Or: how to stop worrying about XSS holes
Adding magic to PTL, Or: how to stop worrying about XSS holes
Adding magic to PTL, Or: how to stop worrying about XSS holes
2002-10-01
Adding magic to PTL, Or: how to stop worrying about XSS holes
Adding magic to PTL, Or: how to stop worrying about XSS holes
2002-10-02
2002-10-01
2002-10-01
2002-10-01
2002-10-01
Adding magic to PTL, Or: how to stop worrying about XSS holes
Neil Schemenauer
2002-10-01
On Tue, Oct 01, 2002 at 02:40:14PM -0400, Greg Ward wrote:
> Is this general enough that it should be called 'Markup'?  Or is this
> specific to HTML/XHTML?

Currently I have an abstract base class called 'Markup' and a subclass
called 'HTMLMarkup'.  There could also be a 'XMLMarkup' class but is
would be the same as 'HTMLMarkup'.

This could be an over-generalization.  I can't think of any other
examples of markup languages that have different quoting rules than HTML
and that people might want to use in a PTL module.  Can anyone else?

> Note that doing this cheaply -- eg. use __slots__, subclass str -- would
> tie Quixote to Python 2.2.  That's fine by me, but if anyone out there
> is unable/unwilling to move past Python 2.0 or 2.1, you should speak up
> now!

Yup.  I can make it work with Python <2.2 but it's messier.  Does anyone
care?

  Neil


reply