Get-configs.gmp.py
Zur Navigation springen
Zur Suche springen
import sys
res = gmp.get_configs()
for i, conf in enumerate(res.xpath('config')):
id = conf.xpath('@id')[0]
name = conf.xpath('name/text()')[0]
print('\n({0}) {1}: ({2})'.format(i, name, id))