path: root/pyuno
AgeCommit message (Collapse)AuthorFilesLines
2014-12-02pyuno: move "" from scripting to pyunoMichael Stahl2-0/+85
... because at least in Fedora packages with system python it's a pain to use officehelper.bootstrap() because unlike pyuno it is not installed in the standard python directories but in libreoffice/program. You might think that bootstrap() is not appropriate functionality for a UNO langauge binding, but then why does ::cppu::bootstrap() exist? Change-Id: I5fd4b344a811c087d32fb6304e55105ab3cb137e Reviewed-on: Reviewed-by: Michael Stahl <> Tested-by: Michael Stahl <> (cherry picked from commit 8eb37e74fff1806608563ee49489b8a1f71fc6b0)
2014-11-26Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann1-5/+0
This reverts commit 2386a92c1e6e8ec263edb4dc4fdcfeaa4673ce1f and its follow-ups 1acaa577b67158c060d2f57414f7aea86504a489 "sal: add special handling of argc==0 to osl_setCommandArgs()" and 01f27b5e5d428cc3c4aeabdcbbb8204494fbd435 "sal: fix osl_setCommandArgs() on WNT." The situation that osl_getCommandArgCount is called without a prior call to osl_setCommandArgs should be considered as harmless and can legitimately not only happen in the pyuno case discussed in the reverted commits, but also in case binary UNO is bootstrapped from within a Java process, as happens in test-javanative in ure/source/uretest/Makefile. Change-Id: I2829db390e37dfe5daeda33a4c0659b7d35e565a (cherry picked from commit 2ad716f406e0fdb9b9294876c64ae92fecbf5e27)
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl1-0/+1
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl2-0/+2
Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini2-2/+2
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2014-11-10fix spelling implemenation -> implementationNoel Grandin2-2/+2
Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
2014-10-30Add includeStephan Bergmann1-0/+4
Change-Id: I0598e9d0c9c33c538aa02eabc2c09d96ec3c9b4d
2014-10-29fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTNaruhiko Ogasawara1-2/+2
- Clean up OSL_ASSERT Change-Id: I1f3a5dcfe08876da9bb4a8486311eb0ca9bab215 Signed-off-by: Stephan Bergmann <>
2014-10-28Fix python wrapper script on OS XMatthew J. Francis4-8/+11
Change-Id: Icfac94022ee026ad8e9d9d5298e5cc7fbd7121be Signed-off-by: Stephan Bergmann <>
2014-09-29loplugin: cstylecastNoel Grandin1-3/+2
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
2014-09-21Don't try to write Python bytecode files in case of a read-only installsetTor Lillqvist1-0/+6
It causes annoying messages in the system log in the OS X sandboxed case. Change-Id: I8ae3eb34df2c045bdbdfc63cae9007f973c42537
2014-09-12pyuno: remove obsolete NOOPT comment about GCC 3.2Michael Stahl1-4/+0
Change-Id: Ie280325ddc45a79f3b73ae10f6e9cf952657091b
2014-09-09Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist3-3/+3
In other words, only executable files go in the MacOS folder. Dynamic libraries and bundled frameworks (i.e., LibreOfficePython), and nothing else, go in the Frameworks folder, and all other files go in the Resources folder. Especially, note that Java class files and rc (.ini) files also go in Resources. Such an app bundle structure is what Apple strongly suggests one should use, and it has been hinted that future versions of code signing and/or Gatekeeper will require such a structure. There is still some ugliness thanks to traces of the historical separation of URE from "the office". Like there are two separate "unorc" files, one for URE, one for the LibreOffice application. IMHO, this should be cleaned up, but is probably controversial. (Eek! I now see there are actually *three* unorc files in the app bundle. Not intentional. Need to fix that later.) Change-Id: Idcf235038deb5b8e1d061734993e9f31869b7606
2014-08-28fdo#46678: pyuno: fix deadlock in Runtime::any2PyObject()Michael Stahl1-6/+12
When calling XUnoTunnel::getSomething(), the function must drop the CPython GIL to avoid deadlock since there are implementations of XUnoTunnel that acquire SolarMutex. Change-Id: I51ffce9bdee9a51c932902e77856f865eae81d2a
2014-08-07coverity#982756 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
2014-07-21coverity#706600 Uncaught exceptionCaolán McNamara1-2/+1
Change-Id: I93868e6acc8e245f15ece38e00390dfc3bd9ee8c
2014-07-10coverity#982756 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I5bfb5c86093aca4b88b2abf39836a1c6d7cb0bea
2014-06-05various: remove SAL_THROW macroNoel Grandin2-2/+2
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-04Demystify magic poniesStephan Bergmann2-3/+3
Change-Id: I7e619daf8743d3471ece72d81f6cf1bb61741646
2014-06-03coverity#982753 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I011a600a27c801dca32734e680ea5a13dfebdfe3
2014-06-03coverity#982755 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I652b308d087c1ee9fff95f81297b079e3f816e07
2014-06-03coverity#982756 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3
2014-05-26coverity#982751 Dereference null return valueCaolán McNamara1-1/+2
Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
2014-05-26coverity#982752 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I394a13939d67b6959903e277dd78ea05cdcadfa8
2014-05-26coverity#982754 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I0d0dc196f223a988fd029cc61a8b160b2150534c
2014-05-26coverity#982757 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: Ie2c88a778bb25e6909138e633fe115686e2cc026
2014-05-26coverity#982758 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b
2014-05-26coverity#982761 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
2014-05-26coverity#982759 Dereference null return valueCaolán McNamara1-1/+1
Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
2014-05-26coverity#982760 Dereference null return valueCaolán McNamara2-1/+14
Change-Id: I779fa5fa418370dd6c53308943374e981f65ae29
2014-05-26coverity#982169 Unchecked return valueCaolán McNamara1-2/+2
Change-Id: I4aa333a907ff050fff4a4c7c41120ce00961673c
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet1-1/+1
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin8-83/+52
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-19pyuno: fix warnings with system python 3.4.0Thomas Arnhold3-0/+9
warning: missing initializer for member '_typeobject::tp_finalize' [-Wmissing-field-initializers] Change-Id: I7ab82025fd8c2f0d8fa4943690a217c4a4dc369d
2014-05-15Resolves fdo#70681: all that's leftThomas Arnhold2-4/+4
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2014-05-08pyuno: sal_Bool->boolNoel Grandin4-8/+8
Change-Id: I071c8984cd86b523d8ebae04b5fb2bdc1ac1a5b1
2014-04-25disable pytest_ssl on macNorbert Thiebaud1-0/+2
Change-Id: I9f6a50f00bd98aeffa46f3ef40211e30edf658d6
2014-04-24as suspectedCaolán McNamara1-1/+1
Change-Id: Idad0ba862da7317b5824f1bfb400d05cef105b7f
2014-04-24test for _sslCaolán McNamara2-2/+2
I'm still suspicious Change-Id: I56bfbe1ea2f92ffba6264b7543fa5df7f29f2bd0
2014-04-18this test apparently does not need pyunoDavid Tardon1-2/+0
Change-Id: I6000620bec95f32ec357a3e56e14f3255da978af
2014-04-18Revert "python depend only working under windows so"David Tardon1-5/+1
This reverts commit 89f6ff4c296de5e61d5bfb0cfef55e482839e227.
2014-04-18python depend only working under windows soCaolán McNamara1-1/+5
revert 6980da37549d9ae0a89812aeccfa5365c9f7a9b9 for the moment Change-Id: I1c6e6d74bee6d3008e32c48c0da4a7faf90c8f60
2014-04-18test for enabled python is already handled by PythonTestDavid Tardon1-2/+0
Change-Id: I23ada017f4294fbd34e9b245d012700021914881
2014-04-18move pyuno ssl test back to check targetsDavid Tardon1-5/+1
Change-Id: Ib256217aa014693c73b233a4d8be4c0224287739
2014-04-18sigh, unclear how to make python tests depend on pythonCaolán McNamara1-1/+5
Change-Id: I28884169cb633d2aa9ad11d4b31ab9424776b0f1
2014-04-18tweak the other oneCaolán McNamara1-2/+2
Change-Id: Ib85724173c0bf6d45776d5407220a415da9c591b
2014-04-18wait until a bit later to run the import ssl testCaolán McNamara1-1/+1
Change-Id: Ic18917ce16b27b35347c19d6b9fa5889dc00f2d5
2014-04-18add an import ssl testCaolán McNamara4-0/+35
Change-Id: Ia2dad214e6a224c979a8664bfded7d2caffb221a
2014-04-02coverity#1019376 Resource leakCaolán McNamara2-4/+9
Change-Id: Ifa9c5a7b3aa0d219e09fa3081e66d870a508a84d
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2-8/+8
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a