Mercurial > hg > decoupage
changeset 54:0e2b9e0507c5
add documentation for formats and a stub
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 18 Nov 2010 08:18:49 -0800 |
parents | 9c15bde43ae6 |
children | 47acf12d01e1 |
files | decoupage/formats.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/decoupage/formats.py Thu Nov 04 18:51:30 2010 -0700 +++ b/decoupage/formats.py Thu Nov 18 08:18:49 2010 -0800 @@ -1,8 +1,13 @@ +""" +pluggable formats for directory listings +""" + try: import json as json except ImportError: import simplejson as json +# TODO: convert this to a class def format_json(data): # fix datetime @@ -11,3 +16,7 @@ return 'application/json', json.dumps(data['files']) +class RSS(object): + + def __init__(self, n=10): + pass