Mercurial > hg > TagInTheMiddle
comparison taginthemiddle/middleware.py @ 1:837cfc05d4d9
add times to tags; cant things ever be easy?
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Tue, 04 May 2010 18:46:05 -0700 |
| parents | 1c5cbbde4299 |
| children | 1182315b18ac |
comparison
equal
deleted
inserted
replaced
| 0:1c5cbbde4299 | 1:837cfc05d4d9 |
|---|---|
| 11 from genshi.template import TemplateLoader | 11 from genshi.template import TemplateLoader |
| 12 from lxmlmiddleware import LXMLMiddleware | 12 from lxmlmiddleware import LXMLMiddleware |
| 13 from paste.fileapp import FileApp | 13 from paste.fileapp import FileApp |
| 14 from pkg_resources import resource_filename | 14 from pkg_resources import resource_filename |
| 15 from webob import Request, Response, exc | 15 from webob import Request, Response, exc |
| 16 | |
| 17 # tags have: | |
| 18 # - a list of resources they're applied to | |
| 19 # for now just assume auth is on and that anyone authenticated may tag | |
| 20 | |
| 21 # e.g. a tags file | |
| 22 # foo = /bar /fleem/baz etc | |
| 23 # cats = /cats /blog/mycat | |
| 24 | 16 |
| 25 class Tagger(LXMLMiddleware): | 17 class Tagger(LXMLMiddleware): |
| 26 | 18 |
| 27 # instance defaults | 19 # instance defaults |
| 28 defaults = { 'auto_reload': 'False', | 20 defaults = { 'auto_reload': 'False', |
