6 from daklib.dbconn import DBConn, Archive
7 from dakweb.webregister import QueryRegister
9 @bottle.route('/archives')
14 returns: list of dictionaries
16 Give information about all known archives (sets of suites)
19 s = DBConn().session()
21 q = q.order_by(Archive.archive_name)
24 ret.append({'name': a.archive_name,
25 'suites': [x.suite_name for x in a.suites]})
29 return json.dumps(ret)
31 QueryRegister().register_path('/archives', archives)