# HG changeset patch # User Jeff Hammel # Date 1344062905 25200 # Node ID 9fac583485203c485518f595efde8f608a23623b # Parent 4094bee1315439504fc7142402d9cdbf67f1af1f whitespace cleanup diff -r 4094bee13154 -r 9fac58348520 decoupage/web.py --- a/decoupage/web.py Fri Aug 03 23:46:29 2012 -0700 +++ b/decoupage/web.py Fri Aug 03 23:48:25 2012 -0700 @@ -198,7 +198,7 @@ # render the template template = conf.get('/template') - local_index = False + local_index = False if template is None: if 'index.html' in [ f['name'] for f in files ]: local_index = os.path.join(directory, 'index.html') @@ -251,7 +251,7 @@ if filetype == 'file': data['size'] = os.path.getsize(filepath) files.append(data) - + # TODO: deal with other links in conf for i in conf: if i in filenames or i.startswith('/'): @@ -260,7 +260,7 @@ files.append({'path': i, 'name': i, 'type': link}) - + for f in files: f['description'] = conf.get(f['name'], None) @@ -304,7 +304,7 @@ parent_configuration = self.conf(inherit_directory) for key, value in parent_configuration.items(): if key.startswith('/') and key not in conf: - conf[key] = value + conf[key] = value # cache configuration if not self.auto_reload: @@ -320,5 +320,5 @@ if key.startswith('/'): key = key[1:] if key in self.formatters: - formatter = self.formatters[key](value) + formatter = self.formatters[key](value)