diff MoinMoin/PageGraphicalEditor.py @ 2286:01f05e74aa9c

Big PEP8 and whitespace cleanup
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Jul 2007 23:33:20 +0200
parents 4e528d291fc0
children 5092edd82058 388204baf00f
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Mon Jul 02 20:46:01 2007 +0200
+++ b/MoinMoin/PageGraphicalEditor.py	Mon Jul 02 23:33:20 2007 +0200
@@ -173,11 +173,11 @@
             if request.user.may.read(template_page):
                 raw_body = Page(request, template_page).get_raw_body()
                 if raw_body:
-                    request.write(_("[Content of new page loaded from %s]") % (template_page,), '<br>')
+                    request.write(_("[Content of new page loaded from %s]") % (template_page, ), '<br>')
                 else:
-                    request.write(_("[Template %s not found]") % (template_page,), '<br>')
+                    request.write(_("[Template %s not found]") % (template_page, ), '<br>')
             else:
-                request.write(_("[You may not read %s]") % (template_page,), '<br>')
+                request.write(_("[You may not read %s]") % (template_page, ), '<br>')
 
         # Make backup on previews - but not for new empty pages
         if not use_draft and preview and raw_body:
@@ -220,7 +220,7 @@
 
         # Generate default content for new pages
         if not raw_body:
-            raw_body = _('Describe %s here.') % (self.page_name,)
+            raw_body = _('Describe %s here.') % (self.page_name, )
 
         # send form
         request.write('<form id="editor" method="post" action="%s/%s#preview">' % (
@@ -236,12 +236,12 @@
         request.write(unicode(html.INPUT(type="hidden", name="action", value="edit")))
 
         # Send revision of the page our edit is based on
-        request.write('<input type="hidden" name="rev" value="%d">' % (rev,))
+        request.write('<input type="hidden" name="rev" value="%d">' % (rev, ))
 
         # Add src format (e.g. 'wiki') into a hidden form field, so that
         # we can load the correct converter after POSTing.
         request.write('<input type="hidden" name="format" value="%s">' % self.pi['format'])
-        
+
         # Create and send a ticket, so we can check the POST
         request.write('<input type="hidden" name="ticket" value="%s">' % wikiutil.createTicket(request))
 
@@ -271,7 +271,7 @@
 <input class="button" type="submit" name="button_save" value="%s">
 <input class="button" type="submit" name="button_preview" value="%s">
 <input class="button" type="submit" name="button_switch" value="%s">
-''' % (save_button_text, _('Preview'), _('Text mode'),))
+''' % (save_button_text, _('Preview'), _('Text mode'), ))
 
         if loadable_draft:
             request.write('''
@@ -284,7 +284,7 @@
 %s
 <input class="button" type="submit" name="button_cancel" value="%s">
 <input type="hidden" name="editor" value="gui">
-''' % (button_spellcheck, cancel_button_text,))
+''' % (button_spellcheck, cancel_button_text, ))
 
         self.sendconfirmleaving() # TODO update state of flgChange to make this work, see PageEditor