Mercurial > hg > decoupage
diff decoupage/web.py @ 96:21273cdb2047
minor polish
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 21 Aug 2016 19:46:00 -0700 |
parents | c5895d87c65e |
children | abf23c2e4e82 |
line wrap: on
line diff
--- a/decoupage/web.py Sun Aug 21 19:39:18 2016 -0700 +++ b/decoupage/web.py Sun Aug 21 19:46:00 2016 -0700 @@ -35,6 +35,7 @@ transformers = transformers() string = (str, unicode) + class Decoupage(object): ### class level variables @@ -120,6 +121,7 @@ ### methods dealing with HTTP def __call__(self, environ, start_response): + """WSGI application""" # boilerplate: request and filename request = Request(environ) @@ -181,7 +183,7 @@ ### build data dictionary # TODO: separate these out into several formatters files = self.filedata(path, directory, conf) - data = {'path': path, 'files': files, 'request': request } + data = {'path': path, 'files': files, 'request': request} # add a function to get the path to files data['filepath'] = lambda *segments: os.path.join(*([directory] + list(segments)))