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

            Bug ID: 163090
           Summary: No more access to HSQL Base doc DataSource from 24.8
                    onwards (Python)
           Product: LibreOffice
           Version: 24.8.1.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Python macro stopped functioning while Basic counterpart still works fine

Steps to Reproduce:
1. display table relationships menu. Remove any present relations between
tables, tables should exhibit no relationships.
2. run 'SetRelationships' Python script
3. check that 2 relations have been set

3.

Actual Results:
Python script fails:

com.sun.star.uno.RuntimeException: Error during invoking function
SetRelationships in module
vnd.sun.star.tdoc:/58078120/Scripts/python/Relationships.py (<class
'AttributeError'>: 'NoneType' object has no attribute 'DataSource'
  File "/opt/libreoffice24.8/program/pythonscript.py", line 913, in invoke
    ret = self.func( *args )
  File "vnd.sun.star.tdoc:/58078120/Scripts/python/Relationships.py", line 11,
in SetRelationships


Expected Results:
cf. attached capture


Reproducible: Always


User Profile Reset: No

Additional Info:
Running equivalent Basic Standard.Module1.PysCreerRelation() works normally.

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

Reply via email to