Skip to content

Commit c2f77cf

Browse files
authored
Merge pull request #53 from mujin/regenerateGraphClient
Regenerate graph client
2 parents 0c34d15 + 8bd7489 commit c2f77cf

File tree

6 files changed

+228
-51
lines changed

6 files changed

+228
-51
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.9.2 (2025-04-04)
4+
5+
### Changes
6+
7+
- Regenerate the graph client.
8+
39
## 0.9.1 (2025-04-04)
410

511
### Changes
@@ -188,7 +194,7 @@
188194
### Changes
189195

190196
- Remove automatic query field generation for graphql api. These fields can be
191-
changed frequently causing the webstack client to be unusuable. Users of
197+
changed frequently causing the webstack client to be unusable. Users of
192198
graph api now need to explicitly specify fields and subfields they are
193199
interested in.
194200

bin/mujin_webstackclientpy_runregistrationtask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _RunMain():
4444
elif options.backup:
4545
command = 'Backup'
4646
else:
47-
raise Exception('Have to sepecify either --syncMasterFile or --backup')
47+
raise Exception('Have to specify either --syncMasterFile or --backup')
4848
taskName = 'registration-%s-%s' % (command.lower(), datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))
4949

5050
webstackclient = WebstackClient(options.controllerUrl, options.controllerUsername, options.controllerPassword)

python/mujinwebstackclient/controllerwebclientraw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def APICall(self, method, path='', params=None, fields=None, data=None, headers=
309309
raise APIServerError(_('Unexpected server response %d: %s') % (response.status_code, raw))
310310

311311
# TODO(ziyan): Figure out the expected status code from method
312-
# Some APIs were mis-implemented to not return standard status code.
312+
# Some APIs were miss-implemented to not return standard status code.
313313
if not expectedStatusCode:
314314
expectedStatusCode = {
315315
'GET': 200,
@@ -342,7 +342,7 @@ def CallGraphAPI(self, query, variables=None, headers=None, timeout=5.0):
342342
# try to parse response
343343
raw = response.content.decode('utf-8', 'replace').strip()
344344

345-
# repsonse must be 200 OK
345+
# response must be 200 OK
346346
statusCode = response.status_code
347347
if statusCode != 200:
348348
raise ControllerGraphClientException(_('Unexpected server response %d: %s') % (statusCode, raw), statusCode=statusCode, response=response)

python/mujinwebstackclient/uriutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _ParseURIFast(uri, fragmentSeparator):
9494
9595
input:
9696
uri: A unicode str
97-
fragmentSeparator: The separator to find the framgent
97+
fragmentSeparator: The separator to find the fragment
9898
output:
9999
ParseResult object which has the utf-8 decoded path part.
100100
@@ -441,7 +441,7 @@ def __init__(self, **kwargs):
441441
else:
442442
raise URIError(_('Lack of parameters. initialization must include one of uri, primaryKey, partType or filename'))
443443

444-
# Guess suffix based on primary key. Look for last occurance of .mujin.
444+
# Guess suffix based on primary key. Look for last occurrence of .mujin.
445445
if not self._suffix:
446446
primaryKey = _EnsureUnicode(self._primaryKey)
447447
index = primaryKey.rfind('.mujin.')

python/mujinwebstackclient/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.9.1'
1+
__version__ = '0.9.2'
22

33
# Do not forget to update CHANGELOG.md
44

0 commit comments

Comments
 (0)