git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5492c56
)
added default option
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 5 Oct 2012 03:59:19 +0000
(23:59 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 5 Oct 2012 03:59:19 +0000
(23:59 -0400)
PLC/Parameter.py
patch
|
blob
|
history
diff --git
a/PLC/Parameter.py
b/PLC/Parameter.py
index
14a8b18
..
d4927c4
100644
(file)
--- 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