incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/2] git commit: [#6531] Fixed anonymous comments in trac ticket export
Date Mon, 26 Aug 2013 17:07:07 GMT
[#6531] Fixed anonymous comments in trac ticket export

Signed-off-by: Cory Johns <cjohns@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/6380301e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/6380301e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/6380301e

Branch: refs/heads/tv/6531
Commit: 6380301e57bb6b7e21561d0581186f17a2290955
Parents: 8f60f0d
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Mon Aug 26 17:05:30 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Mon Aug 26 17:05:30 2013 +0000

----------------------------------------------------------------------
 Allura/allura/scripts/trac_export.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/6380301e/Allura/allura/scripts/trac_export.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/trac_export.py b/Allura/allura/scripts/trac_export.py
index 4d908bc..43462df 100644
--- a/Allura/allura/scripts/trac_export.py
+++ b/Allura/allura/scripts/trac_export.py
@@ -155,7 +155,7 @@ class TracExport(object):
         res = []
         for comment in d['entries']:
             c = {}
-            c['submitter'] = comment.author
+            c['submitter'] = getattr(comment, 'author', None)
             c['date'] = comment.updated_parsed
             c['comment'] = html2text(comment.summary)
             c['class'] = 'COMMENT'


Mime
View raw message