- id_list is optional
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 26 Oct 2006 14:51:12 +0000 (14:51 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 26 Oct 2006 14:51:12 +0000 (14:51 +0000)
PLC/SliceAttributes.py

index 2494acf..f7c3499 100644 (file)
@@ -25,13 +25,13 @@ class SliceAttribute(Row):
         'value': Parameter(str, "Slice attribute value", max = 254),
         }
 
         'value': Parameter(str, "Slice attribute value", max = 254),
         }
 
-class SliceAttributes(dict):
+class SliceAttributes(Table):
     """
     Representation of row(s) from the slice_attribute table in the
     database.
     """
 
     """
     Representation of row(s) from the slice_attribute table in the
     database.
     """
 
-    def __init__(self, api, slice_attribute_id_list):
+    def __init__(self, api, slice_attribute_id_list = None):
        self.api = api
 
         sql = "SELECT %s FROM view_slice_attributes" % \
        self.api = api
 
         sql = "SELECT %s FROM view_slice_attributes" % \