summaryrefslogtreecommitdiff
path: root/pyuno
AgeCommit message (Collapse)Author
2014-12-02pyuno: move "officehelper.py" from scripting to pyunoMichael Stahl
... 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: https://gerrit.libreoffice.org/12968 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 8eb37e74fff1806608563ee49489b8a1f71fc6b0)
2014-11-26Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann
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 Stahl
Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
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 Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-10fix spelling implemenation -> implementationNoel Grandin
Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
2014-10-30Add includeStephan Bergmann
Change-Id: I0598e9d0c9c33c538aa02eabc2c09d96ec3c9b4d
2014-10-29fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTNaruhiko Ogasawara
- Clean up OSL_ASSERT Change-Id: I1f3a5dcfe08876da9bb4a8486311eb0ca9bab215 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-10-28Fix python wrapper script on OS XMatthew J. Francis
Change-Id: Icfac94022ee026ad8e9d9d5298e5cc7fbd7121be Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-29loplugin: cstylecastNoel Grandin
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
2014-09-21Don't try to write Python bytecode files in case of a read-only installsetTor Lillqvist
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 Stahl
Change-Id: Ie280325ddc45a79f3b73ae10f6e9cf952657091b
2014-09-09Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist
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 Stahl
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 McNamara
Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
2014-07-21coverity#706600 Uncaught exceptionCaolán McNamara
Change-Id: I93868e6acc8e245f15ece38e00390dfc3bd9ee8c
2014-07-10coverity#982756 Dereference null return valueCaolán McNamara
Change-Id: I5bfb5c86093aca4b88b2abf39836a1c6d7cb0bea
2014-06-05various: remove SAL_THROW macroNoel Grandin
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-04Demystify magic poniesStephan Bergmann
Change-Id: I7e619daf8743d3471ece72d81f6cf1bb61741646
2014-06-03coverity#982753 Dereference null return valueCaolán McNamara
Change-Id: I011a600a27c801dca32734e680ea5a13dfebdfe3
2014-06-03coverity#982755 Dereference null return valueCaolán McNamara
Change-Id: I652b308d087c1ee9fff95f81297b079e3f816e07
2014-06-03coverity#982756 Dereference null return valueCaolán McNamara
Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3
2014-05-26coverity#982751 Dereference null return valueCaolán McNamara
Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
2014-05-26coverity#982752 Dereference null return valueCaolán McNamara
Change-Id: I394a13939d67b6959903e277dd78ea05cdcadfa8
2014-05-26coverity#982754 Dereference null return valueCaolán McNamara
Change-Id: I0d0dc196f223a988fd029cc61a8b160b2150534c
2014-05-26coverity#982757 Dereference null return valueCaolán McNamara
Change-Id: Ie2c88a778bb25e6909138e633fe115686e2cc026
2014-05-26coverity#982758 Dereference null return valueCaolán McNamara
Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b
2014-05-26coverity#982761 Dereference null return valueCaolán McNamara
Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
2014-05-26coverity#982759 Dereference null return valueCaolán McNamara
Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
2014-05-26coverity#982760 Dereference null return valueCaolán McNamara
Change-Id: I779fa5fa418370dd6c53308943374e981f65ae29
2014-05-26coverity#982169 Unchecked return valueCaolán McNamara
Change-Id: I4aa333a907ff050fff4a4c7c41120ce00961673c
2014-05-23Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin
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 Arnhold
warning: missing initializer for member '_typeobject::tp_finalize' [-Wmissing-field-initializers] Change-Id: I7ab82025fd8c2f0d8fa4943690a217c4a4dc369d
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-08pyuno: sal_Bool->boolNoel Grandin
Change-Id: I071c8984cd86b523d8ebae04b5fb2bdc1ac1a5b1
2014-04-25disable pytest_ssl on macNorbert Thiebaud
Change-Id: I9f6a50f00bd98aeffa46f3ef40211e30edf658d6
2014-04-24as suspectedCaolán McNamara
Change-Id: Idad0ba862da7317b5824f1bfb400d05cef105b7f
2014-04-24test for _sslCaolán McNamara
I'm still suspicious Change-Id: I56bfbe1ea2f92ffba6264b7543fa5df7f29f2bd0
2014-04-18this test apparently does not need pyunoDavid Tardon
Change-Id: I6000620bec95f32ec357a3e56e14f3255da978af
2014-04-18Revert "python depend only working under windows so"David Tardon
This reverts commit 89f6ff4c296de5e61d5bfb0cfef55e482839e227.
2014-04-18python depend only working under windows soCaolán McNamara
revert 6980da37549d9ae0a89812aeccfa5365c9f7a9b9 for the moment Change-Id: I1c6e6d74bee6d3008e32c48c0da4a7faf90c8f60
2014-04-18test for enabled python is already handled by PythonTestDavid Tardon
Change-Id: I23ada017f4294fbd34e9b245d012700021914881
2014-04-18move pyuno ssl test back to check targetsDavid Tardon
Change-Id: Ib256217aa014693c73b233a4d8be4c0224287739
2014-04-18sigh, unclear how to make python tests depend on pythonCaolán McNamara
Change-Id: I28884169cb633d2aa9ad11d4b31ab9424776b0f1
2014-04-18tweak the other oneCaolán McNamara
Change-Id: Ib85724173c0bf6d45776d5407220a415da9c591b
2014-04-18wait until a bit later to run the import ssl testCaolán McNamara
Change-Id: Ic18917ce16b27b35347c19d6b9fa5889dc00f2d5
2014-04-18add an import ssl testCaolán McNamara
Change-Id: Ia2dad214e6a224c979a8664bfded7d2caffb221a
2014-04-02coverity#1019376 Resource leakCaolán McNamara
Change-Id: Ifa9c5a7b3aa0d219e09fa3081e66d870a508a84d
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a