From: Mark Huang Date: Fri, 27 Oct 2006 15:32:43 +0000 (+0000) Subject: - get session value from node_session join table X-Git-Tag: pycurl-7_13_1~438 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8251c4171d3e54ab4f0b413213c31648e71f6230;p=plcapi.git - get session value from node_session join table --- diff --git a/PLC/Nodes.py b/PLC/Nodes.py index 6356c39..c2af870 100644 --- a/PLC/Nodes.py +++ b/PLC/Nodes.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Nodes.py,v 1.13 2006/10/24 20:02:22 mlhuang Exp $ +# $Id: Nodes.py,v 1.14 2006/10/25 14:29:13 mlhuang Exp $ # from types import StringTypes @@ -49,7 +49,7 @@ class Node(Row): 'date_created': Parameter(int, "Date and time when node entry was created", ro = True), 'last_updated': Parameter(int, "Date and time when node entry was created", ro = True), 'key': Parameter(str, "(Admin only) Node key", max = 256), - 'session': Parameter(str, "(Admin only) Node session value", max = 256), + 'session': Parameter(str, "(Admin only) Node session value", max = 256, ro = True), 'nodenetwork_ids': Parameter([int], "List of network interfaces that this node has", ro = True), 'nodegroup_ids': Parameter([int], "List of node groups that this node is in", ro = True), 'conf_file_ids': Parameter([int], "List of configuration files specific to this node", ro = True), @@ -89,7 +89,7 @@ class Node(Row): nodenetwork.delete(commit = False) # Clean up miscellaneous join tables - for table in ['nodegroup_node', 'slice_node', 'slice_attribute']: + for table in ['nodegroup_node', 'slice_node', 'slice_attribute', 'node_session']: self.api.db.do("DELETE FROM %s" \ " WHERE node_id = %d" % \ (table, self['node_id']))