summaryrefslogtreecommitdiff
path: root/src/server/neo4j_util.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-12-23 14:30:28 +0200
committerLV-426 <lv-426@taproot.org.il>2014-12-23 14:30:28 +0200
commitb239959ede9581bc7d7f3486c8e90c1457e96ab5 (patch)
treeca64b586c104958763b48c463c0cc8ce15986230 /src/server/neo4j_util.py
parenta20e757a094a92195d0f60ee92b83caf8c3669ba (diff)
support space containing label setting on links
Diffstat (limited to 'src/server/neo4j_util.py')
-rw-r--r--src/server/neo4j_util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/neo4j_util.py b/src/server/neo4j_util.py
index 8b48875a..e514f614 100644
--- a/src/server/neo4j_util.py
+++ b/src/server/neo4j_util.py
@@ -73,6 +73,12 @@ class Cypher_String_Formatter(string.Formatter):
def cfmt(fmt_str, *args, **kwargs):
return Cypher_String_Formatter().format(fmt_str, *args, **kwargs)
+def quote__backtick(label):
+ """
+ quote label (possibly containing spaces) with backticks
+ """
+ return '`' + label + '`'
+
def post_neo4j(url, data):
"""
@return dict object from the neo4j json POST response