Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9842)

Unified Diff: chrome/common/extensions/docs/server2/template_data_source.py

Issue 10546078: Extension docs server: APIDataSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/template_data_source.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source.py b/chrome/common/extensions/docs/server2/template_data_source.py
index 003cbf097425a227fadb5a37e2b6c17cf556d6d1..6a7389eabedfb5f8c245a3bc95aaa40f54c77f64 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -2,7 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import json
import logging
import os
import time
@@ -27,7 +26,7 @@ class TemplateDataSource(object):
if not template:
return ''
# TODO error handling
- return template.render(json.loads(context), {'templates': self}).text
+ return template.render(context, {'templates': self}).text
class _CachedTemplate(object):
def __init__(self, template, expiry):

Powered by Google App Engine
This is Rietveld 408576698