Show More
@@ -62,7 +62,7 b' class ContentsHandler(IPythonHandler):' | |||
|
62 | 62 | if type_ not in {None, 'directory', 'file', 'notebook'}: |
|
63 | 63 | raise web.HTTPError(400, u'Type %r is invalid' % type_) |
|
64 | 64 | |
|
65 |
format = self.get_query_argument('format', default=None) |
|
|
65 | format = self.get_query_argument('format', default=None) | |
|
66 | 66 | if format not in {None, 'text', 'base64'}: |
|
67 | 67 | raise web.HTTPError(400, u'Format %r is invalid' % format) |
|
68 | 68 |
@@ -6,6 +6,7 b' define([' | |||
|
6 | 6 | 'base/js/utils', |
|
7 | 7 | ], |
|
8 | 8 | function($, utils) { |
|
9 | "use strict"; | |
|
9 | 10 | var ConfigSection = function(section_name, options) { |
|
10 | 11 | this.section_name = section_name; |
|
11 | 12 | this.base_url = options.base_url; |
@@ -6,6 +6,7 b' define([' | |||
|
6 | 6 | 'jquery', |
|
7 | 7 | 'base/js/utils', |
|
8 | 8 | ], function(IPython, $, utils) { |
|
9 | "use strict"; | |
|
9 | 10 | var Contents = function(options) { |
|
10 | 11 | /** |
|
11 | 12 | * Constructor |
@@ -90,7 +91,7 b' define([' | |||
|
90 | 91 | dataType : "json", |
|
91 | 92 | }; |
|
92 | 93 | var url = this.api_url(path); |
|
93 | params = {}; | |
|
94 | var params = {}; | |
|
94 | 95 | if (options.type) { params.type = options.type; } |
|
95 | 96 | if (options.format) { params.format = options.format; } |
|
96 | 97 | return utils.promising_ajax(url + '?' + $.param(params), settings); |
General Comments 0
You need to be logged in to leave comments.
Login now