mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 08:31:16 +02:00
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:
@@ -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>
|
||||
#
|
||||
|
@@ -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>
|
||||
#
|
||||
|
@@ -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']))
|
||||
|
@@ -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']))
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -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>
|
||||
#
|
||||
|
@@ -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']))
|
||||
|
Reference in New Issue
Block a user