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

* Renamed the 'rivwebpyapi.rivwebpyapi()' class to
	'rivwebpyapi.Site()'.
	* Added 'make pypi' and 'make post-pypi' targets to
	'apis/rivwebpyapi/Makefile.am'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-15 20:27:13 -05:00
parent 997208e95a
commit 79e3ace473
50 changed files with 298 additions and 126 deletions

View File

@@ -23,8 +23,10 @@
#
import getpass
import rivwebpyapi
import sys
from rivwebpyapi import rivwebpyapi
def eprint(*args,**kwargs):
print(*args,file=sys.stderr,**kwargs)
@@ -61,9 +63,9 @@ if(image_id<0):
#
# Execute
#
webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
site=rivwebpyapi.Site(url=url,username=username,password=password)
try:
webapi.PostImage(image_id=image_id)
site.PostImage(image_id=image_id)
except rivwebpyapi.RivWebPyError as err:
eprint('*** ERROR ***')
eprint('Response Code: '+str(err.responseCode))