+ if conf_file_filter is not None:
+ if isinstance(conf_file_filter, (list, tuple, set, int, long)):
+ conf_file_filter = Filter(ConfFile.fields, {'conf_file_id': conf_file_filter})
+ elif isinstance(conf_file_filter, dict):
+ conf_file_filter = Filter(ConfFile.fields, conf_file_filter)
+ sql += " AND (%s) %s" % conf_file_filter.sql(api)