Updated node types

This commit is contained in:
Francesco Siddi 2015-05-28 15:30:26 +02:00
parent 814db4676a
commit 80c019c921
2 changed files with 20 additions and 8 deletions

View File

@ -161,7 +161,7 @@ class ValidateCustomFields(Validator):
value = convert_properties(value, node_type['dyn_schema'])
except Exception, e:
print ("Error converting: {0}".format(e))
print (value)
#print (value)
v = Validator(node_type['dyn_schema'])
val = v.validate(value)

View File

@ -88,7 +88,7 @@ def populate_node_types(old_ids={}):
"on_hold",
"todo",
"in_progress",
"review_required",
"review",
"final"
],
},
@ -96,15 +96,15 @@ def populate_node_types(old_ids={}):
"type": "string",
"maxlength": 256,
},
"order": {
"type": "integer",
},
"shot_group": {
"type": "string",
#"data_relation": {
# "resource": "nodes",
# "field": "_id",
#},
},
"order": {
"type": "integer",
}
},
"form_schema": {
@ -134,8 +134,7 @@ def populate_node_types(old_ids={}):
"approved",
"cbb",
"final",
"review",
"conflict"
"review"
],
"required": True,
},
@ -186,7 +185,17 @@ def populate_node_types(old_ids={}):
}
},
}
},
"is_conflicting" : {
"type": "boolean"
},
"is_processing" : {
"type": "boolean"
},
"is_open" : {
"type": "boolean"
}
},
"form_schema": {
"status": {},
@ -212,7 +221,10 @@ def populate_node_types(old_ids={}):
}
}
}
}
},
"is_conflicting": {},
"is_open": {},
"is_processing": {},
},
"parent": {
"node_types": ["shot"],