summaryrefslogtreecommitdiff
path: root/src/server/neo4j_util.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-01-05 19:08:15 +0200
committerLV-426 <lv-426@taproot.org.il>2015-01-05 19:11:50 +0200
commit78ecd7b093d51805083de318fda410ca2b18cf9a (patch)
tree5ccd1581eeff34cf5bd1f089de46a2dacba28a0e /src/server/neo4j_util.py
parent557fcbf75fcfdb3172e1bb562bed933dfb9e330f (diff)
relax valid label assertions
Diffstat (limited to 'src/server/neo4j_util.py')
-rw-r--r--src/server/neo4j_util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/neo4j_util.py b/src/server/neo4j_util.py
index 2fb44889..6289fdc9 100644
--- a/src/server/neo4j_util.py
+++ b/src/server/neo4j_util.py
@@ -174,7 +174,8 @@ def gen_query_create_from_node_map(node_map, input_to_DB_property_map=lambda _:
generate a set of node create queries
@param node_map: is a node-type to node map
- @input_to_DB_property_map: optional function which takes a map of input properties and returns a map of DB properties - use to map input schemas to DB schemas
+ @input_to_DB_property_map: optional function which takes a map of input
+ properties and returns a map of DB properties - use to map input schemas to DB schemas
@return: a (query, query_parameteres) set of create queries
"""
@@ -183,7 +184,7 @@ def gen_query_create_from_node_map(node_map, input_to_DB_property_map=lambda _:
ret = []
for label, n_set in node_map.items():
- assert len(label) > 2 and label[0].isupper() and label[1:].islower(), 'malformed label: ' + label
+ assert len(label) > 2 and label[0].isupper(), 'malformed label: ' + label
q_arr = ['create (n:%s {node_attr})' % (quote__backtick(label)),
'return n, labels(n)'