incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/7] git commit: [#6531] Fixed anonymous comments in trac ticket export
Date Mon, 26 Aug 2013 19:11:12 GMT
Updated Branches:
  refs/heads/master 1843655af -> 8c6605d3f


[#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/0688afc8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/0688afc8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/0688afc8

Branch: refs/heads/master
Commit: 0688afc859914835de42bdd3118c5b5e828e9c56
Parents: ff5af16
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:19:57 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/0688afc8/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