changeset 57:884e6c805208

more stubbing for RSS
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 18 Nov 2010 08:32:45 -0800
parents 0cc1af24602b
children 1275124ed767
files decoupage/formats.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage/formats.py
+++ b/decoupage/formats.py
@@ -13,11 +13,17 @@ def format_json(data):
   # fix datetime
   for f in data['files']:
     if 'modified' in f:
       f['modified'] = f['modified'].ctime()
 
   return 'application/json', json.dumps(data['files'])
   
 class RSS(object):
+  """RSS for indices"""
 
-  def __init__(self, n=10):
+  def __init__(self, app, count=10, cascade=False):
+    self.app = app # the decoupage
+    self.count = count
+    self.cascade = cascade
+
+  def __call__(self, request, data):
     pass