Mercurial > hg > decoupage
view decoupage/formats.py @ 53:9c15bde43ae6
dont capitalize unimportant words
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 04 Nov 2010 18:51:30 -0700 |
parents | ac693b8df32c |
children | a2f09d749a3f 0e2b9e0507c5 |
line wrap: on
line source
try: import json as json except ImportError: import simplejson as json def format_json(data): # fix datetime for f in data['files']: f['modified'] = f['modified'].ctime() return 'application/json', json.dumps(data['files'])