Author: justi9
Date: 2007-10-16 13:39:02 -0400 (Tue, 16 Oct 2007)
New Revision: 1092
Modified:
mgmt/cumin/python/cumin/demo.py
mgmt/cumin/python/cumin/model.py
Log:
Adds a type field to config params.
Modified: mgmt/cumin/python/cumin/demo.py
===================================================================
--- mgmt/cumin/python/cumin/demo.py 2007-10-16 17:32:06 UTC (rev 1091)
+++ mgmt/cumin/python/cumin/demo.py 2007-10-16 17:39:02 UTC (rev 1092)
@@ -110,18 +110,21 @@
prop.name = "max_threads"
prop.value = 1000
prop.server_value = 1000
+ prop.type = "integer"
obj.add_config_property(prop)
prop = ConfigProperty(self.model)
prop.name = "max_memory"
prop.value = 1000000
prop.server_value = 2000000
+ prop.type = "integer"
obj.add_config_property(prop)
prop = ConfigProperty(self.model)
prop.name = "ssl_enabled"
prop.value = True
prop.server_value = True
+ prop.type = "boolean"
obj.add_config_property(prop)
def load_vhost(self, vhost):
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2007-10-16 17:32:06 UTC (rev 1091)
+++ mgmt/cumin/python/cumin/model.py 2007-10-16 17:39:02 UTC (rev 1092)
@@ -186,6 +186,7 @@
self.name = None
self.value = None
self.server_value = None
+ self.type = None # ("boolean", "integer",
"string")
class ServerGroup(ModelObject):
def __init__(self, model):