[Libreoffice-commits] help.git: source/text

LibreOļ¬ƒciant (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 25 10:33:08 UTC 2019


 source/text/sbasic/guide/basic_2_python.xhp |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 8af9c4cb203beb51c5104d3a45e1a0b084511665
Author:     LibreOļ¬ƒciant <LibreOfficiant at sfr.fr>
AuthorDate: Fri Oct 25 08:39:01 2019 +0200
Commit:     Olivier Hallot <olivier.hallot at libreoffice.org>
CommitDate: Fri Oct 25 12:32:46 2019 +0200

    Wrong links & extra bookmarks
    
    Change-Id: I454e5ee23a17e48931dee2d51ad1639fb73ecba9
    Reviewed-on: https://gerrit.libreoffice.org/81487
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/source/text/sbasic/guide/basic_2_python.xhp b/source/text/sbasic/guide/basic_2_python.xhp
index f80cb1658..945566211 100644
--- a/source/text/sbasic/guide/basic_2_python.xhp
+++ b/source/text/sbasic/guide/basic_2_python.xhp
@@ -19,6 +19,7 @@
          <bookmark_value>Basic;Calling Python</bookmark_value>
          <bookmark_value>API;SimpleFileAccess</bookmark_value>
          <bookmark_value>API;PathSettings</bookmark_value>
+         <bookmark_value>API;XScript</bookmark_value>
       </bookmark>
       <h1 id="hd_id811571848401485"><variable id="basic2python"><link href="text/sbasic/guide/basic_2_python.xhp" name="Basic Programming Examples">Calling Python macros from Basic</link></variable></h1>
       <paragraph role="paragraph" id="N0432">Calling Python scripts from %PRODUCTNAME Basic macros is possible, and valuable features can be obtained such as:</paragraph>
@@ -57,7 +58,7 @@
          <paragraph role="bascode" localize="false" id="N0462">End Function ' GetPythonScript</paragraph>
       </bascode>
       <h2 id="N0463">Executing Python Scripts</h2>
-      <embed href="text.sbasic.python/python_2_basic.xhp#APIScriptingFramework" />
+      <embed href="text/sbasic/python/python_2_basic.xhp#APIScriptingFramework" />
       <h3 id="N0464">Syntax</h3>
       <paragraph role="paragraph" id="N0465"><literal>workstation_name = script.invoke(Array(), Array(), Array())</literal></paragraph>
       <paragraph role="paragraph" id="N0466"><literal>opSysName = script.invoke(Array(), in_outs, Array())</literal> ' in_out is an Array</paragraph>
@@ -112,7 +113,7 @@
          <paragraph role="pycode" localize="false" id="N0510">def computer_name() -> str:</paragraph>
          <paragraph role="pycode" localize="false" id="N0511">    return platform.node()</paragraph>
          <paragraph role="pycode" localize="false" id="N0512"> </paragraph>
-         <paragraph role="pycode" localize="false" id="N0513">def OSname():</paragraph>
+         <paragraph role="pycode" localize="false" id="N0513">def OSname() -> str:</paragraph>
          <paragraph role="pycode" localize="false" id="N0514">    return platform.system()</paragraph>
       </pycode>
       <list type="unordered">
@@ -172,7 +173,7 @@
          <listitem><paragraph role="listitem" id="N0562"><emph>xml.etree.ElementTree</emph> ElementTree XML API</paragraph></listitem>
       </list>
       <section id="relatedtopics" >
-         <embed href="text/sbasic/python/python_2_basic.xhp#py2bah1"/>
+         <embed href="text/sbasic/python/python_2_basic.xhp#py2bas1"/>
          <embed href="text/sbasic/shared/main0601.xhp#mainsbasic"/>
          <embed href="text/sbasic/python/main0000.xhp#pythonscriptshelp"/>
       </section>


More information about the Libreoffice-commits mailing list