- def __init__(self, api, conf_file_ids = None, enabled = None):
- sql = "SELECT %s FROM view_conf_files WHERE True" % \
- ", ".join(ConfFile.fields)
-
- if conf_file_ids:
- # Separate the list into integers and strings
- sql += " AND conf_file_id IN (%s)" % ", ".join(map(str, api.db.quote(conf_file_ids)))
-
- if enabled is not None:
- sql += " AND enabled = %(enabled)s"
+ def __init__(self, api, conf_file_filter = None, columns = None):
+ Table.__init__(self, api, ConfFile, columns)