Pushed. Thanks!
On 04/26/2013 10:57 AM, Jakub Filak wrote:
A solution is still a part of the message and JSON solution has
been added. The JSON solution is returned in a list because we can
expect that a single problem can have more solutions.
Closes #186
Signed-off-by: Jakub Filak <jfilak(a)redhat.com>
---
pyfaf/hub/reports/views.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyfaf/hub/reports/views.py b/pyfaf/hub/reports/views.py
index 1afd2a6..6c7e029 100644
--- a/pyfaf/hub/reports/views.py
+++ b/pyfaf/hub/reports/views.py
@@ -288,6 +288,9 @@ def new(request):
response['message'] += ("\n\nYou can get more
information at {0}"
.format(solution.url))
+ response['solutions'] = [{'cause': solution.cause,
+ 'note': solution.note_text,
+ 'url': solution.url}]
response['result'] = True
try:
--
Richard Marko