X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FConfFiles.py;h=78853df204380b64db0cf9ea815f1f42d7901dc6;hb=d016b01f1145899e697f1f49233710bb464d438c;hp=613f03b4cf1966206ce8b0955814159b01473203;hpb=e1a827010ec8e6e5c1e1272e22b3269108bcc9c8;p=plcapi.git diff --git a/PLC/ConfFiles.py b/PLC/ConfFiles.py index 613f03b..78853df 100644 --- a/PLC/ConfFiles.py +++ b/PLC/ConfFiles.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: ConfFiles.py,v 1.8 2006/11/08 22:55:29 mlhuang Exp $ +# $Id: ConfFiles.py,v 1.9 2006/11/09 03:07:42 mlhuang Exp $ # from PLC.Faults import * @@ -139,11 +139,11 @@ class ConfFiles(Table): Representation of the conf_files table in the database. """ - def __init__(self, api, conf_file_filter = None): - Table.__init__(self, api, ConfFile) + def __init__(self, api, conf_file_filter = None, columns = None): + Table.__init__(self, api, ConfFile, columns) sql = "SELECT %s FROM view_conf_files WHERE True" % \ - ", ".join(ConfFile.fields) + ", ".join(self.columns) if conf_file_filter is not None: if isinstance(conf_file_filter, (list, tuple, set)):