changeset 96:21273cdb2047

minor polish
author Jeff Hammel <k0scist@gmail.com>
date Sun, 21 Aug 2016 19:46:00 -0700
parents c0f6a87d4dd8
children a31de0eaf565
files decoupage.ini decoupage/web.py paster-serve.ini
diffstat 3 files changed, 27 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/decoupage.ini	Sun Aug 21 19:39:18 2016 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#!/usr/bin/env paster
-
-[DEFAULT]
-debug = true
-email_to = k0scist@gmail.com
-smtp_server = localhost
-error_email_from = paste@localhost
-
-[server:main]
-use = egg:Paste#http
-host = 0.0.0.0
-port = 5150
-
-[composite:main]
-use = egg:Paste#urlmap
-/ = decoupage
-
-set debug = false
-
-[app:decoupage]
-paste.app_factory = decoupage.factory:factory
-decoupage.directory = %(here)s/example
-decoupage.configuration = %(here)s/example.ini
-decoupage.auto_reload = True
\ No newline at end of file
--- 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)))
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/paster-serve.ini	Sun Aug 21 19:46:00 2016 -0700
@@ -0,0 +1,24 @@
+#!/usr/bin/env paster
+
+[DEFAULT]
+debug = true
+email_to = k0scist@gmail.com
+smtp_server = localhost
+error_email_from = paste@localhost
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 5150
+
+[composite:main]
+use = egg:Paste#urlmap
+/ = decoupage
+
+set debug = false
+
+[app:decoupage]
+paste.app_factory = decoupage.factory:factory
+decoupage.directory = %(here)s/example
+decoupage.configuration = %(here)s/example.ini
+decoupage.auto_reload = True
\ No newline at end of file