X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FNodeGroups.py;h=90bd5f90a3b051f8ec70a2a0293933a6c318a407;hb=9ee0739de638548d01573cbff84a585dce9c6e05;hp=550d0bda2ed8235bb60da3d4b9fb201538aa1c06;hpb=e1a827010ec8e6e5c1e1272e22b3269108bcc9c8;p=plcapi.git diff --git a/PLC/NodeGroups.py b/PLC/NodeGroups.py index 550d0bd..90bd5f9 100644 --- a/PLC/NodeGroups.py +++ b/PLC/NodeGroups.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: NodeGroups.py,v 1.17 2006/11/08 22:59:15 mlhuang Exp $ +# $Id: NodeGroups.py,v 1.18 2006/11/09 03:07:42 mlhuang Exp $ # from types import StringTypes @@ -104,11 +104,11 @@ class NodeGroups(Table): database. """ - def __init__(self, api, nodegroup_filter = None): - Table.__init__(self, api, NodeGroup) + def __init__(self, api, nodegroup_filter = None, columns = None): + Table.__init__(self, api, NodeGroup, columns) sql = "SELECT %s FROM view_nodegroups WHERE True" % \ - ", ".join(NodeGroup.fields) + ", ".join(self.columns) if nodegroup_filter is not None: if isinstance(nodegroup_filter, (list, tuple, set)):