https://bugs.documentfoundation.org/show_bug.cgi?id=97790
Bug ID: 97790
Summary: [pyuno] unavailable exported functions and attributes
Product: LibreOffice
Version: 5.1.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: regression
Severity: normal
Priority: medium
Component: sdk
Assignee: [email protected]
Reporter: [email protected]
I made an implementation of a grammar checker in Python (a Lightproof
derivative).
But my own functions implemented in the class are not exported when I call it.
class Lightproof (unohelper.Base, XProofreader, XServiceInfo, XServiceName,
XServiceDisplayName, XSupportedLocales):
def __init__ (self, ctx, *args):
# XServiceName method implementations
def getServiceName (self):
# XServiceInfo method implementations
def getImplementationName (self):
def supportsService (self, ServiceName):
def getSupportedServiceNames (self):
# XSupportedLocales
def hasLocale (self, aLocale):
# XProofreader
def isSpellChecker (self):
def doProofreading (self, nDocId, rText, rLocale, nStartOfSentencePos,
nSuggestedSentenceEndPos, rProperties):
def ignoreRule (self, rid, aLocale):
def resetIgnoreRules (self):
# XServiceDisplayName
def getServiceDisplayName (self, aLocale):
# My own functions
def getDictionary (self):
Then when I call the service with:
gc = ctx.ServiceManager.createInstanceWithContext("my.grammarchecker…",
ctx)
My own functions are not exported anymore.
If I display attributes of 'gc' with "print(dir(gc))", I get the following
result:
['ImplementationId', 'ImplementationName', 'Locales', 'ServiceName',
'SupportedServiceNames', 'Types', 'doProofreading', 'getImplementationId',
'getImplementationName', 'getLocales', 'getServiceDisplayName',
'getServiceName', 'getSupportedServiceNames', 'getTypes', 'hasLocale',
'ignoreRule', 'isSpellChecker', 'queryInterface', 'resetIgnoreRules',
'supportsService']
The function 'getDictionary' has disappeard.
With LO 5, if I list attributes of 'gc', 'getDictionary' is there as many other
attributes.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs