summaryrefslogtreecommitdiff
path: root/pyuno
AgeCommit message (Collapse)AuthorFilesLines
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: fixincludeguards.pl: all that's leftThomas Arnhold2-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>
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
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin1-2/+2
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-03-10pyuno: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann1-3/+3
Change-Id: Ia99dca3619fb893d1b9f3a46f1f1285e3fe1bc8e
2014-03-07Introduce com.sun.star.beans.theIntrospection singletonStephan Bergmann1-3/+3
...deprecating com.sun.star.beans.Introspection (single-instance) service. Change-Id: Ica2e3a3541c7dcb1aab79222c5abf40d6988c882
2014-03-03pyuno: rename Executable_python_wrapper.mkMichael Stahl2-1/+1
Change-Id: I653cb0e36c1faa622ecc90e0316a1f1fd1e843db
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2-14/+14
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from pyunoAlexander Wilms1-3/+3
Change-Id: I27f5edf45d5968879436e2466f953576651ed8ae Reviewed-on: https://gerrit.libreoffice.org/8290 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23Remove unneccessary commentsAlexander Wilms1-2/+2
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20Test for fdo#74824.Kevin Hunter5-0/+107
The bug in question crashed LibO when inserting a group of cells. This bug was quashed, per se, by commit 07e2c31831ad265b018e5fdf59bdde048fbb4d35, but it occurs to me that at least the particular functionality of inserting a group of cells could use more testing. Change-Id: Icdbfff86fb0265eef325bcc94d9fc9f3e9e38413
2014-02-20A rudimentary framework for additional Python tests not run by defaultStephan Bergmann2-0/+34
* see the mail thread starting at <http://lists.freedesktop.org/archives/libreoffice/2014-February/059548.html> "Testing/Working on PyUNO?" for a rationale * run the tests via top-level "make PythonTest_pytests" or "cd pyuno && make -rs PythonTest_pytests" or similar * see the documentation in pyuno/PythonTest_pytests.mk for adding tests to the framework Change-Id: I6a2a9e60b3294cd649f9cccbaffbd3f6bd79ecff
2014-02-12normalize values of SYSTEM_PYTHON, SYSTEM_MYSQL_CPPCONNMichael Stahl2-3/+3
Change-Id: I8932febdd39c35f23fb3a89703b69e25302f5678
2014-01-31Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann2-9/+0
...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
2014-01-30coverity#983054, reorder code to avoid memory leakStephan Bergmann1-25/+20
Change-Id: If14160802f77673e3ebe69850e00d0506125969c
2014-01-29bool improvementsStephan Bergmann1-1/+1
Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
2014-01-28bool improvementsStephan Bergmann2-2/+2
Change-Id: I42f6d8b3e62834b0612d84586f791f25e967c9c7
2014-01-28coverity#440338 Dereference null return valueCaolán McNamara1-1/+8
Change-Id: I5da7c1d8fe7f4632b386a02dd54f4b203a00fc25
2014-01-10Use boolStephan Bergmann1-4/+4
Change-Id: I4c05c602ecdd77d07e8106387270bf01718e975b
2014-01-07No serviceNames attribute in LoaderStephan Bergmann1-1/+1
Change-Id: I6cc001d18683fc412f0ec0b6a33054d6e745463f
2014-01-07remove unnecessary sal_Unicode casts in OUStringBuffer::append callsNoel Grandin1-8/+8
Convert code like: buf.append( static_cast<sal_Unicode>('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann1-2/+2
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-11-29wsprintf is broken by design and never writes more than 1024 charactersStephan Bergmann1-15/+17
Change-Id: I791e55bb5d98ee82c01271dcebafa7c4672cd424
2013-11-25Fix different typos for "unknown"Julien Nabet1-1/+1
Change-Id: Ib2ee00d4e9f4c6c05d090adfcd5fb791fcbca72c
2013-11-14SAL_WARN_UNUSED com::sun::star::uno::AnyStephan Bergmann1-1/+0
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-12/+0
Change-Id: Ic4dba1d313c3a27ac02f9d382d2b55218e1bad10
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-1/+1
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-3/+3
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11remove unnecessary use of OUString constructorNoel Grandin1-5/+5
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-10-28gbuild: set Package default target to INSTDIRMichael Stahl3-4/+2
Change-Id: I2bc45e4ba63f5faaee7389bcd9d7b3f563503186
2013-10-10sal: add special handling of argc==0 to osl_setCommandArgs()Michael Stahl1-4/+1
... to set up a fake command line. This is used from pyuno, when invoked from the "python" executable as "import uno". On WNT there is an API to get the actual command line, so just use that even in the "fake" case; on UNX just fake something up. Just for the record the whole osl_setCommandArgs() is called exactly once assumption should work out _unless_ there is a program that uses SAL_MAIN _and_ does a python-level "import uno" _before_ it wants to create a python-based UNO service (via pyuno_loader::CreateInstance), since pyuno already takes care to call Runtime::initialize() at most once. Change-Id: Ifd23de733ea3e6b694d46ab039b6aa4fd3e7fc1b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-09pyuno: set up fake command line in getComponentContext()Michael Stahl1-0/+8
Easy to trigger the assert in osl_getCommandArgCount(), just run instdir/*/program/python and "import unohelper". Avoid that by setting up a fake command line, hopefully nobody expects to be able to give relevant args to python... Change-Id: I0df6c23d6ecbb3c2bce81a9d5bcecdcb1729ddbb
2013-10-07fdo#70196: Python 2 compatibility for UNO import error handlingDavid Bolen1-8/+9
Add backwards compatibility support for Python 2 to the earlier change in fdo#66025 to improve import error handling under Python 3. Change-Id: I47bf8ef255c4c2a3e4a2754414977aaa8ed32483 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-02WaE: unused variableTor Lillqvist1-1/+0
Change-Id: Iea8461444c29de9968a5bfa85a2dabb186db47ca
2013-09-25Start hacking --enable-canonical-installation-tree-structure back into shapeTor Lillqvist1-1/+1
Had been totaly broken by the recent changes. (Which is fine, it is just an experimental hack anyway, I am not sure whether it will ever be used in anger. Just a pet peeve of mine, I dislike seeing libraries, configuration files, resources etc mixed together in one "program" folder, especially on OS X, where the convention is to have app-specific dylibs and frameworks in "Frameworks", and resource files in "Resources". But this is not any requirement as such; there are apps in the Mac App Store that blatantly "break" this convention.) Basically, replace uses of gb_PROGRAMDIRNAME and gb_Package_PROGRAMDIRNAME with more specific LIBO_FOO_FOLDER, which for normal builds all expand to the same "program" anyway. Change-Id: I16c2b3351caa00e251e229aafbccb8346042d3c1
2013-09-23Try to fix cross-compilationTor Lillqvist2-2/+2
Add more FOO_FOR_BUILD variables and some gb_Foo_for_build functions. Get rid of gb_INSTROOT and gb_DEVINSTALLROOT, just use INSTROOT. Change-Id: Iee531b02d14fae41edb68ad589a5dec829a60255