From 369bddedd50b4f9a3e779e09d67fdfb9a2fbd086 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 2 Oct 2006 15:25:22 +0000 Subject: [PATCH] - remove parameters, this is just an undocumented helper class --- PLC/BootStates.py | 8 +------- PLC/Roles.py | 9 +-------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/PLC/BootStates.py b/PLC/BootStates.py index fcfcd466..cabf4fca 100644 --- a/PLC/BootStates.py +++ b/PLC/BootStates.py @@ -4,20 +4,14 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: BootStates.py,v 1.1 2006/09/06 15:36:06 mlhuang Exp $ +# $Id: BootStates.py,v 1.2 2006/09/25 14:48:07 mlhuang Exp $ # -from PLC.Parameter import Parameter - class BootStates(list): """ Representation of the node_bootstates table in the database. """ - fields = { - 'boot_state': Parameter(int, "Node boot state"), - } - def __init__(self, api): sql = "SELECT * FROM boot_states" diff --git a/PLC/Roles.py b/PLC/Roles.py index 9835f378..c035fe6b 100644 --- a/PLC/Roles.py +++ b/PLC/Roles.py @@ -4,21 +4,14 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ +# $Id: Roles.py,v 1.1 2006/09/06 15:36:07 mlhuang Exp $ # -from PLC.Parameter import Parameter - class Roles(dict): """ Representation of the roles table in the database. """ - fields = { - 'role_id': Parameter(int, "Role identifier"), - 'name': Parameter(str, "Role name"), - } - # Role IDs equal to or lower than this number are for use by real # accounts. Other role IDs are used internally. role_max = 500 -- 2.47.0