From: Tony Mack Date: Fri, 5 Oct 2012 03:59:19 +0000 (-0400) Subject: added default option X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=00389384499356508b2dfb42c95dab68662b4a1a;p=plcapi.git added default option --- diff --git a/PLC/Parameter.py b/PLC/Parameter.py index 14a8b189..d4927c42 100644 --- a/PLC/Parameter.py +++ b/PLC/Parameter.py @@ -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