Description

This is not code you should do in practise this way. There is some nonsense linebreak. It is only here done this way for demonstration purposes.

(!) Please note that this is a complete bug report page, but it doesn't get displayed completely because of the python stdlib parser crashing.

   1     'ticket' : ticket,
   2     'option': ''.join(html),
   3     'len': min(len(revlist), 5)}
   4 
   5 def execute(pagename, request):
   6     _ = request.getText
   7     page = Page(request, pagename)
   8     if not request.user.may.read(pagename):
   9         return page.send_page(
  10                 msg= _('''
  11 You are not allowed to read this page.'''))
  12 
  13     if (request.form.has_key('button') \
  14         and request.form.has_key('ticket')):
  15         if not wikiutil.checkTicket(request, \
  16                                     request.form['ticket'][0]):
  17             return page.send_page(request, \
  18              msg = _('''
  19 Please use the interactive user interface!'''))
  20         rev =  long((request.form.get('revision', ['-1'])[0]))
  21         return Page(request, pagename, rev=rev).send_page()
  22     ticket = wikiutil.createTicket(request)
  23     revlist = page.getRevList()
  24     msg = form_html(ticket, revlist)
  25     page.send_page(msg=msg)

Steps to reproduce

  1. do this...

Example

Component selection

Details

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/PythonParserIndentingTrouble (last edited 2008-03-19 15:06:07 by ReimarBauer)