mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 00:51:13 +02:00
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:
@@ -23,8 +23,10 @@
|
||||
#
|
||||
|
||||
import getpass
|
||||
import rivwebpyapi
|
||||
import sys
|
||||
|
||||
from rivwebpyapi import rivwebpyapi
|
||||
|
||||
def eprint(*args,**kwargs):
|
||||
print(*args,file=sys.stderr,**kwargs)
|
||||
|
||||
@@ -57,9 +59,9 @@ if((not url)or(not username)):
|
||||
#
|
||||
# Get the code list
|
||||
#
|
||||
webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
|
||||
site=rivwebpyapi.Site(url=url,username=username,password=password)
|
||||
try:
|
||||
settings=webapi.ListSystemSettings()
|
||||
settings=site.ListSystemSettings()
|
||||
except rivwebpyapi.RivWebPyError as err:
|
||||
eprint('*** ERROR ***')
|
||||
eprint('Response Code: '+str(err.responseCode))
|
||||
|
Reference in New Issue
Block a user