On 5/10/06, David Bingerwrote: > > On May 10, 2006, at 5:15 PM, Mike Orr wrote: > > > Darn it, why didn't htmltext subclass str!!! Peeking into the > > htmltext implementation, it stores the actual value in an attribute > > ...s: > > Have you looked at QPY? > It is essentially PTL, except that the htmltext class, > called "h8" in QPY, *is* a subclass of unicode. > That's the main reason QPY exists. I've looked at QPY but haven't used it much, mainly because I thought you said it wasn't a good idea to mix PTL and QPY in the same program, and Quixote uses htmltext internally. One of my goals for my Quixote refactoring (which I haven't made any headway in; been working on SQL import stuff) was to make a Quixote that use QPY instead of htmltext/PTL, but that's not done yet. I started wrote the program in PTL like my previous one, then my project manager said he really wanted to be able to tweak the HTML and preview it in a browser, so I switched to Cheetah, and just converted the last PTL template last week. But I have a library of small HTML functions that still uses PTL. -- Mike Orr