﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
331,Context collection is not iterable,anatoly techtonik <techtonik@…>,cmlenz,"While collaborating on Genshi [http://groups.google.com/group/genshi/browse_thread/thread/c433b5bf6f0a7ac1?hl=en debugging template] it has been found that Context is not iterable and can not be inspected conveniently from template.

`${locals()['__data__']}` reveals that local variables are gathered into some kind of list (see __repr__() definition, but Context object is closer to a dictionary. But it is not a dictionary either, because the following prints keys in dict:

`${""\n"".join(dict(a=""zxc"", b=""bsa""))}`

But the same stuff with `locals()['__data__']` produces error:

`${'\n'.join(locals()['__data__'])}`
{{{
File ""m:\p\trac\trac-0.11dev\trac\timeline\templates\timeline.rss"", 
line 19, in <Expression u""'\\n'.join(locals()['__data__'])""> 
  ${'\n'.join(locals()['__data__'])} 
File ""m:\p\trac\genshi-0.5dev\genshi\template\base.py"", line 184, in 
__getitem__ 
  raise KeyError(key) 
}}}",defect,new,major,0.9,General,0.5.1,,,
