comparison 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
comparison
equal deleted inserted replaced
137:cfbecd3400d3 138:81654a482b3a
535 return self.__get_Date(args, self.request.user.getFormattedDateTime) 535 return self.__get_Date(args, self.request.user.getFormattedDateTime)
536 536
537 537
538 def _macro_UserPreferences(self, args): 538 def _macro_UserPreferences(self, args):
539 from MoinMoin import userform 539 from MoinMoin import userform
540 return self.formatter.rawHTML(userform.getUserForm(self.request)) 540
541 create_only = False
542 if isinstance(args, unicode):
543 args = args.strip(" '\"")
544 create_only = (args.lower()=="createonly")
545
546 return self.formatter.rawHTML(userform.getUserForm(
547 self.request,
548 create_only=create_only))
541 549
542 def _macro_Anchor(self, args): 550 def _macro_Anchor(self, args):
543 return self.formatter.anchordef(args or "anchor") 551 return self.formatter.anchordef(args or "anchor")
544 552
545 def _macro_MailTo(self, args): 553 def _macro_MailTo(self, args):