new method next_id(...) returns next primary key id
[plcapi.git] / PLC / NodeGroups.py
index 6ec7a4f..9292467 100644 (file)
@@ -30,13 +30,14 @@ class NodeGroup(Row):
     fields = {
         'nodegroup_id': Parameter(int, "Node group identifier"),
         'groupname': Parameter(str, "Node group name", max = 50),
-        'node_tag_type_id': Parameter (int, "Node tag type id"),
-        'value' : Parameter(str, "value that the nodegroup definition is based upon"),
-        }
-    related_fields = {
-        'name' : Parameter(str, "Tag name that the nodegroup definition is based upon"),
+        'tag_type_id': Parameter (int, "Node tag type id"),
+        'tagvalue' : Parameter(str, "value that the nodegroup definition is based upon"),
+        'tagname' : Parameter(str, "Tag name that the nodegroup definition is based upon"),
         'conf_file_ids': Parameter([int], "List of configuration files specific to this node group"),
+        'node_ids' : Parameter([int], "List of node_ids that belong to this nodegroup"),
        }
+    related_fields = {
+        }
 
     def validate_name(self, name):
        # Make sure name is not blank