2 # Functions for interacting with the slice_instantiations table in the database
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
7 # $Id: SliceInstantiations.py,v 1.1 2006/09/06 15:36:07 mlhuang Exp $
10 class SliceInstantiations(list):
12 Representation of the slice_instantiations table in the database.
15 def __init__(self, api):
16 sql = "SELECT * FROM slice_instantiations"
18 for row in api.db.selectall(sql):
19 self.append[row['instantiation']]