summaryrefslogtreecommitdiff
path: root/pyuno
AgeCommit message (Collapse)AuthorFilesLines
2013-01-23fdo#59728: Fix encoding of .py files as UTF-8 for Python 3Stephan Bergmann1-1/+4
...where it could default to something like CP 1252 instead on Windows, while keeping backwards compatibility for now with running under Python 2 (where things apparently worked well with the original code). Change-Id: I0ddd06771a36e1cd2cc2ce78abd8bd667db7778f (cherry picked from commit c2445b03f4d27bbd7e14c4322704ce89b582839b) Reviewed-on: https://gerrit.libreoffice.org/1829 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-12-19some not important Python3.3 port (pythonloader DEBUG mode)László Németh1-3/+3
Change-Id: If499f952e426d0754f8502bace81c1ac918479f1
2012-12-11i118798 - Fix Pyuno dead-lockAriel Constenla-Haile1-8/+8
Fixes fdo#57569, thanks to Miklós Prisznyák for the hint. git-svn-id: https://svn-master.apache.org/repos/asf/incubator/ooo/trunk@1232123 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit 374c9af20d93029d999ca21beb2b989e0a428b98) Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-12-02pyuno: clean up that zipcore a littleMichael Stahl1-10/+4
That $(shell find...) is now entirely pointless with python3 in tail_build; depend on package instead. Change-Id: Iacc8a7d201f8ec2e41adf3e2351a755e955c0997
2012-11-30add python3 to tail_buildPeter Foley1-1/+2
Change-Id: I01c3d280b4ff05ddbce77343ced6934b26bd3ceb
2012-11-27pyuno: add python_headers external and use it for wrapperMichael Stahl1-16/+3
Change-Id: Ie151a1200037b6060eab00d6f0f0889134826e5e
2012-11-27clean up PYTHON related version etc. variables:Michael Stahl4-32/+7
- configure defines PYTHON_VERSION, PYTHON_VERSION_MAJOR, PYTHON_VERSION_MINOR - remove pyversion.Makefile Change-Id: I19ac8df18a520ad56bf63ea038dc0769b8249d0b
2012-11-27Switch from python to python3Michael Stahl3-4/+6
Mac specific parts of patch by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Change-Id: I90ef17c6f5a678230539a80ab999fa5344e4fc8f
2012-11-26API CHANGE: com.sun.star.lang.IllegalArgumentExceptionMichael Stahl1-7/+7
... derives from com.sun.star.uno.RuntimeException instead of com.sun.star.uno.Exception. Only test that breaks with this change is jurt_uno/AnyConverter_Test, which for mysterious reasons effectively tests that IllegalArgumentException is a subclass of Exception and not RuntimeException. Presumably this is just a generic exception test that happens to use IllegalArgumentException. Some further testing indicates there are no problems expected at runtime: Running "make subsequentcheck" with all Java test code compiled against a ridl.jar that does not contain the change, running against a soffice that uses ridl.jar and rdbs with the change + ridl.jar with the change on the test side yields exactly the same AnyConverter_Test failure, with no other failures. Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d
2012-11-26use correct PyString_Size for python2Rene Engelhard1-2/+1
This reverts commit 8ea4657f64e7575696be4bba5b2a4309ac029ae4. Conflicts: pyuno/source/module/pyuno_util.cxx Change-Id: I252688b72610864613ceb80aac9030062e63fdac
2012-11-25New try to fix pystring sizeJulien Nabet1-1/+1
I don't know if it's ok but compilation doesn't fail Change-Id: I6960b2cd4587b3f49ccfa7fb24874c288ccfce6a
2012-11-25attempted blind fix for pystring size.Michael Meeks1-1/+2
Change-Id: I637292be9791484a58b60e8889962176a37e2c07
2012-11-25pyuno: fix handling of "str", "unicode", "bytes" types:Michael Stahl7-61/+104
Replace currrent wrappers of Python 2 only PyString_* functions with better abstractions that handle default "str" (PyStr_*) or byte strings ("str"/"bytes" depending on version, PyStrBytes_*) and adjust all invocations to work on appropriate string types. Fixes obvious "attributes typeName and/or value of uno.Enum are not strings" exceptions with Python 3. Change-Id: I255dcb1bc198fd7f6a62b83b957901521071a480
2012-11-25pyuno: adjust uno.ByteSequence to work with "bytes"Michael Stahl2-5/+11
This is necessary for Python3; "str" type is still accepted so it runs on Python 2 as well. Change-Id: I51098feca00e4cd8ce3ceebf663d4ce79252cbcd
2012-11-17pyuno: fix breakage because PATH_MAX not defined with Python3Michael Stahl1-1/+13
Change-Id: I12e55c8810193591d9cd017bf5d89078b3915ddb
2012-11-17pyuno: Runtime::pyObject2Any only allowed to throw RuntimeExceptionMichael Stahl1-18/+40
... so wrap the InvocationTargetException that happens when loading Python 2 only LightProof into Python 3 so LO does not crash. Change-Id: I4da230b46ef23c184718e858bf178f340f4b9c1f
2012-10-31add missing deps on sal headersDavid Tardon1-0/+5
Change-Id: I815ef8abaf4cd998e7b91fbadad56ddf0a7087ba
2012-10-23fdo#46808, use service constructor for beans::IntrospectionNoel Grandin1-9/+3
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
2012-10-02Use prefixTor Lillqvist2-2/+2
Change-Id: Ibc446d8616bad00ce71c273e46517e80527e2f0e
2012-09-28gbuild: gb_Library_PLAINLIBS_NONE cleanup for unxgcc/solarisMichael Stahl1-2/+2
Change-Id: Ia7f64bdd0fd81c5dcc08d828db4602b65e2da949
2012-09-18add help on python debugging.Michael Meeks1-0/+7
2012-09-05Some clean up of previous commitStephan Bergmann1-1/+0
Change-Id: I05287fd79455f968c770d61bf5f320b07bba7d9e
2012-09-05fdo#46808, Adapt reflection::CoreReflection UNO service to new styleNoel Grandin1-9/+4
The XComponent part of the interface made no sense for a singleton, so it was removed. Explicitly document the 'theCoreReflection' singleton and move it into it's own file. Deprecated the now old CoreReflection service. Change-Id: Ib8befa87c7da7eb53a2f587948fd54a64c082472
2012-08-27fdo#46808, Adapt script::Converter service code to new styleNoel Grandin1-5/+3
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-07-20warning C4702: unreachable codeStephan Bergmann1-2/+0
Change-Id: Ie2cc83dde7e0522e0bf669a1dd3d7a8ca680f7e2
2012-07-13fdo#51948 do not link with dl on *BSDDavid Tardon1-3/+3
Change-Id: If623e9a0d909ce6a7e260b0d4beed3fb0c74cf8b
2012-07-11Runtime::any2PyObject: warning C4702: unreachable codeMichael Stahl1-2/+1
Change-Id: I303536b957f902d3bbda9f3a96b507851292523a
2012-07-02re-base on ALv2 code. Removing:Michael Meeks27-388/+397
a patch contributed by Pedro Giffuni to handle FreeBSD issues that are unlikely to be an issue with a two-layer LibreOffice. http://svn.apache.org/viewvc?view=revision&revision=1180509
2012-06-26re-base on ALv2 code.Michael Meeks1-0/+17
2012-06-22remove bunch of obsolete looking .flt filesMichael Stahl1-14/+0
Change-Id: Ic3d45afca14d0bebfb6168b6cf6fc6c618754183
2012-06-22.mk files don't need executable bitsMichael Stahl1-0/+0
Change-Id: I3ee442ab6dac31eb7daac32e7a9ed5c6526f07ba
2012-06-22fixing pyuno bridge on mingw: packaging system-pythonDavid Ostrovsky5-7/+46
Change-Id: Ib46248d217b0161dc20dde0274842bd7381f0cda
2012-06-22fdo#50682: Setting DYLD_LIBRARY_PATH in python script appears unnecessaryStephan Bergmann1-4/+5
...and apparently has negative consequences (system CFNetwork framework picking up LO libsqlite3.dylib instead of system one, as DYLD_LIBRARY_PATH overrides recorded installnames). Contrary to the old comment ("so that 'import pyuno' finds libpyuno.so"), what setting LD_LIBRARY_PATH on Linux is still necessary for is so that python.bin (a stripped version of the python executable from external python module) finds libpython2.6.so, as it lacks an RPATH. ('import pyuno' finds pyuno.so apparently on PYTHONPATH, anyway, and pyuno.so in turn dlopen's libpython.{dylib,so} with full path.) (This might make dc82cf021f76ea83ff7a4bcb2d7525f2e111f0cc "Make PyUNO work --with-macox-version-min-required=10.6" irrelevant.) Change-Id: I1c3a6c61d4cc976d85956e587497a13a77689128
2012-06-21re-base on ALv2 code.Michael Meeks3-23/+48
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21re-base on ALv2 code.Michael Meeks1-23/+14
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-19deliver pyuno/python.exe in one stepDavid Ostrovsky3-42/+5
Change-Id: I886f4a6aec492ae498ce86d71686c8d9fb26203d
2012-06-14pyuno: more stuff unwanted if there is system pythonMatúš Kukan1-6/+4
Change-Id: I13d543f9f877f65f377ae914f8308876bf2c0532
2012-06-14pyuno: clean d.lstMatúš Kukan1-27/+0
Change-Id: Iaca5b31fb723e158198c7a21c1361f3f4a756477
2012-06-14Remove dmake makefiles obsoleted by gbuild'ificationStephan Bergmann3-402/+0
Change-Id: I94b074d7d2e1ea2f80c3075ae49530225947442d
2012-06-14gbuild migration: pyuno moduleDavid Ostrovsky21-14/+713
Change-Id: I7f923a5622214f7540a789bcdd93bf6fd1d166db
2012-06-04nuke unused definesTakeshi Abe2-3/+0
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-01targeted string re-workNorbert Thiebaud1-2/+2
Change-Id: I44518bb1b464bb0b458c0b5f1c249ef160ea3b26
2012-06-01targeted string re-workNorbert Thiebaud1-37/+30
Change-Id: Ibe5c739c3066f3e706a44b64d4ad775abde9662c
2012-05-29nuke unused typedefTakeshi Abe1-1/+0
Change-Id: I12a55e08a83b88221d992790c97c830761755582
2012-05-23removed unused temporary rtl::OUStringTakeshi Abe1-1/+0
Change-Id: I9d118a5fbe2306465d8bcdb9ddd0596588137e5e
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-0/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-24Reduce chatterTor Lillqvist1-1/+3
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-5/+5
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-03-21chmod -xTor Lillqvist1-0/+0
2012-03-16fdo#46926: PyUNO_cmp: return acquired referenceDavid Bolen1-4/+15