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.You are not allowed to attach a file to this page.