2021-12-04 Fred Gleason <fredg@paravelsystems.com>

* Fixed multiple typos in the inline documentation for the
	'rivwebpyapi' API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-04 14:00:56 -05:00
parent 308636eb72
commit bdb038f7b1
9 changed files with 35 additions and 24 deletions

View File

@@ -4,7 +4,7 @@
#
# RivWebPyApi test script for Rivendell
#
# Test the ListLogs Web API call
# Test the ListCart Web API call
#
# (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
#

View File

@@ -4,7 +4,7 @@
#
# RivWebPyApi test script for Rivendell
#
# Test the ListLogs Web API call
# Test the ListCarts Web API call
#
# (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
#

View File

@@ -58,13 +58,13 @@ if((not url)or(not username)):
sys.exit(1)
#
# Get the cart list
# Get the cut list
#
webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
cuts=webapi.ListCut(cart_number=cart_number,cut_number=cut_number)
#
# Display the cart list
# Display the cut list
#
for cut in cuts:
print('cutName: '+str(cut['cutName']))

View File

@@ -55,13 +55,13 @@ if((not url)or(not username)):
sys.exit(1)
#
# Get the cart list
# Get the cut list
#
webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
cuts=webapi.ListCuts(cart_number=cart_number)
#
# Display the cart list
# Display the cut list
#
for cut in cuts:
print('cutName: '+str(cut['cutName']))

View File

@@ -38,7 +38,7 @@ recent=False
#
# Get login parameters
#
usage='list_log --url=<rd-url> --username=<rd-username> [--password=<passwd>] [--log-name=<name>]'
usage='list_log --url=<rd-url> --username=<rd-username> --log-name=<name> [--password=<passwd>]'
for arg in sys.argv:
f0=arg.split('=')
if(len(f0)==2):
@@ -52,7 +52,7 @@ for arg in sys.argv:
log_name=f0[1]
if(not password):
password=getpass.getpass()
if((not url)or(not username)):
if((not url)or(not username)or(not log_name)):
print(usage)
sys.exit(1)

View File

@@ -1,10 +1,10 @@
#!%PYTHON_BANGPATH%
# login_test.py
# list_services.py
#
# RivWebPyApi test script for Rivendell
#
# Attempt to log in to the Rivendell Web API
# Test the ListServices Web API call
#
# (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
#

View File

@@ -59,7 +59,7 @@ webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
settings=webapi.ListSystemSettings()
#
# Display the code list
# Display the settings list
#
for setting in settings:
print('realmName: '+str(setting['realmName']))