def subcmd_config_reset(args): import sys try: gconf.resetconfig(config_name_format(args.name)) except gconf.GconfNotConfigurable: cnf_val = gconf.get(config_name_format(args.name), None) if cnf_val is None: sys.stderr.write("Invalid config name \"%s\"\n" % args.name) sys.exit(ERROR_CONFIG_INVALID) # Not configurable sys.stderr.write("Not configurable \"%s\"\n" % args.name) sys.exit(ERROR_CONFIG_NOT_CONFIGURABLE)
def subcmd_config_reset(args): import sys try: gconf.resetconfig(config_name_format(args.name)) except gconf.GconfNotConfigurable: cnf_val = gconf.get(config_name_format(args.name), None) if cnf_val is None: sys.stderr.write("Invalid config name \"%s\"\n" % args.name) sys.exit(ERROR_CONFIG_INVALID) # Not configurable sys.stderr.write("Not configurable \"%s\"\n" % args.name) sys.exit(ERROR_CONFIG_NOT_CONFIGURABLE)