changeset 2585:195b134c71f9

wikiconfig.py: simplify static file serving setup code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 24 Mar 2014 14:41:38 +0100
parents 27f723a2b22a
children 2c54228b0cbe
files wikiconfig.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wikiconfig.py	Sat Mar 22 13:45:23 2014 -0700
+++ b/wikiconfig.py	Mon Mar 24 14:41:38 2014 +0100
@@ -73,7 +73,7 @@
     for mod_name in mod_names:
         mod = getattr(pkg, mod_name)
         xs = XStatic(mod, root_url='/static', provider='local', protocol='http')
-        serve_files.update([(xs.name, xs.base_dir)])
+        serve_files[xs.name] = xs.base_dir
 
     # list of admin emails
     admin_emails = []