codegooglecom / json-template

Automatically exported from code.google.com/p/json-template
0 stars 0 forks source link

Iteration over dictionary (patch) #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure how you prefer patches. Here's a tiny patch to enable iteration over 
dictionaries.

Original issue reported on code.google.com by jer...@jeromebaum.com on 18 Aug 2012 at 7:05

GoogleCodeExporter commented 9 years ago
My bad, corrected patch attached.

Original comment by jer...@jeromebaum.com on 18 Aug 2012 at 7:11

Attachments:

GoogleCodeExporter commented 9 years ago
I actually added this: 
http://code.google.com/p/json-template/source/browse/jsontemplate_test.py 
(search for PairsFormatter)

It's implemented as formatters on entire sections, which is a bit more general.

I think you may not have the latest release (see the downloads section), which 
I don't think has the TODO about @name and @value.  The downloads section here 
is the best place to get the stable code.

I will document it better at some point, sorry for the duplication.  
doc/Design.txt has some skeletal notes on some new features.

Original comment by andyc...@gmail.com on 20 Aug 2012 at 5:45