allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [09/12] allura git commit: [#6107] ticket:748 Reimplemented allow_email_posting without @Property
Date Mon, 04 May 2015 17:36:52 GMT
[#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 <gotletter@gmail.com>
Authored: Thu Apr 30 21:48:51 2015 +0300
Committer: Aleksey 'LXj' Alekseyev <gotletter@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


Mime
View raw message