changeset 6:8fb20b780341

correct and document middleware class defaults
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 05 May 2010 22:12:25 -0700
parents bf4c763b0313
children 52208e38e5b3
files taginthemiddle/middleware.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/taginthemiddle/middleware.py
+++ b/taginthemiddle/middleware.py
@@ -14,20 +14,20 @@ from paste.fileapp import FileApp
 from pkg_resources import resource_filename
 from webob import Request, Response, exc
 
 class Tagger(LXMLMiddleware):
 
     # instance defaults
     defaults = { 'auto_reload': 'False',
                  'template_dirs': '',
-                 'patterns': '*'
-                 'tags_file': None,
-                 'tags_url': 'tags',
-                 'post_url': '.tags',
+                 'patterns': '*', # glob pattern: all URLs by default
+                 'tags_file': None, 
+                 'tags_url': 'tags', # base URL for viewing tags
+                 'post_url': '.tags', # sub-URL for posting tags
                  'author': None, # for RSS
                  }
 
     def __init__(self, app, **kw):
         self.app = app
 
         # set instance parameters from kw and defaults
         for key in self.defaults: