This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new f2bb01d  Got docs generating again after Translator changes CTR
f2bb01d is described below

commit f2bb01d2ed890eef4e715f8309a0f38ab902fbd5
Author: stephen <[email protected]>
AuthorDate: Tue Oct 29 08:30:47 2019 -0400

    Got docs generating again after Translator changes CTR
---
 docs/preprocessor/awk/init-code-blocks.awk | 2 +-
 docs/src/recipes/anti-patterns.asciidoc    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/preprocessor/awk/init-code-blocks.awk 
b/docs/preprocessor/awk/init-code-blocks.awk
index 466cb90..ec5a845 100644
--- a/docs/preprocessor/awk/init-code-blocks.awk
+++ b/docs/preprocessor/awk/init-code-blocks.awk
@@ -83,7 +83,7 @@ BEGIN {
       print "    mapper = 
GraphSONMapper.build().version(GraphSONVersion.V2_0).create().createMapper()"
       print "    bytecode = 
mapper.readValue(jython.eval('GraphSONWriter().writeObject(j)').toString(), 
Bytecode.class)"
       print "    language = 
BytecodeHelper.getLambdaLanguage(bytecode).orElse('gremlin-groovy')"
-      print "    result = language.equals('gremlin-groovy') ? 
groovy.eval(org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyTranslator.of(\"g\").translate(bytecode)
 + '.toList()').toString() : 
jython.eval(JythonTranslator.of(\"h\").translate(bytecode) + 
'.toList()').toString()"
+      print "    result = language.equals('gremlin-groovy') ? 
groovy.eval(org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyTranslator.of(\"g\").translate(bytecode).getScript()
 + '.toList()').toString() : 
jython.eval(JythonTranslator.of(\"h\").translate(bytecode).getScript() + 
'.toList()').toString()"
       print "    jython.getContext().getBindings(GLOBAL_SCOPE).put('json', 
mapper.writeValueAsString(result))"
       print "    return 
jython.eval('GraphSONReader().readObject(json)').toString()"
       print "  } else {"
diff --git a/docs/src/recipes/anti-patterns.asciidoc 
b/docs/src/recipes/anti-patterns.asciidoc
index 50ede67..f786833 100644
--- a/docs/src/recipes/anti-patterns.asciidoc
+++ b/docs/src/recipes/anti-patterns.asciidoc
@@ -56,7 +56,7 @@ for (relation in relations) {
           from("p${relation.from}").
           to("p${relation.to}")
 } ; []
-traversalAsString = 
org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyTranslator.of("g").translate(t.bytecode)
 ; []
+traversalAsString = 
org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyTranslator.of("g").translate(t.bytecode).getScript()
 ; []
 [ "Traversal String Length": traversalAsString.length()
 , "Traversal Preview": traversalAsString.replaceFirst(/^(.{104}).*(.{64})$/, 
'$1 ... $2') ]
 ----

Reply via email to