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

* Added a 'Log' class to the 'rivwebapi' API.
	* Modified the 'ListLogs()' method to use the 'Log' class in the
	'rivwebapi' API.
	* Added a 'LogLine' class to the 'rivwebapi' API.
	* Modified the 'ListLog()' method to use the 'LogLine' class in the
	'rivwebapi' API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-11 13:16:15 -05:00
parent dd3cee96d4
commit f8f0b937bc
4 changed files with 159 additions and 196 deletions

View File

@@ -84,23 +84,9 @@ except rivwebpyapi.RivWebPyError as err:
sys.exit(1)
#
# Display the log list
# Display the list of logs
#
for log in logs:
print('name: '+log['name'])
print('serviceName: '+log['serviceName'])
print('description: '+log['description'])
print('originUserName: '+log['originUserName'])
print('originDatetime: '+str(log['originDatetime']))
print('linkDatetime: '+str(log['linkDatetime']))
print('modifiedDatetime: '+str(log['modifiedDatetime']))
print('startDate: '+str(log['startDate']))
print('endDate: '+str(log['endDate']))
print('purgeDate: '+str(log['purgeDate']))
print('scheduledTracks: '+str(log['scheduledTracks']))
print('completedTracks: '+str(log['completedTracks']))
print('musicLinks: '+str(log['musicLinks']))
print('musicLinked: '+str(log['musicLinked']))
print('trafficLinks: '+str(log['trafficLinks']))
print('trafficLinked: '+str(log['trafficLinked']))
for key in log.values():
print(key+': '+str(log.values()[key]))
print('')