git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fix typo
[plcapi.git]
/
PLC
/
ConfFiles.py
diff --git
a/PLC/ConfFiles.py
b/PLC/ConfFiles.py
index
613f03b
..
78853df
100644
(file)
--- a/
PLC/ConfFiles.py
+++ b/
PLC/ConfFiles.py
@@
-4,7
+4,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# 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 *
#
from PLC.Faults import *
@@
-139,11
+139,11
@@
class ConfFiles(Table):
Representation of the conf_files table in the database.
"""
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" % \
sql = "SELECT %s FROM view_conf_files WHERE True" % \
- ", ".join(
ConfFile.field
s)
+ ", ".join(
self.column
s)
if conf_file_filter is not None:
if isinstance(conf_file_filter, (list, tuple, set)):
if conf_file_filter is not None:
if isinstance(conf_file_filter, (list, tuple, set)):