From 71b475e73b5130b95d636148a8c92c95268d79e1 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 2 Oct 2006 15:36:48 +0000 Subject: [PATCH] - add helper class for slice_instantiations --- PLC/SliceInstantiations.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 PLC/SliceInstantiations.py diff --git a/PLC/SliceInstantiations.py b/PLC/SliceInstantiations.py new file mode 100644 index 00000000..7b4b2a43 --- /dev/null +++ b/PLC/SliceInstantiations.py @@ -0,0 +1,19 @@ +# +# Functions for interacting with the slice_instantiations table in the database +# +# Mark Huang +# Copyright (C) 2006 The Trustees of Princeton University +# +# $Id: SliceInstantiations.py,v 1.1 2006/09/06 15:36:07 mlhuang Exp $ +# + +class SliceInstantiations(list): + """ + Representation of the slice_instantiations table in the database. + """ + + def __init__(self, api): + sql = "SELECT * FROM slice_instantiations" + + for row in api.db.selectall(sql): + self.append[row['instantiation']] -- 2.47.0