You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/05/04 19:36:52 UTC
[09/12] allura git commit: [#6107] ticket:748 Reimplemented
allow_email_posting without @Property
[#6107] ticket:748 Reimplemented allow_email_posting without @Property
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/a334bfaf
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a334bfaf
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a334bfaf
Branch: refs/heads/ib/6107
Commit: a334bfaf0d58379aad453d1b8f328027500eba36
Parents: b075475
Author: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Authored: Thu Apr 30 21:48:51 2015 +0300
Committer: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Committed: Thu Apr 30 21:48:51 2015 +0300
----------------------------------------------------------------------
ForgeWiki/forgewiki/wiki_main.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/a334bfaf/ForgeWiki/forgewiki/wiki_main.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/wiki_main.py b/ForgeWiki/forgewiki/wiki_main.py
index 9a2da41..5f15779 100644
--- a/ForgeWiki/forgewiki/wiki_main.py
+++ b/ForgeWiki/forgewiki/wiki_main.py
@@ -186,13 +186,13 @@ The wiki uses [Markdown](%s) syntax.
def show_right_bar(self, show):
self.config.options['show_right_bar'] = bool(show)
- @Property
- def allow_email_posting():
- def fget(self):
- return self.config.options.get('AllowEmailPosting', True)
+ @property
+ def allow_email_posting(self):
+ return self.config.options.get('AllowEmailPosting', True)
- def fset(self, show):
- self.config.options['AllowEmailPosting'] = bool(show)
+ @allow_email_posting.setter
+ def allow_email_posting(self, show):
+ self.config.options['AllowEmailPosting'] = bool(show)
def main_menu(self):
'''Apps should provide their entries to be added to the main nav