.. the subject says it all. I want to do something like: <ul tal:define="keys licenses/keys; sortedkeys keys/sort" tal:repeat="key sortedkeys"> <li tal:content="python:licenses[key]" /> </ul> Unfortunately, "keys/sort" (and "python:keys.sort()") return None. What am I missing? -- Jean Jordaan http://www.upfrontsystems.co.za