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

* Added a 'Cart' class to the 'rivwebapi' API.
	* Modified the 'AddCart()', 'ListCart()' and 'ListCarts()' methods
	to use the 'Cart' class in the 'rivwebapi' API.
	* Added an 'EditCart()' method to the 'rivwebpyapi' API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-11 11:04:58 -05:00
parent ec616f3685
commit 4071b6a5ac
7 changed files with 237 additions and 192 deletions

View File

@@ -85,36 +85,9 @@ except rivwebpyapi.RivWebPyError as err:
sys.exit(1)
#
# Display the cart list
# Display the new cart
#
print('ADDED')
print('number: '+str(cart['number']))
print('type: '+str(cart['type']))
print('groupName: '+str(cart['groupName']))
print('title: '+str(cart['title']))
print('artist: '+str(cart['artist']))
print('album: '+str(cart['album']))
print('year: '+str(cart['year']))
print('label: '+str(cart['label']))
print('client: '+str(cart['client']))
print('agency: '+str(cart['agency']))
print('publisher: '+str(cart['publisher']))
print('composer: '+str(cart['composer']))
print('conductor: '+str(cart['conductor']))
print('userDefined: '+str(cart['userDefined']))
print('usageCode: '+str(cart['usageCode']))
print('forcedLength: '+str(cart['forcedLength']))
print('averageLength: '+str(cart['averageLength']))
print('lengthDeviation: '+str(cart['lengthDeviation']))
print('averageSegueLength: '+str(cart['averageSegueLength']))
print('averageHookLength: '+str(cart['averageHookLength']))
print('minimumTalkLength: '+str(cart['minimumTalkLength']))
print('maximumTalkLength: '+str(cart['maximumTalkLength']))
print('cutQuantity: '+str(cart['cutQuantity']))
print('lastCutPlayed: '+str(cart['lastCutPlayed']))
print('enforceLength: '+str(cart['enforceLength']))
print('asyncronous: '+str(cart['asyncronous']))
print('owner: '+str(cart['owner']))
print('metadataDatetime: '+str(cart['metadataDatetime']))
print('songId: '+str(cart['songId']))
for key in rivwebpyapi.CART_FIELDS:
print(key+': '+str(cart.values()[key]))
print('')