changeset 474:6535fed51de5

SubscribeUser: fix: do not put silly path into pythonpath imported from: moin--main--1.5--patch-478
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 17 Mar 2006 07:10:40 +0000
parents c923694dc117
children ad2bc0980876
files ChangeLog MoinMoin/action/SubscribeUser.py
diffstat 2 files changed, 18 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Mar 17 07:04:49 2006 +0000
+++ b/ChangeLog	Fri Mar 17 07:10:40 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-03-17 08:10:40 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-478
+
+    Summary:
+      SubscribeUser: fix: do not put silly path into pythonpath
+    Revision:
+      moin--main--1.5--patch-478
+
+    SubscribeUser: fix: do not put silly path into pythonpath
+    
+
+    modified files:
+     ChangeLog MoinMoin/action/SubscribeUser.py
+
+
 2006-03-17 08:04:49 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-477
 
     Summary:
--- a/MoinMoin/action/SubscribeUser.py	Fri Mar 17 07:04:49 2006 +0000
+++ b/MoinMoin/action/SubscribeUser.py	Fri Mar 17 07:10:40 2006 +0000
@@ -9,7 +9,7 @@
 """
 
 import sys, os
-sys.path.append("YOUR CONFIG DIRECTORY HERE")
+#sys.path.append("YOUR CONFIG DIRECTORY HERE")
 
 from MoinMoin import wikiutil
 from MoinMoin.Page import Page
@@ -39,9 +39,8 @@
     formatter = Formatter(request)
     
     result = subscribe_users(request, request.form['users'][0].split(","), pagename, formatter)
+    request.write(result)
 
-    # print result
-    request.write(result)
     wikiutil.send_footer(request, pagename)
 
 
@@ -119,10 +118,11 @@
 
     # Setup MoinMoin environment
     from MoinMoin.request import RequestCLI
-    request = RequestCLI(url = request_url)
+    request = RequestCLI(url=request_url)
     request.form = request.args = request.setup_args()
 
     from MoinMoin.formatter.text_plain import Formatter
     formatter = Formatter(request)
 
     print subscribe_users(request, usernames.split(","), pagename, formatter)
+