Get-reports.gmp.py
Zur Navigation springen
Zur Suche springen
import sys
res = gmp.get_reports()
for i, report in enumerate(res.xpath('report')):
id = report.xpath('@id')[0]
modtime = report.xpath('modification_time/text()')[0]
task = report.xpath('task')[0]
task_id = task.xpath('@id')[0]
format_id = report.xpath('@format_id')[0]
task_name = task.xpath('name/text()')[0]
print('\n({0}) {1} : ({2}) : {3}'.format(i, modtime, task_name , id))