From: Mark Huang Date: Tue, 19 Sep 2006 19:08:24 +0000 (+0000) Subject: - update comment X-Git-Tag: pycurl-7_13_1~745 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0b4efddd7eeb4937517c7840a7d92f0407af9482;p=plcapi.git - update comment --- diff --git a/PLC/NodeGroups.py b/PLC/NodeGroups.py index 13d3ea4..340a74f 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.6 2006/09/13 15:40:26 tmack Exp $ +# $Id: NodeGroups.py,v 1.7 2006/09/14 15:45:24 tmack Exp $ # from types import StringTypes @@ -36,6 +36,7 @@ class NodeGroup(Row): } all_fields = dict(fields.items() + join_fields.items()) + def __init__(self, api, fields): Row.__init__(self, fields) self.api = api @@ -144,7 +145,7 @@ class NodeGroup(Row): sql = "INSERT INTO nodegroups (%s) VALUES (%s)" % \ (", ".join(keys), ", ".join(values)) else: - # Update existing row in sites table + # Update existing row in nodegroups table columns = ["%s = %s" % (key, value) for (key, value) in zip(keys, values)] sql = "UPDATE nodegroups SET " + \ ", ".join(columns) + \