added default option
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 5 Oct 2012 03:59:19 +0000 (23:59 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 5 Oct 2012 03:59:19 +0000 (23:59 -0400)
PLC/Parameter.py

index 14a8b18..d4927c4 100644 (file)
@@ -19,6 +19,7 @@ class Parameter:
                  min = None, max = None,
                  optional = None,
                  ro = False,
+                 default=None,
                  nullok = False, 
                  primary_key = False, 
                  indexed = False,
@@ -43,6 +44,9 @@ class Parameter:
         # Whether the DB field is read-only.
         self.ro = ro
 
+        # default value
+        self.default = default
+
         # Whether the DB field can be NULL.
         self.nullok = nullok