--- a/ForgeWiki/forgewiki/wiki_main.py
+++ b/ForgeWiki/forgewiki/wiki_main.py
@@ -112,6 +112,13 @@
def show_discussion(self):
if 'show_discussion' in self.config.options:
return self.config.options['show_discussion']
+ else:
+ return True
+
+ @property
+ def show_left_bar(self):
+ if 'show_left_bar' in self.config.options:
+ return self.config.options['show_left_bar']
else:
return True
@@ -675,10 +682,13 @@
@without_trailing_slash
@expose()
- def set_options(self, show_discussion=False):
+ def set_options(self, show_discussion=False, show_left_bar=False):
require(has_artifact_access('configure', app=self.app))
if show_discussion:
show_discussion = True
+ if show_left_bar:
+ show_left_bar = True
self.app.config.options['show_discussion'] = show_discussion
+ self.app.config.options['show_left_bar'] = show_left_bar
flash('Options updated')
redirect('options')