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)
|
||||
|
||||
@@ -67,9 +69,9 @@ if(cut_number==0):
|
||||
#
|
||||
# Get the code list
|
||||
#
|
||||
webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
|
||||
site=rivwebpyapi.Site(url=url,username=username,password=password)
|
||||
try:
|
||||
info=webapi.AudioInfo(cart_number=cart_number,cut_number=cut_number)
|
||||
info=site.AudioInfo(cart_number=cart_number,cut_number=cut_number)
|
||||
except rivwebpyapi.RivWebPyError as err:
|
||||
print('*** ERROR ***')
|
||||
print('Response Code: '+str(err.responseCode))
|
||||
|
Reference in New Issue
Block a user