[ZPT] tal:repeat over the sorted keys of a dictionary

Jean Jordaan jean at upfrontsystems.co.za
Fri Jul 25 18:40:44 EDT 2003


> Shane Hathaway writes:
>  >         <ul tal:repeat="key licenses/keys/format:sort">
>  >             <li tal:content="licenses/key" />
>  >         </ul>
> 
> Cool, but I'd call it format:sorted.  (Either would be better than
> format:sordid though.)

Ugh, I think it's sordid to let lie the perfectly apposite 'sort' 
method of dictionaries, in favour of some formatting protocol
helper :/

-- 
Jean Jordaan
http://www.upfrontsystems.co.za




More information about the ZPT mailing list