unset None fields, if allowed
[plcapi.git] / PLC / NodeGroups.py
index 23ab4f1..b27c3a0 100644 (file)
@@ -4,7 +4,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: NodeGroups.py,v 1.14 2006/10/24 20:02:22 mlhuang Exp $
+# $Id: NodeGroups.py,v 1.15 2006/10/25 14:29:13 mlhuang Exp $
 #
 
 from types import StringTypes
@@ -28,7 +28,7 @@ class NodeGroup(Row):
     fields = {
         'nodegroup_id': Parameter(int, "Node group identifier"),
         'name': Parameter(str, "Node group name", max = 50),
-        'description': Parameter(str, "Node group description", max = 200),
+        'description': Parameter(str, "Node group description", max = 200, nullok = True),
         'node_ids': Parameter([int], "List of nodes in this node group"),
         'conf_file_ids': Parameter([int], "List of configuration files specific to this node group"),
         }