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

Side by Side Diff: chrome/common/extensions/docs/server2/api_data_source.py

Issue 10854054: Extensions Docs Server: Fix handling of nodocs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return samples Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/converter.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import logging 6 import logging
7 import os 7 import os
8 8
9 from handlebar_dict_generator import HandlebarDictGenerator 9 from handlebar_dict_generator import HandlebarDictGenerator
10 import third_party.json_schema_compiler.json_comment_eater as json_comment_eater 10 import third_party.json_schema_compiler.json_comment_eater as json_comment_eater
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 idl_path = unix_name + '.idl' 88 idl_path = unix_name + '.idl'
89 try: 89 try:
90 return self._GenerateHandlebarContext(key, 90 return self._GenerateHandlebarContext(key,
91 self._json_cache.GetFromFile(self._base_path + '/' + json_path), 91 self._json_cache.GetFromFile(self._base_path + '/' + json_path),
92 path) 92 path)
93 except OSError: 93 except OSError:
94 try: 94 try:
95 return self._GenerateHandlebarContext(key, 95 return self._GenerateHandlebarContext(key,
96 self._idl_cache.GetFromFile(self._base_path + '/' + idl_path), 96 self._idl_cache.GetFromFile(self._base_path + '/' + idl_path),
97 path) 97 path)
98 except OSError as e: 98 except OSError:
99 raise 99 raise
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/converter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698