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 2013/08/26 19:07:07 UTC
[2/2] git commit: [#6531] Fixed anonymous comments in trac ticket
export
[#6531] Fixed anonymous comments in trac ticket export
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/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 <cj...@slashdotmedia.com>
Authored: Mon Aug 26 17:05:30 2013 +0000
Committer: Cory Johns <cj...@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'