diff wikiserverconfig.py @ 4613:e7f1cf9eeb96

Static file serving built-in (see details below). Moved wiki/htdocs to MoinMoin/web/static/htdocs. MoinMoin.web.static has a static file serving wrapper that uses the files from htdocs subdirectory by default (docs=True). You can also give another path or switch off creation of that static wrapper. See the docstring of the static package for details. distutils had a major problem after I wanted it to just include everything below MoinMoin/web/static/htdocs - if you try to just use a glob ('htdocs/*'), it breaks distutils at 'setup.py install' time, because that glob matches directories and distutils only expects files. Therefore I added make_filelist to setup.py which creates just a list of all files below some specified directory.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 03:02:57 +0100
parents edb6cb2cac43
children 0e7c007f8ed9
line wrap: on
line diff
--- a/wikiserverconfig.py	Sat Feb 28 22:35:16 2009 +0100
+++ b/wikiserverconfig.py	Sun Mar 01 03:02:57 2009 +0100
@@ -17,8 +17,12 @@
     # use '' for all interface or "1.2.3.4" for some specific IP
     #interface = 'localhost'
 
-    # where the static data is served from:
-    #docs = "/usr/share/moin/htdocs"
+    # where the static data is served from - you can either use:
+    # docs = True  # serve the builtin static data from MoinMoin/web/static/htdocs
+    # docs = '/where/ever/you/like/to/keep/htdocs'  # serve it from the given path
+    # docs = False  # do not serve static files at all (will not work except
+    #               # you serve them in some other working way)
+    docs = True
 
     # tuning options:
     #serverClass = 'ThreadPoolServer'