You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/03/04 22:11:48 UTC

[5/5] git commit: [#6305] Fixed flake8 issues

[#6305] Fixed flake8 issues

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


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

Branch: refs/heads/master
Commit: 9ba1adae6b44a18275d1f433c8834857a065579b
Parents: 34fc189
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Tue Mar 4 20:49:14 2014 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Tue Mar 4 20:49:14 2014 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tracker_main.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9ba1adae/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index aa47036..356702d 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -1428,15 +1428,16 @@ class TicketController(BaseController, FeedController):
                 changes[cf.label] = cf_val(cf)
 
         tpl = pkg_resources.resource_filename(
-            'forgetracker','data/ticket_changed_tmpl')
+            'forgetracker', 'data/ticket_changed_tmpl')
         render = partial(h.render_genshi_plaintext, tpl, changelist=changes.get_changed())
         post_text = render(comment=None)
-        notification_text = render(comment=comment) if comment else None 
+        notification_text = render(comment=comment) if comment else None
         thread = self.ticket.discussion_thread
         thread.add_post(text=post_text, is_meta=True,
                         notification_text=notification_text)
         self.ticket.commit()
-        if comment: thread.post(text=comment, notify=False)
+        if comment:
+            thread.post(text=comment, notify=False)
         g.director.create_activity(c.user, 'modified', self.ticket,
                                    related_nodes=[c.project], tags=['ticket'])
         c.app.globals.invalidate_bin_counts()