allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [04/14] allura git commit: [#6107] ticket:748 Added option for allowing email postings to ForgeTracker app
Date Fri, 15 May 2015 16:07:44 GMT
[#6107] ticket:748 Added option for allowing email postings to ForgeTracker app


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/9732fbb3
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9732fbb3
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9732fbb3

Branch: refs/heads/master
Commit: 9732fbb3a14e224fe0e64d126b20048802431270
Parents: 5eb6942
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Fri Apr 24 23:21:48 2015 +0300
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Wed Apr 29 09:40:22 2015 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tracker_main.py  | 4 +++-
 ForgeTracker/forgetracker/widgets/admin.py | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/9732fbb3/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index 055116f..c1544c7 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -238,7 +238,8 @@ class ForgeTrackerApp(Application):
         ConfigOption('TicketMonitoringEmail', str, ''),
         ConfigOption('TicketMonitoringType',
                      schema.OneOf('NewTicketsOnly', 'AllTicketChanges',
-                                  'NewPublicTicketsOnly', 'AllPublicTicketChanges'), None)
+                                  'NewPublicTicketsOnly', 'AllPublicTicketChanges'), None),
+        ConfigOption('AllowEmailPosting', bool, True)
     ]
     exportable = True
     searchable = True
@@ -1626,6 +1627,7 @@ class TrackerAdminController(DefaultAdminController):
                 'TicketMonitoringEmail'),
             TicketHelpNew=self.app.config.options.get('TicketHelpNew'),
             TicketHelpSearch=self.app.config.options.get('TicketHelpSearch'),
+            AllowEmailPosting=self.app.config.options.get('AllowEmailPosting'),
         ))
 
     @expose()

http://git-wip-us.apache.org/repos/asf/allura/blob/9732fbb3/ForgeTracker/forgetracker/widgets/admin.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/admin.py b/ForgeTracker/forgetracker/widgets/admin.py
index 8ad8d1c..586ce6f 100644
--- a/ForgeTracker/forgetracker/widgets/admin.py
+++ b/ForgeTracker/forgetracker/widgets/admin.py
@@ -34,6 +34,9 @@ class OptionsAdmin(ff.AdminForm):
             ew.Checkbox(
                 name='EnableVoting',
                 label='Enable voting on tickets'),
+            ew.Checkbox(
+                name='AllowEmailPosting',
+                label='Allow posting replies via email'),
             ew.TextField(
                 name='TicketMonitoringEmail',
                 label='Email ticket notifications to',


Mime
View raw message