Attachment 'solenoid_iso-191.py.patch'

Download

   1 133a134,165
   2 >     _showApproveLink = None
   3 >     def approved(self, d):
   4 >         page = d['page']
   5 >         
   6 >         # check whether page exists at all
   7 >         if not page.exists():
   8 >             return ""
   9 > 
  10 >         # check whether or not to display the "Approve" action link
  11 >         if page.get_real_rev() == page.getRevList()[0]:
  12 >             self._showApproveLink = True
  13 >         else:
  14 >             self._showApproveLink = False
  15 > 
  16 >         # return the page's approval status
  17 >         return page.getApprovalMessage()
  18 > 
  19 > 
  20 >     def approveLink(self, page):
  21 >         """ Return approve link to valid users
  22 > 
  23 >         @rtype: unicode
  24 >         @return: approve link
  25 >         """
  26 >         _ = self.request.getText
  27 > 
  28 >         #if user has perms
  29 >         title = _("Approve")
  30 >         quotedname = wikiutil.quoteWikinameURL(page.page_name)
  31 >         return page.link_to(self.request, text=_('Approve', formatted=False), querystr='action=ApprovePage')
  32 > 
  33 > 
  34 254a287
  35 >             self.approved(d),
  36 282c315
  37 <                     return u'<span id="pagelocation">%s: %s</span>' % (_('Page Name'), page_path)
  38 ---
  39 >                     return u'<span id="pagelocation">%s: %s</span> <br> %s' % (_('Page Name'), page_path, self.approved(d))
  40 346a380,382
  41 >         if (self._showApproveLink == True) and (self.request.user.may.approve(page.page_name)):
  42 >           result.append(self.approveLink(page))
  43 > 

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] (2010-02-05 17:13:18, 2.6 KB) [[attachment:ApprovePage-191.py]]
  • [get | view] (2005-10-18 14:16:34, 2.8 KB) [[attachment:ApprovePage.py]]
  • [get | view] (2005-11-08 14:48:57, 2.9 KB) [[attachment:ApprovePage.py-20050811]]
  • [get | view] (2005-11-08 14:51:44, 2.9 KB) [[attachment:ApprovePage.py-20050811-2]]
  • [get | view] (2010-11-18 09:43:04, 7.1 KB) [[attachment:Page.diff-v193-18112010]]
  • [get | view] (2010-02-05 17:15:25, 78.1 KB) [[attachment:Page.py]]
  • [get | view] (2010-11-18 09:41:22, 79.2 KB) [[attachment:Page.py-v193-18112010]]
  • [get | view] (2010-02-05 17:15:58, 4.3 KB) [[attachment:Page.py.patch]]
  • [get | view] (2008-02-12 01:09:14, 4.3 KB) [[attachment:PageApproval.diff]]
  • [get | view] (2010-02-05 17:25:50, 21.4 KB) [[attachment:approval-history.png]]
  • [get | view] (2010-11-18 10:19:10, 2.4 KB) [[attachment:approvePage.py-v193-18112010]]
  • [get | view] (2006-12-04 21:40:20, 3.0 KB) [[attachment:approvepage2.py]]
  • [get | view] (2005-10-18 14:17:03, 4.5 KB) [[attachment:modern.py]]
  • [get | view] (2010-11-18 09:42:23, 3.8 KB) [[attachment:modern_iso.diff-v193-18112010]]
  • [get | view] (2005-11-08 14:48:07, 4.6 KB) [[attachment:modern_iso.py]]
  • [get | view] (2010-11-18 09:40:06, 6.2 KB) [[attachment:modern_iso.py-v193-18112010]]
  • [get | view] (2006-12-04 21:40:00, 4.9 KB) [[attachment:modern_iso2.py]]
  • [get | view] (2010-11-18 09:40:39, 15.0 KB) [[attachment:modernized_iso.py-v193-18112010]]
  • [get | view] (2006-12-04 21:40:39, 1.5 KB) [[attachment:page.diff]]
  • [get | view] (2010-11-18 10:10:42, 7.2 KB) [[attachment:rightsidebar_iso.py-v193-18112010]]
  • [get | view] (2010-02-05 17:13:56, 29.0 KB) [[attachment:solenoid_iso-191.py]]
  • [get | view] (2010-02-05 17:15:05, 1.4 KB) [[attachment:solenoid_iso-191.py.patch]]
 All files | Selected Files: delete move to page copy to page

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