My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 75: Iteration over dictionary (patch)
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by jer...@jeromebaum.com, Aug 18, 2012
Not sure how you prefer patches. Here's a tiny patch to enable iteration over dictionaries.
Aug 18, 2012
#1 jer...@jeromebaum.com
My bad, corrected patch attached.
dict.patch
595 bytes   View   Download
Aug 19, 2012
Project Member #2 andyc...@gmail.com
I actually added this: https://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.



Powered by Google Project Hosting