https://bugs.freedesktop.org/show_bug.cgi?id=66031

          Priority: medium
            Bug ID: 66031
          Assignee: [email protected]
           Summary: com.sun.star.style enumerations missing from pyuno
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: 4.1.0.1 rc
         Component: sdk
           Product: LibreOffice

In LibreOffice 4.0.4.2:

/opt/libreoffice4.0/program/python
Python 3.3.0 (default, Jun 11 2013, 12:59:38) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> uno.getConstantByName("com.sun.star.style.ParagraphAdjust.CENTER")
3
>>> uno.getConstantByName("com.sun.star.style.ParagraphAdjust.LEFT")  
0


But in LibreOffice 4.1.0.1:

/opt/libreoffice/4.1/program/python
Python 3.3.0 (default, Jun 18 2013, 17:24:23) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> uno.getConstantByName("com.sun.star.style.ParagraphAdjust.CENTER")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/libreoffice4.1/program/uno.py", line 48, in getConstantByName
    return pyuno.getConstantByName( constant )
uno.RuntimeException: pyuno.getConstantByName:
com.sun.star.style.ParagraphAdjust.CENTERis not a constant
>>> uno.getConstantByName("com.sun.star.style.ParagraphAdjust.LEFT")      
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/libreoffice4.1/program/uno.py", line 48, in getConstantByName
    return pyuno.getConstantByName( constant )
uno.RuntimeException: pyuno.getConstantByName:
com.sun.star.style.ParagraphAdjust.LEFTis not a constant


I tried a few other style enumerations (like PageStyleLayout and TabAlign) and
they fail as well, but I haven't done broader testing to see if it affects more
than just the paragraph style enumerations.

This is the first 4.1 release I've tried, so I am not sure if it was present
prior to the RC.

-- David

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to