chisel 1.6.0__tar.gz → 1.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chisel-1.6.0/src/chisel.egg-info → chisel-1.6.2}/PKG-INFO +1 -1
- {chisel-1.6.0 → chisel-1.6.2}/setup.cfg +1 -1
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/app.py +1 -1
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/doc.py +5 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/static/chiselDoc.bare +3 -2
- chisel-1.6.2/src/chisel/static/markdown-up.tar.gz +0 -0
- {chisel-1.6.0 → chisel-1.6.2/src/chisel.egg-info}/PKG-INFO +1 -1
- chisel-1.6.0/src/chisel/static/markdown-up.tar.gz +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/LICENSE +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/README.md +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/pyproject.toml +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/__init__.py +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/action.py +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/request.py +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/static/__init__.py +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel/static/index.html +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel.egg-info/SOURCES.txt +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel.egg-info/dependency_links.txt +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel.egg-info/requires.txt +0 -0
- {chisel-1.6.0 → chisel-1.6.2}/src/chisel.egg-info/top_level.txt +0 -0
|
@@ -186,7 +186,7 @@ class Application:
|
|
|
186
186
|
# Handle the request
|
|
187
187
|
try:
|
|
188
188
|
response = request(ctx.environ, ctx.start_response)
|
|
189
|
-
except:
|
|
189
|
+
except:
|
|
190
190
|
ctx.log.exception('exception raised by request "%s"', request.name)
|
|
191
191
|
response = ctx.response_text(HTTPStatus.INTERNAL_SERVER_ERROR)
|
|
192
192
|
|
|
@@ -166,6 +166,9 @@ action chisel_doc_request
|
|
|
166
166
|
# The map of the action's type name's to type models. This member is only present for JSON APIs.
|
|
167
167
|
optional Types types
|
|
168
168
|
|
|
169
|
+
# If true, the action has a custom response
|
|
170
|
+
optional bool custom
|
|
171
|
+
|
|
169
172
|
errors
|
|
170
173
|
# The request name is unknown
|
|
171
174
|
UnknownName
|
|
@@ -192,6 +195,8 @@ action chisel_doc_request
|
|
|
192
195
|
response['urls'] = [self._url_dict(method, path) for method, path in request.urls]
|
|
193
196
|
if isinstance(request, Action):
|
|
194
197
|
response['types'] = get_referenced_types(request.types, request.name)
|
|
198
|
+
if request.wsgi_response:
|
|
199
|
+
response['custom'] = True
|
|
195
200
|
elif request.doc is not None:
|
|
196
201
|
response['doc'] = [request.doc] if isinstance(request.doc, str) else request.doc
|
|
197
202
|
|
|
@@ -41,7 +41,7 @@ async function chiselDocIndexPage():
|
|
|
41
41
|
for groupName in arraySort(objectKeys(groups)):
|
|
42
42
|
markdownPrint('', '## ' + markdownEscape(groupName))
|
|
43
43
|
for requestName in arraySort(objectGet(groups, groupName)):
|
|
44
|
-
markdownPrint('', argsLink(chiselDocArguments, requestName, objectNew('name', requestName)))
|
|
44
|
+
markdownPrint('', argsLink(chiselDocArguments, requestName, objectNew('name', requestName), false, '_top'))
|
|
45
45
|
endfor
|
|
46
46
|
endfor
|
|
47
47
|
endfunction
|
|
@@ -60,6 +60,7 @@ async function chiselDocRequestPage(typeName):
|
|
|
60
60
|
doc = objectGet(docRequest, 'doc')
|
|
61
61
|
urls = objectGet(docRequest, 'urls')
|
|
62
62
|
types = objectGet(docRequest, 'types')
|
|
63
|
+
custom = objectGet(docRequest, 'custom', false)
|
|
63
64
|
|
|
64
65
|
# Render the request page
|
|
65
66
|
documentSetTitle(typeName)
|
|
@@ -67,7 +68,7 @@ async function chiselDocRequestPage(typeName):
|
|
|
67
68
|
|
|
68
69
|
# Action request?
|
|
69
70
|
if types != null:
|
|
70
|
-
elementModelRender(schemaElements(types, typeName, urls))
|
|
71
|
+
elementModelRender(schemaElements(types, typeName, urls, custom))
|
|
71
72
|
return
|
|
72
73
|
endif
|
|
73
74
|
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|