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)
|
||||
|
||||
@@ -76,12 +78,12 @@ if(cut_number==0):
|
||||
#
|
||||
# Execute
|
||||
#
|
||||
webapi=rivwebpyapi.rivwebpyapi(url=url,username=username,password=password)
|
||||
site=rivwebpyapi.Site(url=url,username=username,password=password)
|
||||
cut=rivwebpyapi.Cut()
|
||||
cut.setValues(values)
|
||||
|
||||
try:
|
||||
cut=webapi.EditCut(cart_number=cart_number,cut_number=cut_number,
|
||||
cut=site.EditCut(cart_number=cart_number,cut_number=cut_number,
|
||||
values=cut.values())
|
||||
except rivwebpyapi.RivWebPyError as err:
|
||||
eprint('*** ERROR ***')
|
||||
|
Reference in New Issue
Block a user