28 Jul 2000 amk   » (Master)

At work, I checked in the last bits of persistent sessions for Quixote and started trying to debug some JavaScript, which is always tedious and annoying. Earlier this week Neil proposed a far more Pythonic syntax for PTL, and today he implemented it using Jeremy's compiler code. Neil's syntax looks like this:

template equip_form(wizard, title, errors):
    from mems.ui import standard
    standard.header(title=title)

""" <table border=1> <tr><th>Equipment</th></tr> """ wizard.text_field( "manufacturer", "Manufacturer" ) ... "</table>"

Basically it's Python syntax, but every expression is converted to a string and added to the output. Now, what to do with the old templating code? One of these days I need to wrap up Quixote for a 0.2 release (or at least get a licence for it and then put it on SourceForge).

Only Martha and I showed up for book club, so after waiting for half an hour, we gave up; maybe next week we'll finally finish Thucydides, after starting it back in April (feels like aeons ago). Knocked another item off my TODO list, a minor but useful fix to the gzip module.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!