[MERGE][PQM] Switching the web UI to use a SimpleTAL template

Daniel Watkins daniel at daniel-watkins.co.uk
Thu Jul 10 13:51:53 BST 2008


On Wed, 9 Jul 2008 17:57:51 +0100
Daniel Watkins <daniel at daniel-watkins.co.uk> wrote:
> I chose Mako because it is closest to Django templates, the templating
> language with which I am familiar.  It is supported by both Pylons (as
> the default) and TurboGears, so isn't going anywhere.  It is packaged
> in Debian Etch and in Ubuntu Gutsy onwards.
The attached converts from using Mako templates to using SimpleTAL,
that being the general consensus of what would be best.

> It's currently an RFC because the tests have not been updated to
> reflect the switch from the old method, and because a solution to
> finding the template needs to be found.
The tests have been updated to reflect the switch.  However, I'm
currently using BeautifulSoup within them, because it was the best I
could come up with.  Suggestions to do this better and/or without
introducing a dependency are welcome.  The template has been placed in
its own Python file, and so is accessed using Python's import rather
than by its path.

-- 
Daniel Watkins (Odd_Bloke)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simpletal.1.patch
Type: text/x-patch
Size: 28543 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080710/a6032221/attachment-0001.bin 


More information about the bazaar mailing list