moinsetup

Changeset

52:5fcdbeb48edc
2011-10-10 Paul Boddie raw files shortlog changelog graph Added an event handler installation method. Updated the release notes and tidied the "to do" file. rel-0-3
README.txt (file) TO_DO.txt (file) moinsetup.py (file)
     1.1 --- a/README.txt	Sun Oct 09 01:44:13 2011 +0200
     1.2 +++ b/README.txt	Mon Oct 10 01:10:37 2011 +0200
     1.3 @@ -299,6 +299,7 @@
     1.4    * Added support for Wiki farms, separate library/site-packages directories,
     1.5      and site identifiers (based on site names).
     1.6    * Improved the MoinMoin version detection.
     1.7 +  * Added an event handler installation action.
     1.8  
     1.9  New in moinsetup 0.2 (Changes since moinsetup 0.1)
    1.10  --------------------------------------------------
     2.1 --- a/TO_DO.txt	Sun Oct 09 01:44:13 2011 +0200
     2.2 +++ b/TO_DO.txt	Mon Oct 10 01:10:37 2011 +0200
     2.3 @@ -1,23 +1,32 @@
     2.4  Provide limited hosting environment site descriptions.
     2.5    Currently, the test for limited hosting is a lack of a site descriptions directory.
     2.6 +
     2.7  Add support for changing the wikis list in the farmconfig module.
     2.8 +
     2.9  Support existing MoinMoin home directory installations into ~/lib/python2.x/MoinMoin.
    2.10    This affects the page package installation function which expects to find
    2.11    MoinMoin/packages.py inside site-packages. Running "python -m" only works with
    2.12    modules on Python 2.4 (although MoinMoin/packages seems to work) and appears to
    2.13    confuse Python's import path on later versions (even if MoinMoin.packages is used).
    2.14 +
    2.15  Avoid reconfiguration of existing moin script.
    2.16 +
    2.17  Site directory detection.
    2.18 +
    2.19  Enabled/available site listings.
    2.20 +
    2.21  HTTP user integration and Apache user/group file editing.
    2.22 +
    2.23  Support Xapian search and configuration.
    2.24    xapian_search = 1
    2.25    sudo -u www-data moin/bin/moin --config-dir=hgwiki/conf/ --wiki-url=http://localhost/hgwiki/ index build --mode=rebuild
    2.26    Perhaps configure and install Xapian plus bindings.
    2.27    ./configure --prefix={$moin-prefix} && make && make install
    2.28    ./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
    2.29 +
    2.30  Support OpenID provision (http://moinmo.in/HelpOnOpenIDProvider):
    2.31    openid_server_enabled = True
    2.32    openid_server_enable_user = True # optional, for nominating pages as user OpenID URLs
    2.33    openid_server_restricted_users_group = None # or a group name for OpenID users
    2.34 +
    2.35  Support integration of additional theme material with themes.
     3.1 --- a/moinsetup.py	Sun Oct 09 01:44:13 2011 +0200
     3.2 +++ b/moinsetup.py	Mon Oct 10 01:10:37 2011 +0200
     3.3 @@ -312,6 +312,7 @@
     3.4          "install_actions",
     3.5          "install_macros",
     3.6          "install_parsers",
     3.7 +        "install_event_handlers",
     3.8          "install_theme_resources",
     3.9          "edit_theme_stylesheet",
    3.10  
    3.11 @@ -1233,10 +1234,16 @@
    3.12  
    3.13      def install_parsers(self, parsers_dir):
    3.14  
    3.15 -        "Install Wiki macros provided in the given 'parsers_dir'."
    3.16 +        "Install Wiki parsers provided in the given 'parsers_dir'."
    3.17  
    3.18          self.install_plugins(parsers_dir, "parser")
    3.19  
    3.20 +    def install_event_handlers(self, events_dir):
    3.21 +
    3.22 +        "Install Wiki event handlers provided in the given 'events_dir'."
    3.23 +
    3.24 +        self.install_plugins(events_dir, "events")
    3.25 +
    3.26      def install_theme_resources(self, theme_resources_dir, theme_name=None):
    3.27  
    3.28          """