Commits

Anonymous committed 42d24d1

Clean out unused code & inconsistent spacing.

  • Participants
  • Parent commits fe7f4d7

Comments (0)

Files changed (1)

 
     def title(self, d):
         """ Assemble the title
-        
+
         @param d: parameter dictionary
         @rtype: string
         @return: title html
         else:
             content = wikiutil.escape(d['title_text'])
 
-	args = {}
-	args['title'] = content
+        args = {}
+        args['title'] = content
         args['blank'] = self.img_url('blank.gif')
-	args['dot_left'] = self.img_url('winehq_border_dot_left.gif')
+        args['dot_left'] = self.img_url('winehq_border_dot_left.gif')
         args['top_left'] = self.img_url('winehq_border_top_left.gif')
         args['bottom_left'] = self.img_url('winehq_border_bottom_left.gif')
-	args['dot_right'] = self.img_url('winehq_border_dot_right.gif')
+        args['dot_right'] = self.img_url('winehq_border_dot_right.gif')
         args['top_right'] = self.img_url('winehq_border_top_right.gif')
         args['bottom_right'] = self.img_url('winehq_border_bottom_right.gif')
 
       </tr>
     </table>
 '''
-        html1 = '<div id="pagetitle"><h1>%(title)s</h1></div'
 
         return html % args
 
         """ Assemble the msg display
 
         Display a message with a widget or simple strings with a clear message link.
-        
+
         @param d: parameter dictionary
         @rtype: unicode
         @return: msg display html
             close = d['page'].link_to(self.request,
                                       text=_('Clear message'),
                                       querystr={'action': 'show'})
-            html = u'<p>%s (<span class="buttons">%s</span>)</p>\n' % (msg, close) 
+            html = u'<p>%s (<span class="buttons">%s</span>)</p>\n' % (msg, close)
         else:
             # msg is a widget
             html = msg.render()
     def searchform(self, d):
         """
         assemble HTML code for the search forms
-        
+
         @param d: parameter dictionary
         @rtype: unicode
         @return: search form html
 
         Display on existing page. Replace iconbar, showtext, edit text,
         refresh cache and available actions.
-        
+
         @param d: parameter dictionary
         @rtype: unicode
         @return: iconbar html
         """
-        page = d['page']       
+        page = d['page']
         if not self.shouldShowEditbar(page):
             return ''
 
         quotedname = wikiutil.quoteWikinameURL(page.page_name)
         links = []
         add = links.append
- 
+
         # Parent page
         parent = page.getParentPage()
         if parent:
-           add(parent.link_to(request, _("Show Parent", formatted=False))) 
-        
+           add(parent.link_to(request, _("Show Parent", formatted=False)))
+
         available = request.getAvailableActions(page)
 
         # Page actions
         if page.isWritable() and request.user.may.write(page.page_name):
             add(link(request, quotedname + '?action=edit', _('Edit')))
         else:
-            add(_('Immutable Page', formatted=False))              
-        
+            add(_('Immutable Page', formatted=False))
+
         add(link(request, quotedname + '?action=diff',
                  _('Show Changes', formatted=False)))
         add(link(request, quotedname + '?action=info',
         if page.canUseCache():
             add(link(request, quotedname + '?action=refresh',
                      _('Delete Cache', formatted=False)))
-        
+
         # Format
         items = '\n'.join(['<li>%s</li>' % item for item in links if item != ''])
         html = u'<ul id="editbar">\n%s\n</ul>\n' % items
-        
+
         # cache for next call
         self._cache[cacheKey] = html
         return html
-        
+
     def sidetitle(self, title):
         _ = self.request.getText
 
-	args = {}
-	args['title'] = title
+        args = {}
+        args['title'] = title
         args['blank'] = self.img_url('blank.gif')
-	args['dot_right'] = self.img_url('winehq_border_dot_right.gif')
+        args['dot_right'] = self.img_url('winehq_border_dot_right.gif')
         args['top_right'] = self.img_url('winehq_border_top_right.gif')
         args['bottom_right'] = self.img_url('winehq_border_bottom_right.gif')
 
       </tr>
     </table>
 '''
-        html1 = '''
-    <table width="100%%" border="0" cellpadding="0" cellspacing="0" class="sidetitle">
-      <tr>
-        <td width="100%%" align="left"><h1>&nbsp; %(title)s</h1></td>
-        <td>
-          <table width="100%%" border="0" cellpadding="0" cellspacing="0" class="sidetitle">
-            <tr>
-              <td><img src="%(top_right)s" width="6" height="9" border="0" alt=""></td>
-            </tr>
-            <tr>
-              <td><img src="%(blank)s" width="1" height="1" border="0" alt=""></td>
-            </tr>
-            <tr>
-              <td valign="bottom" align="right"><img src="%(bottom_right)s" width="6" height="9" border="0" alt=""></td>
-            </tr>
-          </table>
-        </td>
-      </tr>
-    </table>
-'''
 
-        html1 = '''
-    <table width="100%%" border="0" cellpadding="0" cellspacing="0" class="sidetitle">
-      <tr>
-        <td width="100%%" rowspan="1" align="left"><h1>&nbsp; %(title)s</h1></td>
-        <td rowspan="3" valign="middle" align="right"></td>
-        <td valign="top" align="left"></td>
-      </tr>
-      <tr>
-        <td></td>
-      </tr>
-      <tr>
-        <td valign="bottom" align="right"></td>
-      </tr>
-    </table>
-'''
         return html % args
 
     def winepanel(self, d):
             u'</div>',
             ]
         return u'\n'.join(html)
-    
+
     def pagepanel(self, d):
         """ Create page panel """
         _ = self.request.getText
                 u'</div>',
                 ]
             return u'\n'.join(html)
-        return ''   
-        
+        return ''
+
     def userpanel(self, d):
         """ Create user panel """
         request = self.request
     def header(self, d):
         """
         Assemble page header
-        
+
         @param d: parameter dictionary
         @rtype: string
         @return: page header html
             u'<div id="header">',
             self.logo(),
             u'</div>',
-            
+
             # Custom html below header (not recomended!)
             self.emit_custom_html(self.cfg.page_header2),
 
             u'<div id="pagecontent"%s>' % self.content_lang_attr(),
             ]
         return u'\n'.join(html)
-    
+
     def footer(self, d, **keywords):
         """ Assemble page footer
-        
+
         @param d: parameter dictionary
         @keyword ...:...
         @rtype: string
             u'</div> <!-- end pagebar -->',
             u'  </tr>',
             u'</table>',
-            
+
             # Custom html above footer
             self.emit_custom_html(self.cfg.page_footer1),
-            
+
             # And bellow
             self.emit_custom_html(self.cfg.page_footer2),
             ]
 def execute(request):
     """
     Generate and return a theme object
-        
+
     @param request: the request object
     @rtype: MoinTheme
     @return: Theme object