https://bugs.documentfoundation.org/show_bug.cgi?id=161893

            Bug ID: 161893
           Summary: Python script are not saved with .fods format
           Product: LibreOffice
           Version: 7.6.7.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: lp...@cordier.org

Description:
Hi,

I found that Python scripts can't be embedded in flat ODS files in calc at
least.
I'm currently using an extension called APSO
(https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python).

I found that apparently, python scripts, in classical ODS .zip hierarchy, are
stored in subfolder Scripts/python according to this website:

https://christopher5106.github.io/office/2015/12/06/openoffice-libreoffice-automate-your-office-tasks-with-python-macros.html

(see section: Pack your script inside the document : the OpenDocument format)

However when creating a BASIC script, it is properly embedded in the XML file
using the token <ooo:library-embedded>

After watching quickly the source code, I think it is a missing feature rather
than a bug of Libreoffice calc.

I'm currently running 7.6.7.2 on Linux.

Any help on this?

Thanks!

Steps to Reproduce:
1. Install APSO extension
2. Go to Tools->Maccro->Manage Python scripts
3. Create a new Python module & scripts
4. Try to save your document as (flat) fods format

Actual Results:
Python script vanish from the fods file

Expected Results:
Python script should be embedded inside the fods file.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.7.2 (X86_64)
Build ID: 60(Build:2)
CPU threads: 4; OS: Linux 6.9; UI render: default; VCL: gtk3
Locale: en-GB (fr_FR.UTF-8); UI: en-GB
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to