Removed permission keys from node type definitions.

This prevents replace_pillar_node_type_schemas() from overwriting existing
permissions.
This commit is contained in:
2016-10-20 12:57:59 +02:00
parent 7f4ad85781
commit 3afeeaccd0
10 changed files with 68 additions and 41 deletions

View File

@@ -69,6 +69,4 @@ node_type_asset = {
'tags': {'visible': False},
'categories': {'visible': False}
},
'permissions': {
}
}

View File

@@ -18,12 +18,4 @@ node_type_blog = {
'template': {},
},
'parent': ['project',],
'permissions': {
# 'groups': [{
# 'group': app.config['ADMIN_USER_GROUP'],
# 'methods': ['GET', 'PUT', 'POST']
# }],
# 'users': [],
# 'world': ['GET']
}
}

View File

@@ -65,6 +65,4 @@ node_type_comment = {
'is_reply': {}
},
'parent': ['asset', 'comment'],
'permissions': {
}
}

View File

@@ -28,6 +28,4 @@ node_type_group = {
'notes': {'visible': False},
'order': {'visible': False}
},
'permissions': {
}
}

View File

@@ -50,5 +50,4 @@ node_type_page = {
'attachments': {'visible': False},
},
'parent': ['project', ],
'permissions': {}
}

View File

@@ -55,5 +55,4 @@ node_type_post = {
'attachments': {'visible': False},
},
'parent': ['blog', ],
'permissions': {}
}

View File

@@ -27,11 +27,4 @@ node_type_storage = {
'backend': {}
},
'parent': ['group', 'project'],
'permissions': {
# 'groups': [{
# 'group': app.config['ADMIN_USER_GROUP'],
# 'methods': ['GET', 'PUT', 'POST']
# }],
# 'users': [],
}
}

View File

@@ -56,8 +56,7 @@ EXAMPLE_PROJECT = {
u'url': {u'type': u'string'}},
u'form_schema': {u'order': {}, u'status': {}, u'url': {}},
u'name': u'group_texture',
u'parent': [u'group_texture', u'project'],
u'permissions': {}},
u'parent': [u'group_texture', u'project']},
{u'description': u'Generic group node type edited',
u'dyn_schema': {u'notes': {u'maxlength': 256, u'type': u'string'},
u'order': {u'type': u'integer'},
@@ -66,8 +65,7 @@ EXAMPLE_PROJECT = {
u'url': {u'type': u'string'}},
u'form_schema': {u'notes': {}, u'order': {}, u'status': {}, u'url': {}},
u'name': u'group',
u'parent': [u'group', u'project'],
u'permissions': {}},
u'parent': [u'group', u'project']},
{u'description': u'Basic Asset Type',
u'dyn_schema': {
u'attachments': {u'schema': {u'schema': {u'field': {u'type': u'string'},
@@ -107,8 +105,7 @@ EXAMPLE_PROJECT = {
u'status': {},
u'tags': {}},
u'name': u'asset',
u'parent': [u'group'],
u'permissions': {}},
u'parent': [u'group']},
{u'description': u'Entrypoint to a remote or local storage solution',
u'dyn_schema': {u'backend': {u'type': u'string'},
u'subdir': {u'type': u'string'}},
@@ -145,16 +142,14 @@ EXAMPLE_PROJECT = {
u'ratings': {},
u'status': {}},
u'name': u'comment',
u'parent': [u'asset', u'comment'],
u'permissions': {}},
u'parent': [u'asset', u'comment']},
{u'description': u'Container for node_type post.',
u'dyn_schema': {u'categories': {u'schema': {u'type': u'string'},
u'type': u'list'},
u'template': {u'type': u'string'}},
u'form_schema': {u'categories': {}, u'template': {}},
u'name': u'blog',
u'parent': [u'project'],
u'permissions': {}},
u'parent': [u'project']},
{u'description': u'A blog post, for any project',
u'dyn_schema': {
u'attachments': {u'schema': {u'schema': {u'field': {u'type': u'string'},
@@ -189,8 +184,7 @@ EXAMPLE_PROJECT = {
u'status': {},
u'url': {}},
u'name': u'post',
u'parent': [u'blog'],
u'permissions': {}},
u'parent': [u'blog']},
{u'description': u'Image Texture',
u'dyn_schema': {u'aspect_ratio': {u'type': u'float'},
u'categories': {u'type': u'string'},
@@ -230,8 +224,7 @@ EXAMPLE_PROJECT = {
u'status': {},
u'tags': {}},
u'name': u'texture',
u'parent': [u'group'],
u'permissions': {}}],
u'parent': [u'group']}],
u'nodes_blog': [],
u'nodes_featured': [],
u'nodes_latest': [],