Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242522 - app-office/openoffice-3.0.0 ignores user Python macros
Summary: app-office/openoffice-3.0.0 ignores user Python macros
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 23:57 UTC by Lawrence D'Oliveiro
Modified: 2009-01-12 00:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lawrence D'Oliveiro 2008-10-17 23:57:41 UTC
With previous versions of OpenOffice.org, you could put custom Python scripts in a directory called ~/.ooo<ver>/user/Scripts/python/, and they would show up in the macro dialogs. Since installing version 3.0, this no longer seems to be the case.

Reproducible: Always

Steps to Reproduce:
1. Note the instructions at <http://wiki.services.openoffice.org/wiki/Python_as_a_macro_language>. On Gentoo with previous versions of Ooo, the user prefs directory was ~/.ooo-2.0/, with Ooo 3 it's ~/.ooo3/.
2. In each case, note that the user prefs directory contains a directory called "user".
3. Within this "user" directory, create a subdirectory called "Scripts" (capital-S), and within that, a subdirectory called "python".
4. Copy a script, e.g. the dynamicDialog.py example linked from the above Ooo wiki page, into this "python" directory.
5. Launch Ooo Writer, and go to the "Tools->Macros" submenu, and look in either the "Run Macro..." or "Organize Macros->Python..." dialogs. In Ooo 2.x, if you expand the "My Macros" list item, you will see "dynamicDialog" appear, with the name of a macro that you can run. In Ooo 3.0.0, this does not appear.
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-10-18 09:13:45 UTC
Perhaps this posting is related?

http://user.services.openoffice.org/en/forum/viewtopic.php?f=45&p=50658
Comment 2 Lawrence D'Oliveiro 2008-10-19 02:15:52 UTC
(In reply to comment #1)

> Perhaps this posting is related?

Doesn't look like it. That seems to be reporting problems running Python scripts in general. If I copy my own Python script to /usr/lib/openoffice/basis3.0/share/Scripts/python/, it shows up in the macro dialogs and runs just fine. Ooo is just not looking in my user Scripts directory.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-19 16:21:10 UTC
Did you try to redo you user install? (with a clean .ooo3, note that you would have to delete .ooo-2.0 beforehand too).
Comment 4 Björn Michaelsen 2008-10-22 21:37:20 UTC
upstream bug:
http://www.openoffice.org/issues/show_bug.cgi?id=93994
Comment 5 Angelo Arrifano (RETIRED) gentoo-dev 2008-11-08 18:28:48 UTC
(In reply to comment #4)
> upstream bug:
> http://www.openoffice.org/issues/show_bug.cgi?id=93994
> 

The patch provided by upstream fixed the problem for me.
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-12 00:00:53 UTC
A fix for this is already incorporated in the latest ooo-build patchset (which we have in portage since some time now). If you still have that problem, rebuild OOo and it should be gone