durusmail: quixote-users: adding magic to PTL
adding magic to PTL
2002-10-01
2002-10-01
adding magic to PTL
Greg Ward
2002-10-01
On 01 October 2002, Jonathan Corbet said:
> - My "from __future__" comment was in jest; in any case, the ability to
>   override _q_markupclass provides what's really needed to transition
>   things one piece at a time.

Neil and I talked about this yesterday, and I suggested a "from
__future__" hack quite seriously.  The PTL compiler could look for it at
the same time it scans for "^\s*template\b" lines.

> - Markup('some text') looks an awful lot like a verb - but marking up is
>   exactly what is *not* happening in that case.  How about MarkedUp,
>   UnQuoted, TrustedText, or something like that?

How about SafeText (or safestr if this is to be a 2.2-style subclass of
str)?

        Greg


reply