diff MoinMoin/wikimacro.py @ 138:81654a482b3a

Added createonly parameter to UserPreferences macro and userform action; moved mailAccountData to the user object; extended SystemAdmin to offer 'send acount data' links; fixed minor quoting problem in Page.link_to() imported from: moin--main--1.5--patch-140
author Florian Festi <Florian.Festi@trick.informatik.uni-stuttgart.de>
date Tue, 25 Oct 2005 16:31:32 +0000
parents e51cb51522d1
children bea43f99cc27
line wrap: on
line diff
--- a/MoinMoin/wikimacro.py	Sun Oct 23 20:36:07 2005 +0000
+++ b/MoinMoin/wikimacro.py	Tue Oct 25 16:31:32 2005 +0000
@@ -537,7 +537,15 @@
 
     def _macro_UserPreferences(self, args):
         from MoinMoin import userform
-        return self.formatter.rawHTML(userform.getUserForm(self.request))
+
+        create_only = False
+        if isinstance(args, unicode):
+            args = args.strip(" '\"")
+            create_only = (args.lower()=="createonly")
+
+        return self.formatter.rawHTML(userform.getUserForm(
+            self.request,
+            create_only=create_only))
 
     def _macro_Anchor(self, args):
         return self.formatter.anchordef(args or "anchor")