changeset 5174:e8d4fabc31e2

SubscribeUser action: fix comments / help
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 02 Oct 2009 21:02:50 +0200
parents b51c4e6efeee
children ece8d64f8a57
files MoinMoin/action/SubscribeUser.py
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SubscribeUser.py	Fri Oct 02 19:54:32 2009 +0200
+++ b/MoinMoin/action/SubscribeUser.py	Fri Oct 02 21:02:50 2009 +0200
@@ -1,9 +1,10 @@
 """
    MoinMoin - Subscribeuser - Action
-   Subscribe a user to a page
+   Subscribe (or unsubscribe) a user to a page.
 
    @copyright: 2003 Daniela Nicklas <nicklas@informatik.uni-stuttgart.de>,
-               2005 MoinMoin:AlexanderSchremmer
+               2005 MoinMoin:AlexanderSchremmer,
+               2009 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.
 """
 
@@ -140,9 +141,13 @@
     if len(args) < 2:
         print >>sys.stderr, """Subscribe users
 
-%(myname)s pagename username[,username[,username[,...]]] [URL]
+%(myname)s pagename [+|-][re:]username[,username[,username[,...]]] [URL]
 
-Subscribes the users to a page.
++username: subscribes user <username> to page <pagename>.
+-username: unsubscribes user <username> from page <pagename>.
++re:username_re: subscribes users who match <username_re> regex.
+-re:username_re: unsubscribes users who match <username_re> regex.
+
 URL is just needed for a farmconfig scenario.
 
 Example: