- fix typo
[plcapi.git] / PLC / SliceInstantiations.py
1 #
2 # Functions for interacting with the slice_instantiations table in the database
3 #
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2006 The Trustees of Princeton University
6 #
7 # $Id: SliceInstantiations.py,v 1.1 2006/10/02 15:36:48 mlhuang Exp $
8 #
9
10 class SliceInstantiations(list):
11     """
12     Representation of the slice_instantiations table in the database.
13     """
14
15     def __init__(self, api):
16         sql = "SELECT instantiation FROM slice_instantiations"
17
18         for row in api.db.selectall(sql):
19             self.append(row['instantiation'])