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

* Added a 'Service()' type class to the 'rivwebpyapi' API.
	* Modified the 'rivwebpyapi.ListServices()' call to return
	a list of 'rivwebpyapi.Service' objects.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-12 16:47:21 -05:00
parent 0443fd9341
commit 6b923ffbda
3 changed files with 24 additions and 9 deletions

View File

@@ -72,6 +72,6 @@ except rivwebpyapi.RivWebPyError as err:
# Display the services list
#
for svc in services:
print('name: '+svc['name'])
print('description: '+svc['description'])
for key in svc.values():
print(key+': '+str(svc.values()[key]))
print('')