allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/7] git commit: [#5666] ticket:261 Minor style fix
Date Tue, 05 Feb 2013 17:26:29 GMT
[#5666] ticket:261 Minor style fix


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

Branch: refs/heads/master
Commit: 1e1509179f2c0f9e52b4a4a9ac361bec00075d2e
Parents: 4db3639
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Feb 1 14:56:33 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Feb 5 17:26:04 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/model/ticket.py          |    6 +++---
 .../forgetracker/tests/functional/test_root.py     |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1e150917/ForgeTracker/forgetracker/model/ticket.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index 292d241..3b854c2 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -526,7 +526,7 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
                 attachment.filename, attachment.file,
                 content_type=attachment.type)
 
-    def _move_attach(self,attachments,attach_metadata,app_config_id):
+    def _move_attach(self, attachments, attach_metadata, app_config_id):
         for attach in attachments:
             attach.app_config_id = app_config_id
             attach_thumb = BaseAttachment.query.get(filename=attach.filename, **attach_metadata)
@@ -597,7 +597,7 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
                     continue
 
         attach_metadata['type'] = 'thumbnail'
-        self._move_attach(attachments,attach_metadata,app_config._id)
+        self._move_attach(attachments, attach_metadata, app_config._id)
 
         # move ticket's discussion thread, thus all new commnets will go to a new ticket's
feed
         self.discussion_thread.app_config_id = app_config._id
@@ -607,7 +607,7 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
             attach_metadata['type'] = 'thumbnail'
             post.app_config_id = app_config._id
             post.app_id = app_config._id
-            self._move_attach(post.attachments,attach_metadata,app_config._id)
+            self._move_attach(post.attachments, attach_metadata, app_config._id)
 
         session(self.discussion_thread).flush(self.discussion_thread)
         # need this to reset app_config RelationProperty on ticket to a new one

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1e150917/ForgeTracker/forgetracker/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tests/functional/test_root.py b/ForgeTracker/forgetracker/tests/functional/test_root.py
index a6f4661..1289bdf 100644
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -1287,7 +1287,7 @@ class TestFunctionalController(TrackerTestController):
         self.app.post('/bugs/1/update_ticket',
                       {'summary':'test'},
                       upload_files=[upload])
-        r =self.app.get('/p/test/bugs/1/')
+        r = self.app.get('/p/test/bugs/1/')
         post_link = str(r.html.find('div', {'class': 'edit_post_form reply'}).find('form')['action'])
         r = self.app.post(post_link + 'attach',
                           upload_files=[('file_info', 'test.txt', 'test')])


Mime
View raw message