summaryrefslogtreecommitdiffstats
path: root/pyuno
Commit message (Collapse)AuthorAgeFilesLines
* Fold URE: WindowsStephan Bergmann2014-12-031-18/+3
| | | | | | | | ...assuming the delayLoadHook in cli_ure/source/native/native_bootstrap.cxx is no longer necessary and loading of cppuhelper from the program dir cannot fail regardless in whatever scenario the cli_cppuhelper library itself is loaded. Change-Id: I13f32b327bca4cce9780864f5e57cdad3860afe5
* pyuno: move "officehelper.py" from scripting to pyunoMichael Stahl2014-12-022-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: https://gerrit.libreoffice.org/12968 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* Extract python-only pythonloader.uno ini-file into its own PackageStephan Bergmann2014-11-263-0/+53
| | | | Change-Id: Ifa9d12fa190f929807dc0dc7342e162aeb9a0576
* Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann2014-11-251-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
* cppuhelper: clean up public headers with include-what-you-useMichael Stahl2014-11-181-0/+1
| | | | Change-Id: I41ba46831f24b2960a1fe982b74a2b623e682e0b
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-172-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
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-122-2/+2
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* fix spelling implemenation -> implementationNoel Grandin2014-11-102-2/+2
| | | | Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
* Add includeStephan Bergmann2014-10-301-0/+4
| | | | Change-Id: I0598e9d0c9c33c538aa02eabc2c09d96ec3c9b4d
* fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTNaruhiko Ogasawara2014-10-291-2/+2
| | | | | | | - Clean up OSL_ASSERT Change-Id: I1f3a5dcfe08876da9bb4a8486311eb0ca9bab215 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* Fix python wrapper script on OS XMatthew J. Francis2014-10-284-8/+11
| | | | | Change-Id: Icfac94022ee026ad8e9d9d5298e5cc7fbd7121be Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* loplugin: cstylecastNoel Grandin2014-09-291-3/+2
| | | | Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
* Don't try to write Python bytecode files in case of a read-only installsetTor Lillqvist2014-09-211-0/+6
| | | | | | | It causes annoying messages in the system log in the OS X sandboxed case. Change-Id: I8ae3eb34df2c045bdbdfc63cae9007f973c42537
* pyuno: remove obsolete NOOPT comment about GCC 3.2Michael Stahl2014-09-121-4/+0
| | | | Change-Id: Ie280325ddc45a79f3b73ae10f6e9cf952657091b
* Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist2014-09-093-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
* fdo#46678: pyuno: fix deadlock in Runtime::any2PyObject()Michael Stahl2014-08-281-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
* coverity#982756 Dereference null return valueCaolán McNamara2014-08-071-1/+1
| | | | Change-Id: I0f2ef4cb61a5774c3d2251897ee914f959ae44a8
* coverity#706600 Uncaught exceptionCaolán McNamara2014-07-211-2/+1
| | | | Change-Id: I93868e6acc8e245f15ece38e00390dfc3bd9ee8c
* coverity#982756 Dereference null return valueCaolán McNamara2014-07-101-1/+1
| | | | Change-Id: I5bfb5c86093aca4b88b2abf39836a1c6d7cb0bea
* various: remove SAL_THROW macroNoel Grandin2014-06-052-2/+2
| | | | Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
* Demystify magic poniesStephan Bergmann2014-06-042-3/+3
| | | | Change-Id: I7e619daf8743d3471ece72d81f6cf1bb61741646
* coverity#982753 Dereference null return valueCaolán McNamara2014-06-031-1/+1
| | | | Change-Id: I011a600a27c801dca32734e680ea5a13dfebdfe3
* coverity#982755 Dereference null return valueCaolán McNamara2014-06-031-1/+1
| | | | Change-Id: I652b308d087c1ee9fff95f81297b079e3f816e07
* coverity#982756 Dereference null return valueCaolán McNamara2014-06-031-1/+1
| | | | Change-Id: Ia29c6167df0ce061fae88d81bef9a98ca37fcce3
* coverity#982751 Dereference null return valueCaolán McNamara2014-05-261-1/+2
| | | | Change-Id: I070317e55cf3260d1d50def0894a507cd08cc43f
* coverity#982752 Dereference null return valueCaolán McNamara2014-05-261-1/+1
| | | | Change-Id: I394a13939d67b6959903e277dd78ea05cdcadfa8
* coverity#982754 Dereference null return valueCaolán McNamara2014-05-261-1/+1
| | | | Change-Id: I0d0dc196f223a988fd029cc61a8b160b2150534c
* coverity#982757 Dereference null return valueCaolán McNamara2014-05-261-1/+1
| | | | Change-Id: Ie2c88a778bb25e6909138e633fe115686e2cc026
* coverity#982758 Dereference null return valueCaolán McNamara2014-05-261-1/+1
| | | | Change-Id: Ia797bbd9c5587d2b55dd183a377e5b3dded96e7b
* coverity#982761 Dereference null return valueCaolán McNamara2014-05-261-1/+1
| | | | Change-Id: I35e93ccf5992236d163d708089cd798e324157fb
* coverity#982759 Dereference null return valueCaolán McNamara2014-05-261-1/+1
| | | | Change-Id: I72209c52d6a8d036f0903f39b91fc62a2880448b
* coverity#982760 Dereference null return valueCaolán McNamara2014-05-262-1/+14
| | | | Change-Id: I779fa5fa418370dd6c53308943374e981f65ae29
* coverity#982169 Unchecked return valueCaolán McNamara2014-05-261-2/+2
| | | | Change-Id: I4aa333a907ff050fff4a4c7c41120ce00961673c
* Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20Julien Nabet2014-05-231-1/+1
| | | | Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
* remove boilerplate in UNO Exception constructor callsNoel Grandin2014-05-238-83/+52
| | | | | | | Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
* pyuno: fix warnings with system python 3.4.0Thomas Arnhold2014-05-193-0/+9
| | | | | | warning: missing initializer for member '_typeobject::tp_finalize' [-Wmissing-field-initializers] Change-Id: I7ab82025fd8c2f0d8fa4943690a217c4a4dc369d
* Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2014-05-152-4/+4
| | | | | | | Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* pyuno: sal_Bool->boolNoel Grandin2014-05-084-8/+8
| | | | Change-Id: I071c8984cd86b523d8ebae04b5fb2bdc1ac1a5b1
* disable pytest_ssl on macNorbert Thiebaud2014-04-251-0/+2
| | | | Change-Id: I9f6a50f00bd98aeffa46f3ef40211e30edf658d6
* as suspectedCaolán McNamara2014-04-241-1/+1
| | | | Change-Id: Idad0ba862da7317b5824f1bfb400d05cef105b7f
* test for _sslCaolán McNamara2014-04-242-2/+2
| | | | | | I'm still suspicious Change-Id: I56bfbe1ea2f92ffba6264b7543fa5df7f29f2bd0
* this test apparently does not need pyunoDavid Tardon2014-04-181-2/+0
| | | | Change-Id: I6000620bec95f32ec357a3e56e14f3255da978af
* Revert "python depend only working under windows so"David Tardon2014-04-181-5/+1
| | | | This reverts commit 89f6ff4c296de5e61d5bfb0cfef55e482839e227.
* python depend only working under windows soCaolán McNamara2014-04-181-1/+5
| | | | | | revert 6980da37549d9ae0a89812aeccfa5365c9f7a9b9 for the moment Change-Id: I1c6e6d74bee6d3008e32c48c0da4a7faf90c8f60
* test for enabled python is already handled by PythonTestDavid Tardon2014-04-181-2/+0
| | | | Change-Id: I23ada017f4294fbd34e9b245d012700021914881
* move pyuno ssl test back to check targetsDavid Tardon2014-04-181-5/+1
| | | | Change-Id: Ib256217aa014693c73b233a4d8be4c0224287739
* sigh, unclear how to make python tests depend on pythonCaolán McNamara2014-04-181-1/+5
| | | | Change-Id: I28884169cb633d2aa9ad11d4b31ab9424776b0f1
* tweak the other oneCaolán McNamara2014-04-181-2/+2
| | | | Change-Id: Ib85724173c0bf6d45776d5407220a415da9c591b
* wait until a bit later to run the import ssl testCaolán McNamara2014-04-181-1/+1
| | | | Change-Id: Ic18917ce16b27b35347c19d6b9fa5889dc00f2d5
* add an import ssl testCaolán McNamara2014-04-184-0/+35
| | | | Change-Id: Ia2dad214e6a224c979a8664bfded7d2caffb221a