summaryrefslogtreecommitdiff
path: root/pyuno/source/module
AgeCommit message (Collapse)Author
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-03-16fdo#46926: PyUNO_cmp: return acquired referenceDavid Bolen
2012-03-09fdo#46926: fix the fix for Python 3Michael Stahl
Thanks to Maxime de Roucy for the hint that the "cmpfunc" type doesn't exist.
2012-03-07fdo#46926: fix UNO struct comparison in Python 2David Bolen
This requires setting a rich comparison flag in Python 2, while Python 3 uses rich comparison by default. (regression from a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe)
2012-03-07fdo#46859: adapt string type checks to work with both Python 2 and 3David Bolen
(regression from a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe)
2012-02-23Adapted GCThread to safer-to-use salhelper::ThreadStephan Bergmann
2012-02-18pyuno: decreaseRefCount: valgrind warning:Michael Stahl
Apparently the thread spawned in decreaseRefCount runs and deletes itself before the "m_hThread != 0" from osl::Thread::create is executed; try a lame workaround for that. ==1877== Invalid read of size 8 ==1877== at 0x2A70E546: osl::Thread::create() (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x2A70E351: pyuno::decreaseRefCount(_is*, _object*) (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x2A7092B4: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x2A709393: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x5EF2F64: cppu::OWeakObject::release() (weak.cxx:213) ==1877== by 0x2A70DE69: ==1877== Address 0x1ee30818 is 8 bytes inside a block of size 32 free'd ==1877== at 0x4A0662E: free (vg_replace_malloc.c:366) ==1877== by 0x4C44B62: rtl_freeMemory_SYSTEM(void*) (alloc_global.cxx:285) ==1877== by 0x4C44DC7: rtl_freeMemory (alloc_global.cxx:355) ==1877== by 0x2A70E41E: osl::Thread::operator delete(void*) (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x2A70E6EF: pyuno::GCThread::~GCThread() (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x2A70E303: pyuno::GCThread::onTerminated() (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x2A70E671: threadFunc (in pyuno/unxlngx6/lib/libpyuno.so) ==1877== by 0x4C2E242: osl_thread_start_Impl (thread.c:292) ==1877== by 0x3C26607D8F: start_thread (pthread_create.c:309) ==1877== by 0x3C262EF48C: clone (clone.S:115)
2012-02-16Work around macro redefinition warningStephan Bergmann
2012-02-16Missing returnStephan Bergmann
2012-02-16Adapt pyuno.so wrapper to Python 3 supportStephan Bergmann
2012-02-10Removed unused codeAlexander Bergmann
2012-02-06Reintroduce pyuno.so wrapper around libpyuno.soStephan Bergmann
...it was cleaned away by a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe "Port PyUno to support Python 3" but is still needed to make sure libpyuno.so is loaded RTLD_GLOBAL (Python apparently loads its modules RTLD_LOCAL). At least with pre 4.5 GCC this can cause problems with C++ exception handling, see the mail thread starting at <http://lists.freedesktop.org/archives/libreoffice/2012-February/025166.html> "LibO 3.5RC2: terminate called after throwing an instance of 'com::sun::star::registry::InvalidRegistryException'" for details.
2012-01-26Code cleanup: ( () ) replaced by (())Alexander Bergmann
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2012-01-02Fix for fdo43460 Part XXVII getLength() to isEmpty()Olivier Hallot
Please find attached a partial fix for Easy Hack FDO43460 Part XXVII Modules padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
2011-12-21catch exception by constant referenceTakeshi Abe
2011-12-05Improve pyuno debugging in various ways - add stack traces etc.Michael Meeks
2011-09-27Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().Stephan Bergmann
2011-08-21There was still overload ambiguousJulien Nabet
2011-08-21OUStringBuffer.append call: add explicit radix to disambiguate overloadLionel Elie Mamane
2011-08-21use boost::unordered_map instead of STL one so as not to require C++0xLionel Elie Mamane
2011-08-21pyuno: close opened parenthesis in raised exception messageLionel Elie Mamane
2011-08-21pyuno: some commentsLionel Elie Mamane
2011-08-21Janitorial: remove unnecessary const_castsLionel Elie Mamane
The python C API has consts at these places
2011-08-21Janitorial: remove unused variableLionel Elie Mamane
2011-08-21pyuno: make extractUnoException handle exceptions raised by uno.py loadingLionel Elie Mamane
This allows having a meaningful error message when extractUnoException is called from pyuno_loader::getLoaderModule() (via raiseRuntimeExceptionWhenNeeded()). If it is called to treat an error that cropped up in loading uno.py, the old code would abort the whole operation by throwing an exception because... it gets essentially the same error. The new code leads to a sensible message on the Python debug console.
2011-08-21pyuno: hook into import *after* the _whole_ uno module is successfully loadedLionel Elie Mamane
This avoids breaking the whole python process module importing when an uno.py import failure happens after the hooking point. In that case, _uno_import is still the python module loader, but _g_delegatee is not anymore bound to the previously installed importer, and thus any module import fails with: File "/home/master/src/libreoffice/core/install/basis3.5/program/uno.py", line 260, in _uno_import return _g_delegatee( name, *optargs, **kwargs ) TypeError: 'NoneType' object is not callable
2011-08-21pyuno: allow uno structs to be initliased with keyword argumentsLionel Elie Mamane
2011-08-17TMP_LIONEL_NOTESLionel Elie Mamane
2011-07-24minor whitespace/makefile cleanupChristian Lohmaier
2011-06-24Use $(DLLTOOL) instead of dlltoolJesús Corrius
2011-06-24Don't include pyversion.mkJesús Corrius
2011-06-11fix compilation with internal python on MacChristian Lohmaier
2011-06-07fix previous commit that introduced reverse logicChristian Lohmaier
and remove *.orig and *.rej files that were committed by accident
2011-06-06allow to use internal Python on Mac (Python built as framework)Christian Lohmaier
2011-05-19don't crash when interacting with a class that implements XInvocationMichael Meeks
VclStringResourceLoader eg. test = smgr.createInstance("com.sun.star.resource.VclStringResourceLoader") invocation = test.setValue("FileName", "test") It seems we can't cope with XInvocation implementors, so give a nice exception instead
2011-05-11Unbreak build on non-WindowsTor Lillqvist
2011-05-11Fix build on WindowsTor Lillqvist
No need to mention $(LB)$/$(TARGET)$(DLLPOST) in the ALLTAR prerequisite list. It causes errors, and is unnecessary, as pyuno.pyd gets built anyway thanks to being the TARGET in this makefile. No need to do the symlink if DLLPRE is empty. In that case $(LB)$/$(TARGET)$(DLLPOST) equals $(LB)$/$(DLLPRE)$(TARGET)$(DLLPOST) so dmake will complain about a circular dependency.
2011-05-07PyVarObject_HEAD_INIT() isn't defined in Python 2.5-Joseph Powers
Mac OS X is still being compiled vs 2.3
2011-05-07Port PyUno to support Python 3Andreas Becker
2011-04-18Remove OS/2 support.Francois Tigeot
2011-02-15dragonfly stuffFrancois Tigeot
2011-02-03Add missing #include <vector> to the file.Joseph Powers
2011-02-04moving the rest of ure repository to boost unordered containersFridrich Strba
2011-01-20Replace suitable equalsAscii calls with equalsAsciiL.Thomas Arnhold
Done with sed -i 's%\(\.equalsAscii\)(\(\s\?"[^"]\+"\)\(\s\?\))%\1L(\3RTL_CONSTASCII_STRINGPARAM(\2\3)\3)%g'.
2010-12-10RTL_CONSTASCII_USTRINGPARAM in ure 2Gert Faller
2010-11-06add OPENBSD ld commandRobert Nagy
2010-10-27add modelines to .h and .c files as wellCaolán McNamara
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-02-17CWS-TOOLING: integrate CWS changefileheader2Vladimir Glazunov
Notes: split repo tag: ure_ooo/DEV300_m72 split repo tag: ure_ooo/DEV300_m73