From a8687ddca888ab11054bf28b9eebde73baeec53f Mon Sep 17 00:00:00 2001 From: Sreenadh H Date: Tue, 25 Sep 2012 19:22:50 +0530 Subject: [PATCH 1/2] Fix for issue #25 - code_comments/comment.py Fix for issue #25 code_comments/comment.py --- code_comments/comment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code_comments/comment.py b/code_comments/comment.py index 5f159c8..cbedc4d 100644 --- a/code_comments/comment.py +++ b/code_comments/comment.py @@ -150,6 +150,7 @@ def default(self, o): for_json = dict([(name, getattr(o, name)) for name in o.__dict__ if isinstance(getattr(o, name), (basestring, int, list, dict))]) for_json['formatted_date'] = o.formatted_date() for_json['permalink'] = o.href() + for_json['id'] = o.id return for_json else: return json.JSONEncoder.default(self, o) From c93ee4eb63cc59803342de73fee90be1e9fda607 Mon Sep 17 00:00:00 2001 From: Sreenadh H Date: Wed, 26 Sep 2012 01:35:58 +0530 Subject: [PATCH 2/2] Update code_comments/comment.py --- code_comments/comment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code_comments/comment.py b/code_comments/comment.py index cbedc4d..adde1ea 100644 --- a/code_comments/comment.py +++ b/code_comments/comment.py @@ -151,6 +151,7 @@ def default(self, o): for_json['formatted_date'] = o.formatted_date() for_json['permalink'] = o.href() for_json['id'] = o.id + for_json['line'] = o.line return for_json else: return json.JSONEncoder.default(self, o)