diff src/server/server.py @ 704:5319110a862c

server_side: static blog uses the default template
author souliane <souliane@mailoo.org>
date Thu, 04 Jun 2015 12:39:27 +0200
parents c2f22ca12e23
children 531eacb82e9f
line wrap: on
line diff
--- a/src/server/server.py	Thu Jun 04 11:56:34 2015 +0200
+++ b/src/server/server.py	Thu Jun 04 12:39:27 2015 +0200
@@ -1057,7 +1057,7 @@
             coerceDataDir(self.data_dir)  # this is not done when using the default value
 
         self.html_dir = os.path.join(self.data_dir, C.HTML_DIR)
-        self.server_css_dir = os.path.join(self.data_dir, C.SERVER_CSS_DIR)
+        self.themes_dir = os.path.join(self.data_dir, C.THEMES_DIR)
 
         self._cleanup = []
 
@@ -1107,7 +1107,7 @@
             putChild('upload_radiocol', _upload_radiocol)
             putChild('upload_avatar', _upload_avatar)
             putChild('blog', MicroBlog(self))
-            putChild('css', ProtectedFile(self.server_css_dir))
+            putChild('themes', ProtectedFile(self.themes_dir))
             putChild(os.path.dirname(C.MEDIA_DIR), ProtectedFile(self.media_dir))
             putChild(os.path.dirname(C.AVATARS_DIR), ProtectedFile(os.path.join(self.local_dir, C.AVATARS_DIR)))
             putChild('radiocol', ProtectedFile(_upload_radiocol.getTmpDir(), defaultType="audio/ogg"))  # We cheat for PoC because we know we are on the same host, so we use directly upload dir