Attachment 'request_init_.diff'

Download

   1 --- __init__old.py	2007-01-14 15:34:48.000000000 +0100
   2 +++ __init__.py	2007-01-18 18:03:10.000000000 +0100
   3 @@ -1088,7 +1088,14 @@
   4                  page = wikiutil.getSysPage(self, 'UserPreferences')
   5                  page.send_page(self, msg=msg)
   6  
   7 -            # 2. Or jump to page where user left off
   8 +            # 2. If show_welcome for new users is activated in wikiconfig.py
   9 +            # and user hasn't turned of welcome page as starting page, show WelcomeUser page
  10 +            elif not pagename and self.cfg.show_welcome and self.user.show_welcome:
  11 +                welcome = wikiutil.getSysPage(self, 'WelcomeUser').url(self, escape=0, relative=False)
  12 +                self.http_redirect(welcome)
  13 +                return self.finish()
  14 +                
  15 +            # 3. Or jump to page where user left off
  16              elif not pagename and self.user.remember_last_visit:
  17                  pagetrail = self.user.getTrail()
  18                  if pagetrail:
  19 @@ -1104,7 +1111,7 @@
  20                  self.http_redirect(url)
  21                  return self.finish()
  22  
  23 -            # 3. Or handle action
  24 +            # 4. Or handle action
  25              else:
  26                  # pagename could be empty after normalization e.g. '///' -> ''
  27                  # Use localized FrontPage if pagename is empty

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.