WIP adding Comments
This commit is contained in:
parent
7f77089278
commit
dcab7b91ea
@ -175,7 +175,7 @@ def populate_node_types(old_ids={}):
|
|||||||
"owners": {
|
"owners": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"users":{
|
"users":{
|
||||||
"items": ['User'],
|
"items": [('User', 'email')],
|
||||||
},
|
},
|
||||||
"groups":{}
|
"groups":{}
|
||||||
}
|
}
|
||||||
@ -229,6 +229,32 @@ def populate_node_types(old_ids={}):
|
|||||||
'parent': {}
|
'parent': {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comment_node_type = {
|
||||||
|
'name': 'comment',
|
||||||
|
'description': 'Comment node type',
|
||||||
|
'dyn_schema': {
|
||||||
|
'text': {
|
||||||
|
'type': 'string',
|
||||||
|
'maxlength': 256
|
||||||
|
},
|
||||||
|
'attachments': {
|
||||||
|
'type': 'list',
|
||||||
|
'schema': {
|
||||||
|
'type': 'objectid'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'form_schema': {
|
||||||
|
'text': {},
|
||||||
|
'attachments': {
|
||||||
|
'items': [("File", "name")]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'parent': {
|
||||||
|
"node_types": ["shot", "task"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
from pymongo import MongoClient
|
from pymongo import MongoClient
|
||||||
|
|
||||||
client = MongoClient()
|
client = MongoClient()
|
||||||
@ -259,6 +285,7 @@ def populate_node_types(old_ids={}):
|
|||||||
upgrade(task_node_type, old_ids)
|
upgrade(task_node_type, old_ids)
|
||||||
upgrade(scene_node_type, old_ids)
|
upgrade(scene_node_type, old_ids)
|
||||||
upgrade(act_node_type, old_ids)
|
upgrade(act_node_type, old_ids)
|
||||||
|
upgrade(comment_node_type, old_ids)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user