From 0b4efddd7eeb4937517c7840a7d92f0407af9482 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Tue, 19 Sep 2006 19:08:24 +0000 Subject: [PATCH] - update comment --- PLC/NodeGroups.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PLC/NodeGroups.py b/PLC/NodeGroups.py index 13d3ea4b..340a74fd 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) + \ -- 2.45.2