Added CLI command to create blogs.

This commit is contained in:
2016-10-26 10:52:37 +02:00
parent 62ac12deff
commit a38e053c1a
4 changed files with 87 additions and 3 deletions

View File

@@ -60,6 +60,9 @@ def add_to_project(project, node_types, replace_existing):
Overwrites any existing by the same name when replace_existing=True.
"""
assert isinstance(project, dict)
assert isinstance(node_types, (list, set, frozenset, tuple))
project_id = project['_id']
for node_type in node_types: