# HG changeset patch # User Jeff Hammel # Date 1290097129 28800 # Node ID 0e2b9e0507c5de7a6186eb6d218e9ec1e50da528 # Parent 9c15bde43ae6db6e0a1119e2d373beee46ce4e50 add documentation for formats and a stub diff -r 9c15bde43ae6 -r 0e2b9e0507c5 decoupage/formats.py --- 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