Attachment 'action__init__.diff'

Download

   1 --- __init__old.py	2006-12-09 13:32:00.000000000 +0100
   2 +++ __init__.py	2006-12-10 12:28:40.000000000 +0100
   3 @@ -276,9 +276,14 @@
   4  
   5  def do_userform(pagename, request):
   6      """ save data posted from UserPreferences """
   7 +    _ = request.getText
   8      from MoinMoin import userform
   9      savemsg = userform.savedata(request)
  10 -    Page(request, pagename).send_page(request, msg=savemsg)
  11 +    if (savemsg == _("User account created! You can use this account to login now...")) and (request.cfg.show_welcome == True):
  12 +        welcomeuserpage = wikiutil.getSysPage(request, "WelcomeUser")
  13 +        request.http_redirect(welcomeuserpage.url(request, escape=0, relative=False))
  14 +    else:
  15 +        Page(request, pagename).send_page(request, msg=savemsg)
  16  
  17  # Dispatching ----------------------------------------------------------------
  18  def getNames(cfg):

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-12-10 21:02:59, 1.9 KB) [[attachment:CreateUserHomepage.py]]
  • [get | view] (2006-12-10 16:08:04, 0.6 KB) [[attachment:CurrentUser.py]]
  • [get | view] (2006-12-10 16:09:19, 1.1 KB) [[attachment:MissingHomePage.txt]]
  • [get | view] (2007-01-18 20:32:31, 1.5 KB) [[attachment:ToggleWelcome.py]]
  • [get | view] (2007-01-08 16:09:44, 3.3 KB) [[attachment:User.py]]
  • [get | view] (2007-01-18 20:32:07, 2.1 KB) [[attachment:WelcomeUser.txt]]
  • [get | view] (2006-12-10 16:07:27, 0.8 KB) [[attachment:action__init__.diff]]
  • [get | view] (2006-12-10 16:07:10, 0.5 KB) [[attachment:multiconfig.diff]]
  • [get | view] (2007-01-18 20:31:25, 1.3 KB) [[attachment:request_init_.diff]]
  • [get | view] (2007-01-20 22:14:41, 1.2 KB) [[attachment:togglewelcome.py]]
  • [get | view] (2007-01-18 20:31:07, 0.7 KB) [[attachment:user.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.