moinsetup

Changeset

19:76eca0704c6b
2010-06-08 Paul Boddie raw files shortlog changelog graph Changed the moinsetup.py script to require a method argument. Added a regular expression for parsing CSS imports. Added some notes about Xapian.
TO_DO.txt (file) moinsetup.py (file)
     1.1 --- a/TO_DO.txt	Mon Jun 07 01:18:35 2010 +0200
     1.2 +++ b/TO_DO.txt	Tue Jun 08 00:59:33 2010 +0200
     1.3 @@ -1,8 +1,14 @@
     1.4 +Perhaps switch to a configuration file for all the parameters.
     1.5  Avoid reconfiguration of existing moin script.
     1.6  Site directory detection.
     1.7  Enabled/available site listings.
     1.8  HTTP user integration and Apache user/group file editing.
     1.9 -Support Xapian search.
    1.10 +Support Xapian search and configuration.
    1.11 +  xapian_search = 1
    1.12 +  sudo -u www-data moin/bin/moin --config-dir=hgwiki/conf/ --wiki-url=http://localhost/hgwiki/ index build --mode=rebuild
    1.13 +  Perhaps configure and install Xapian plus bindings.
    1.14 +  ./configure --prefix={$moin-prefix} && make && make install
    1.15 +  ./configure --with-python --prefix={$moin-prefix} XAPIAN_CONFIG={$moin-prefix}/bin/xapian-config PYTHON_LIB={$moin-prefix}/lib/python2.5/site-packages && make && make install
    1.16  Support OpenID and other authentication methods.
    1.17    Remember anonymous_session_lifetime for 1.8.x and cookie_lifetime for 1.9.x.
    1.18  Support integration of additional theme material with themes.
     2.1 --- a/moinsetup.py	Mon Jun 07 01:18:35 2010 +0200
     2.2 +++ b/moinsetup.py	Tue Jun 08 00:59:33 2010 +0200
     2.3 @@ -19,6 +19,8 @@
     2.4  moin_cgi_fix_script_name = compile_definition("fix_script_name")
     2.5  moin_cgi_force_cgi       = re.compile("^#(os.environ\['FCGI_FORCE_CGI'\].*)$", re.MULTILINE)
     2.6  
     2.7 +css_import_stylesheet    = re.compile("^(\s*@import\s+[\"'])(.*?)([\"'].*)$", re.MULTILINE)
     2.8 +
     2.9  # Templates for Apache site definitions.
    2.10  
    2.11  apache_site = """
    2.12 @@ -705,7 +707,7 @@
    2.13  
    2.14  # Command line option syntax.
    2.15  
    2.16 -syntax_description = "<argument> ... [ --method=METHOD [ <method-argument> ... ] ]"
    2.17 +syntax_description = "<argument> ... --method=METHOD [ <method-argument> ... ]"
    2.18  
    2.19  # Main program.
    2.20