https://bugs.freedesktop.org/show_bug.cgi?id=81125
Priority: medium
Bug ID: 81125
Assignee: [email protected]
Summary: self.desktop.loadComponentFromURL with private:stream
Returns "NoneType"
Severity: major
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: UNCONFIRMED
Version: 4.3.0.2 rc
Component: sdk
Product: LibreOffice
...
inputfn=sys.stdin.buffer.read()
inputStream =
self.svcmgr.createInstanceWithContext("com.sun.star.io.SequenceInputStream",
self.context)
inputStream.initialize((uno.ByteSequence(inputfn),))
document = self.desktop.loadComponentFromURL("private:stream", "_blank", 0,
UnoProps(Hidden=True, ReadOnly=True, InputStream=inputStream)
...
# at this point document is `None'. So the following code throws AttributeError
document.storeToURL(outputurl, tuple(outputprops))
=> AttributeError: 'NoneType' object has no attribute 'storeToURL'
This worked fine in 4.2
--
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