From 49545a0895dd600f3323872e162d6ebbb483e3b1 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 8 Sep 2006 19:45:04 +0000 Subject: [PATCH] - add min and max Parameter attributes --- PLC/Parameter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PLC/Parameter.py b/PLC/Parameter.py index 1430b270..5dab3639 100644 --- a/PLC/Parameter.py +++ b/PLC/Parameter.py @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ +# $Id: Parameter.py,v 1.1 2006/09/06 15:36:07 mlhuang Exp $ # class Parameter: @@ -14,9 +14,9 @@ class Parameter: sub-parameters (i.e., dict fields). """ - def __init__(self, type, doc = "", optional = True, default = None): - (self.type, self.doc, self.optional, self.default) = \ - (type, doc, optional, default) + def __init__(self, type, doc = "", min = None, max = None, optional = True, default = None): + (self.type, self.doc, self.min, self.max, self.optional, self.default) = \ + (type, doc, min, max, optional, default) def __repr__(self): return repr(self.type) -- 2.47.0