You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/08/28 18:04:14 UTC

tinkerpop git commit: Ignore sack test with BigInteger for gremlin-python.

Repository: tinkerpop
Updated Branches:
  refs/heads/master e31a2cb46 -> a1315deaf


Ignore sack test with BigInteger for gremlin-python.

At this point gremlin-python doesn't yet implement extended graphson 2.0 CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a1315dea
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a1315dea
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a1315dea

Branch: refs/heads/master
Commit: a1315deaf88eed836d53001e3d874d5501ce5995
Parents: e31a2cb
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Sun Aug 28 14:03:15 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Sun Aug 28 14:03:15 2016 -0400

----------------------------------------------------------------------
 .../gremlin/python/jsr223/PythonGraphSONJavaTranslator.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a1315dea/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/jsr223/PythonGraphSONJavaTranslator.java
----------------------------------------------------------------------
diff --git a/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/jsr223/PythonGraphSONJavaTranslator.java b/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/jsr223/PythonGraphSONJavaTranslator.java
index 7dd8a23..8bb5330 100644
--- a/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/jsr223/PythonGraphSONJavaTranslator.java
+++ b/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/jsr223/PythonGraphSONJavaTranslator.java
@@ -27,6 +27,7 @@ import org.apache.tinkerpop.gremlin.process.traversal.TraversalSource;
 import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper;
 import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONReader;
 import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONVersion;
+import org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONXModuleV2d0;
 import org.apache.tinkerpop.gremlin.util.ScriptEngineCache;
 
 import javax.script.Bindings;
@@ -41,7 +42,9 @@ final class PythonGraphSONJavaTranslator<S extends TraversalSource, T extends Tr
 
     private final PythonTranslator pythonTranslator;
     private final JavaTranslator<S, T> javaTranslator;
-    private final GraphSONReader reader = GraphSONReader.build().mapper(GraphSONMapper.build().version(GraphSONVersion.V2_0).create()).create();
+    private final GraphSONReader reader = GraphSONReader.build().mapper(
+            GraphSONMapper.build().addCustomModule(GraphSONXModuleV2d0.build().create(false))
+                                  .version(GraphSONVersion.V2_0).create()).create();
 
     public PythonGraphSONJavaTranslator(final PythonTranslator pythonTranslator, final JavaTranslator<S, T> javaTranslator) {
         this.pythonTranslator = pythonTranslator;