Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f8899f

Browse files
authored
Add scope to client docs (dropbox#408)
Adds the "scope" attribute to the exported clients, so that they appear in the docstrings of routes that have a scope defined.After running:```python generate_base_client.pytox -e docs```I checked the html build files and scopes are showing up as expected.
1 parent62e49c1 commit2f8899f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

‎generate_base_client.py‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,29 @@ def main():
5757

5858
o=subprocess.check_output(
5959
(['python','-m','stone.cli','python_client',dropbox_pkg_path]+
60-
specs+ ['-a','host','-a','style','-a','auth']+
61-
['--','-w','user,app,noauth','-m','base','-c','DropboxBase','-t','dropbox']))
60+
specs+ ['-a','host','-a','style','-a','auth','-a','scope']+
61+
[
62+
'--',
63+
'-w','user,app,noauth',
64+
'-m','base',
65+
'-c','DropboxBase',
66+
'-t','dropbox',
67+
'-a','scope'
68+
]))
6269
ifo:
6370
print('Output:',o)
6471

6572
o=subprocess.check_output(
6673
(['python','-m','stone.cli','python_client',dropbox_pkg_path]+
67-
specs+ ['-a','host','-a','style','-a','auth']+
68-
['--','-w','team','-m','base_team','-c','DropboxTeamBase','-t','dropbox']))
74+
specs+ ['-a','host','-a','style','-a','auth','-a','scope']+
75+
[
76+
'--',
77+
'-w','team',
78+
'-m','base_team',
79+
'-c','DropboxTeamBase',
80+
'-t','dropbox',
81+
'-a','scope'
82+
]))
6983
ifo:
7084
print('Output:',o)
7185

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp