comparison MoinMoin/theme/__init__.py @ 4448:a0864c9c4752

theme:__init__: fixed and simplified getPragma calls for supplementation
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 30 Nov 2008 14:51:25 +0100
parents 2254e666cea3
children 9c1c823f4111
comparison
equal deleted inserted replaced
4447:2254e666cea3 4448:a0864c9c4752
1151 edtibar in sub classes. 1151 edtibar in sub classes.
1152 """ 1152 """
1153 _ = self.request.getText 1153 _ = self.request.getText
1154 editbar_actions = [] 1154 editbar_actions = []
1155 for editbar_item in self.request.cfg.edit_bar: 1155 for editbar_item in self.request.cfg.edit_bar:
1156 if editbar_item == 'Discussion': 1156 if (editbar_item == 'Discussion' and
1157 if not self.request.cfg.supplementation_page and self.request.getPragma('supplementation-page', 1) in ('on', '1'): 1157 (self.request.getPragma('supplementation-page', self.request.cfg.supplementation_page)
1158 editbar_actions.append(self.supplementation_page_nameLink(page)) 1158 in (True, 1, 'on', '1'))):
1159 elif self.request.cfg.supplementation_page and not self.request.getPragma('supplementation-page', 1) in ('off', '0'):
1160 editbar_actions.append(self.supplementation_page_nameLink(page)) 1159 editbar_actions.append(self.supplementation_page_nameLink(page))
1161 elif editbar_item == 'Comments': 1160 elif editbar_item == 'Comments':
1162 # we just use <a> to get same style as other links, but we add some dummy 1161 # we just use <a> to get same style as other links, but we add some dummy
1163 # link target to get correct mouseover pointer appearance. return false 1162 # link target to get correct mouseover pointer appearance. return false
1164 # keeps the browser away from jumping to the link target:: 1163 # keeps the browser away from jumping to the link target::