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

asf-gitbox-commits pushed a commit to branch python-editing-embedding
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit d2cc3a1ab9e89fb0e1752bc9ca5a424202cdf3ce
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Sun Apr 26 19:46:51 2026 +0200

    Make the edit dialog permanent.
    
    Patch by: me
---
 main/scripting/source/pyprov/pythonscript.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/main/scripting/source/pyprov/pythonscript.py 
b/main/scripting/source/pyprov/pythonscript.py
index 9b7edbee83..2594eeed2e 100644
--- a/main/scripting/source/pyprov/pythonscript.py
+++ b/main/scripting/source/pyprov/pythonscript.py
@@ -52,7 +52,6 @@ elif os.environ.get(PYSCRIPT_LOG_ENV) == "DEBUG":
 # False, writes to user/Scripts/python/log.txt
 LOG_STDOUT = os.environ.get(PYSCRIPT_LOG_STDOUT_ENV, "1") != "0"
 
-ENABLE_EDIT_DIALOG=True                    # offers a minimal editor for 
editing.
 #-------------------------------------------------------------------
 
 def encfile(uni):
@@ -611,7 +610,7 @@ class ScriptBrowseNode( unohelper.Base, XBrowseNode, 
XPropertySet, XInvocation,
             if name == "URI":
                 ret = self.provCtx.uriHelper.getScriptURI(
                     self.provCtx.getPersistentUrlFromStorageUrl( self.uri() + 
"$" + self.funcName ) )
-            elif name == "Editable" and ENABLE_EDIT_DIALOG:
+            elif name == "Editable":
                 ret = not self.provCtx.sfa.isReadOnly( self.uri() )
 
             log.debug( "ScriptBrowseNode.getPropertyValue called for " + name 
+ ", returning " + str(ret) )

Reply via email to