Attachment 'moin-theme-mentalwealth-0.95.2-moin-1.9.x.patch'

Download

   1 --- mentalwealth/mentalwealth.py	2009-12-31 12:34:38.675918447 +0000
   2 +++ mentalwealth/mentalwealth.py	2009-12-31 12:38:55.421923779 +0000
   3 @@ -8,6 +8,7 @@
   4  
   5  	For more info see the readme.html.
   6  """
   7 +from MoinMoin.action import get_available_actions
   8  from MoinMoin.theme import ThemeBase
   9  from MoinMoin.wikiutil import link_tag as link
  10  from MoinMoin.wikiutil import quoteWikinameURL as quoteURL
  11 @@ -62,7 +63,7 @@
  12  		page = d['page']
  13  
  14  		# we can do these actions
  15 -		available = self.request.getAvailableActions(page)
  16 +		available = get_available_actions(self.request.cfg, page, self.request.user)
  17  
  18  		# start building list of links
  19  		builder = BuildLinks(self.request, page)
  20 @@ -108,7 +109,7 @@
  21  			builder.addplain(parent.link_to(self.request, _get('Show Parent', formatted=False)))
  22  
  23  		# determine which actions we can use
  24 -		available = self.request.getAvailableActions(page)
  25 +		available = get_available_actions(self.request.cfg, page, self.request.user)
  26  		for action, label in self.choices:
  27  			if action == 'refresh' and not page.canUseCache():
  28  				continue

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] (2011-08-25 15:54:07, 1.3 KB) [[attachment:mentalwealth-0.96-moin-1.9.x.patch]]
  • [get | view] (2006-04-22 00:23:03, 21.2 KB) [[attachment:mentalwealth-093.gif]]
  • [get | view] (2006-04-22 00:24:09, 81.5 KB) [[attachment:mentalwealth-093.zip]]
  • [get | view] (2006-04-28 16:39:02, 86.6 KB) [[attachment:mentalwealth-094.zip]]
  • [get | view] (2006-06-06 19:37:55, 94.4 KB) [[attachment:mentalwealth-095.2.zip]]
  • [get | view] (2006-05-16 20:02:00, 97.1 KB) [[attachment:mentalwealth-095.zip]]
  • [get | view] (2009-02-22 23:55:35, 97.2 KB) [[attachment:mentalwealth-096.zip]]
  • [get | view] (2010-01-13 11:35:41, 1.0 KB) [[attachment:moin-theme-mentalwealth-0.95.2-moin-1.9.x.patch]]
 All files | Selected Files: delete move to page copy to page

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