summaryrefslogtreecommitdiff
path: root/pyuno
AgeCommit message (Collapse)AuthorFilesLines
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-1/+1
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()Stephan Bergmann1-1/+2
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
2013-08-18Further work on the "Mac-like app structure" optionTor Lillqvist3-2/+3
Lots of stuff still either ended up in the wrong place, or was looked up from the wrong place, or both. Fix most cases. Change-Id: I06ebbce207c219f3cd82b4387dd9b3fdb83420d4
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist3-1/+15
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-15Mark as constTakeshi Abe1-1/+1
Change-Id: Ic7ee570935b5d827dc01a483877ea5021da5abea
2013-08-13fdo#50470: Restore pyuno object method introspection in Python 3David Bolen3-24/+45
Switch to __dir__ entry point for introspection as Python 3 dropped support for __members__/__methods__. This is backwards compatible to Python 2.6. Module initialization adjusted to complete type setup (needed for tp_dict) via PyType_Ready. Change-Id: Ie1f7b9dd4279242de89d009eb7acdc8c786dab8f Reviewed-on: https://gerrit.libreoffice.org/5375 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-07-29Remove whitespace from line endsStephan Bergmann1-18/+18
Change-Id: Ie894879eaebda32bc4f99e7ad7f810c569e86a7a
2013-07-29fdo#66025: Improve accuracy of ImportError traceback and messageDavid Bolen1-18/+31
The ImportError raised on an import failure with the uno module loaded now includes a complete traceback and the original Python exception message text, combined with the most relevant (nearest to failure if imports are nested) uno lookup that also failed. Change-Id: Id968d84d7f09d555a81017a99369beb503d61439 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-07-24fdo#66025: Simplify new ImportError logicDavid Bolen1-8/+4
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-07-24fdo#66025: Minor clean-up of previous patchDavid Bolen1-1/+1
Change-Id: Idaaf8ebbf419899ba04b77cf10b217c141652a3a Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-07-24fdo#66025: Improve ImportError raised from _uno_importDavid Bolen1-8/+31
Change-Id: I92301f0c37d69e5977a12ab4d5a360f7a4ff20fe Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-07-17remove last users of gb_Executable_add_noexception_objectBjoern Michaelsen1-1/+1
Change-Id: Iddee238aa800ecfee8f97a7132b38b6446e0b2a4 Reviewed-on: https://gerrit.libreoffice.org/4953 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-07-12Resolves: #i120788# remove unused members from PyUNO_callable_InternalsHerbert Dürr3-13/+1
Patch by: Tsutomu Uchino <hanya.runo@gmail.com> (cherry picked from commit 5e2c3fd88906494965979bd20ca852391bee3bac) Conflicts: pyuno/source/module/pyuno_impl.hxx Change-Id: If73d5f7b799f04b79b5cc71d2d44c797851b18d0
2013-07-08pyuno: Revert 5589c72b88e502bfca045ae38af16c854afdd401Michael Stahl1-3/+4
... which was obsoleted by commit c007292ec3eedcf2b1ad673308fa42aad31a7333 and apparently causes breakage for builds with gb_GCOV=YES. Change-Id: I27def9a8b4d003bf82c84e55d36ace37dd8532b0
2013-06-29remove OUString wrap for string literalsThomas Arnhold2-6/+6
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29reduce some spacingThomas Arnhold1-6/+2
Change-Id: I72d494b1c0ff5ed3c52ae6a078815f497e4dd647
2013-06-16PyUno fixed crash in function isInstanceOfStructOrException()Xiaoli1-2/+4
when we try to call PyUNO_callable object that doesn't have __class__ attribute Change-Id: Ia05f70d70f248d50aa141b09625f7ec50189e1dd Reviewed-on: https://gerrit.libreoffice.org/4309 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-06-10Deprecated conversion from const wchar_t* to wchar_t*Fridrich Štrba1-2/+2
Change-Id: I8c0a97372f0855543d6207adb0abaa4cc820aabd
2013-05-28Optional pyuno module should have its own services/pyuno.rdbStephan Bergmann2-0/+17
...this e.g. changes the error message when trying to register an extension that contains an (actively registered) Python component but no pyuno is installed from "Binary URP bridge disposed during call" to a less frightening "The service com.sun.star.loader.Python cannot be instantiated." Change-Id: I10f2b36b11395559ee95ce659878222b5ea99c11
2013-05-14fdo#46808, Convert script::InvocationAdapterFactory to new styleNoel Grandin1-9/+2
Change-Id: I2fe24c863f4c43471f46032ed15fcd5b98863fc1
2013-05-14pyuno: remove obsolete makefilesMichael Stahl2-37/+0
These should have been removed in b6bcbb675afedba0c47654dd78dc446dac0630d1 Change-Id: Iec28da16542f16c459bf301649260d8b13c1c67d
2013-05-10More gb_PROGRAMDIRNAME clean upStephan Bergmann1-1/+1
Change-Id: I5af86e15bcb8958a680e7309f13d7a865f29d7a9
2013-05-08No need for RTLD_NOW hereStephan Bergmann1-1/+1
...it was like that "since the beginning," but for no apparent reason. Change-Id: Ic293739b5cd5de0bfe9e2580a0755af64202e582
2013-05-08Library_puyuno_wrapper is not built on WNT anywayStephan Bergmann1-2/+0
Change-Id: Ia4e2f9d5f3475b0a7af8b6db80ba4b2cd5f6bfce
2013-05-08Make sure again pyuno_wrapper does not link against libstdc++Stephan Bergmann1-0/+12
...which got broken with gbuild'ification. Change-Id: Ice2b3ffb81a646c9e542344ca348eb6a16eb4ce2
2013-05-05copy pyuno files to instdirDavid Tardon2-0/+26
Change-Id: I62fa315b942c5b2383ee83c644ecbcbca3d6c40f
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks13-273/+52
2013-04-24gbuild: drop empty use_packages callsDavid Tardon1-3/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24move URE headers to include/David Tardon1-2/+0
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-22replace python-core zip built in pyuno with direct use of PackageMichael Stahl2-17/+3
- python3: deliver files to INSTDIR, with same layout as instset and do not deliver .lib files - pyuno: remove obsolete python.bin targets - pyuno: remove usage of CustomTarget_zip for WNT and non-Mac UNX platforms (sadly it is apparently still needed for "system" python on MinGW) - scp2: use the python3 filelist There is still a problem here because the installer does not currently allow to preserve the executable bit on files in a filelist - RepositoryExternal: run python executable from INSTDIR and link against libraries in UnpackedTarball dir Change-Id: I931ca0a8be6ff40051b1ca50da1f0770e6057832 Reviewed-on: https://gerrit.libreoffice.org/3525 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-04-21adapt path for test.dll for WNTMichael Stahl1-3/+7
Change-Id: I4d7cb081805213f55ae69c4ade8638bbfc06f0c4
2013-04-19python3: put an RPATH into python binary ...Michael Stahl2-5/+0
... and get rid of LD_LIBRARY_PATH hack in wrapper shell script. Change-Id: I7d91c6086460504d656de7b018087264165f396b
2013-04-18pyuno_loader::CreateInstance: delete the initial PyThreadStateMichael Stahl1-0/+4
Don't see how it could be used again, it appears to be leaked and causes the assertion in PyThreadState_Swap to fire. Change-Id: Id6bbb4363928e4fdd8bda1905f6e1f9931dba74c Reviewed-on: https://gerrit.libreoffice.org/3452 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-04-12pyuno_dlopenwrapper: give error message before abort() if dlopen() failsMiklos Vajna1-0/+1
Change-Id: Idf39b33efe4c7838f2669aec8773616416811d57
2013-04-09warning C4101: 'e' : unreferenced local variableStephan Bergmann1-1/+1
Change-Id: I2828021d60d82e43358ba98a1a3b4967a6901cd6
2013-04-09unbreak windows tinderboxDavid Tardon1-1/+1
Change-Id: Ic777267cb86acdb62b53a7b324e1423b7c6b67c5
2013-04-09move Python tests in-processMichael Stahl1-0/+42
This is nice to make them more easily debuggable. A series of crude hacks are employed to bootstrap enough services from python so the current tests run. This is only tested with system python3 on Fedora. Change-Id: I5e06741e55ead7fddec41ff776ff8ca5d2399469 Reviewed-on: https://gerrit.libreoffice.org/3215 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák11-84/+46
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-28Remove RTL_CONSTASCII_(U)STRINGPARAM in pyunoChr. Rossmanith4-50/+48
and use append() instead of appendAscii() Change-Id: Iaf29a2f18eff39db5d1b5cc298cce23442ac51a9
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold2-5/+5
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold4-8/+7
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18avoid Wundef in cases where the usage seems otherwise okLuboš Luňák1-1/+1
Change-Id: Iabccc31c59cec32235661f5225f45bb13f76a68f
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-3/+0
2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck1-3/+3
Only applies to PropertyAttribute::REMOVEABLE, and all instances in comments. All other instances of the misspelling have remained the same. Example: AF_REMOVEABLE Change-Id: I391f4101bbc3e06689318235a37d616065bc1686 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-03-04coverity#983056: Resource leakJulien Nabet1-0/+1
Change-Id: Ic40776f3cec5139e7f7accb4985533e78bd7c158
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885
2013-02-27sal: new ZipPackage_sal_odk_headers for public ODK headersMichael Stahl1-1/+1
Change-Id: I76cb00121d7b4c21137be70ab7a5bd5389037302
2013-02-22quiet external module build log unless failureNorbert Thiebaud1-1/+1
ExternalProject usually involve a configure and a make step that produce a bunch of output usually irrelevant including a large number of warning and other mess. now that everything is pretty much in tail_build these output get interleaved with useful output from the build of the product and actually drown them in a logorrhea of messy noise. This store the output of external modules in a log file and only print them as a whole if the module failed do build. on a non-verbose build. Change-Id: I3abfcccd6d16821a9e061a71e031b427cc283647 Reviewed-on: https://gerrit.libreoffice.org/2304 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-02-21Fix type unkown -> unknownJulien Nabet1-1/+1
Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
2013-02-14Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ↵Jean-Noël Rouvignac2-10/+8
ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f Reviewed-on: https://gerrit.libreoffice.org/1954 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>