def refresh(lctrl): opts = gmCfg.get_all_options(order_by='owner, workplace, option') items = [[ o['owner'], o['workplace'], o['option'], o['value'], o['type'], gmTools.coalesce(o['description'], '') ] for o in opts] lctrl.set_string_items(items) lctrl.set_data(opts)
def refresh(lctrl): opts = gmCfg.get_all_options(order_by = 'owner, workplace, option') items = [ [ o['owner'], o['workplace'], o['option'], o['value'], o['type'], gmTools.coalesce(o['description'], '') ] for o in opts ] lctrl.set_string_items(items) lctrl.set_data(opts)