comparison taginthemiddle/middleware.py @ 6:8fb20b780341

correct and document middleware class defaults
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 05 May 2010 22:12:25 -0700
parents 1182315b18ac
children 1701e5b0b0eb
comparison
equal deleted inserted replaced
5:bf4c763b0313 6:8fb20b780341
17 class Tagger(LXMLMiddleware): 17 class Tagger(LXMLMiddleware):
18 18
19 # instance defaults 19 # instance defaults
20 defaults = { 'auto_reload': 'False', 20 defaults = { 'auto_reload': 'False',
21 'template_dirs': '', 21 'template_dirs': '',
22 'patterns': '*' 22 'patterns': '*', # glob pattern: all URLs by default
23 'tags_file': None, 23 'tags_file': None,
24 'tags_url': 'tags', 24 'tags_url': 'tags', # base URL for viewing tags
25 'post_url': '.tags', 25 'post_url': '.tags', # sub-URL for posting tags
26 'author': None, # for RSS 26 'author': None, # for RSS
27 } 27 }
28 28
29 def __init__(self, app, **kw): 29 def __init__(self, app, **kw):
30 self.app = app 30 self.app = app