Issue 93994

Summary: Python user's scripts are not recognized
Product: App Dev Reporter: hanya <ooo>
Component: scriptingAssignee: andreschnabel <andre.schnabel>
Status: CLOSED FIXED QA Contact: Unknown <non-migrated>
Severity: Trivial    
Priority: P3 CC: andre.schnabel, issues, rene
Version: 3.3.0 or older (OOo)Keywords: regression
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 93339    
Attachments:
Description Flags
User url fixed none

Description hanya 2008-09-17 17:05:19 UTC
All user's python scripts are not recognized that placed in Scripts/python
directory of user directory and they are not shown on the Python Macros dialog.
Shared macros are recognized and they work well.

Here is a debug output:

mo4plus-x86% ./opt/openoffice.org3/program/soffice
pythonloader.Loader ctor
pythonloader.Loader.activate
pythonloader: interpreting url vnd.openoffice.pymodule:pythonscript
pythonloader: after expansion vnd.openoffice.pymodule:pythonscript
Thu Sep 18 00:47:09 2008 [DEBUG] pythonscript loading
Thu Sep 18 00:47:09 2008 [DEBUG] pythonscript finished intializing
Thu Sep 18 00:47:09 2008 [DEBUG] Entering PythonScriptProvider.ctoruser
user
Thu Sep 18 00:47:09 2008 [DEBUG] PythonScriptProvider could not be instantiated
because of : uno.com.sun.star.uno.RuntimeException: ScriptingFrameworkURIHelper
cannot find script directory
  /home/user/Desktop/opt/openoffice.org/basis3.0/program/pythonscript.py:686 in
function __init__() [urlHelper =
ctx.ServiceManager.createInstanceWithArgumentsAndContext(]

Thu Sep 18 00:47:09 2008 [DEBUG] Entering PythonScriptProvider.ctorshare
share
Thu Sep 18 00:47:09 2008 [DEBUG] got urlHelper pyuno object
(com.sun.star.uno.XInterface)0x-4e6e5310{implementationName=com.sun.star.script.provider.ScriptURIHelper,
supportedServices={com.sun.star.script.provider.ScriptURIHelper},
supportedInterfaces={com.sun.star.script.provider.XScriptURIHelper,com.sun.star.lang.XServiceInfo,com.sun.star.lang.XInitialization,com.sun.star.lang.XTypeProvider,com.sun.star.uno.XWeak}}
Thu Sep 18 00:47:09 2008 [DEBUG] share transformed to
file:///home/user/Desktop/opt/openoffice.org3/program/../basis-link/share/Scripts/python
Thu Sep 18 00:47:10 2008 [DEBUG] Entering
PythonScriptProvider.ctorvnd.sun.star.tdoc:/1
vnd.sun.star.tdoc:/1
Thu Sep 18 00:47:10 2008 [DEBUG] got urlHelper pyuno object
(com.sun.star.uno.XInterface)0x-5143a8b8{implementationName=com.sun.star.script.provider.ScriptURIHelper,
supportedServices={com.sun.star.script.provider.ScriptURIHelper},
supportedInterfaces={com.sun.star.script.provider.XScriptURIHelper,com.sun.star.lang.XServiceInfo,com.sun.star.lang.XInitialization,com.sun.star.lang.XTypeProvider,com.sun.star.uno.XWeak}}
Thu Sep 18 00:47:10 2008 [DEBUG] vnd.sun.star.tdoc:/1 transformed to
vnd.sun.star.tdoc:/1/Scripts/python
mo4plus-x86%
Comment 1 kay.ramme 2008-09-23 08:06:16 UTC
Joerg, are you the right one for this?


      Kay
Comment 2 joergbudi 2008-10-24 21:08:16 UTC
Created attachment 57441 [details]
User url fixed
Comment 3 joergbudi 2008-10-24 21:16:51 UTC
*** Issue 95118 has been marked as a duplicate of this issue. ***
Comment 4 rene 2008-11-13 09:26:28 UTC
now that we have a patch for ~ 3 weeks now, can we get this into a cws to fix it
for 3.1 (or even 3.0.1)? :-)
Comment 5 rene 2008-11-17 14:20:06 UTC
set target (as discueed in the release status meeting)
Comment 6 fhatat 2008-11-20 15:32:53 UTC
Issue 95118 contains a more general patch (which fixes both issues): could you
use it, instead of the patch attached here?
Comment 7 joergbudi 2008-11-20 20:03:13 UTC
patch for issue 93994 commited to cws sb101 (target milestone 3.1), which
contained the fix for this issue. 

@rene: Or did you apply the patch to some other cws ? I won't be able to setup a
separate cws for 3.0.1
Comment 8 rene 2008-11-21 09:40:53 UTC
> @rene: Or did you apply the patch to some other cws ?

No, I didn't.

> I won't be able to setup a separate cws for 3.0.1

why?
Comment 9 rene 2008-12-01 20:42:21 UTC
jbu: I've no idea why you (or Sun) decide to not fix those (togethet with 95118)
regressions yourself, but to make it 3.0.1 I set up a cws.

Fixed in cws pyunoregressions301
Comment 10 andreschnabel 2008-12-03 08:03:03 UTC
taking for verification
Comment 11 andreschnabel 2008-12-03 08:03:51 UTC
verified in pyunoregressions301, new target
Comment 12 joergbudi 2008-12-07 21:00:46 UTC
verified additionally on sb101 (see remarks in 95118)
Comment 13 andreschnabel 2009-04-04 20:15:05 UTC
ok in 3.1 - closed