Commit Graph

97 Commits

Author SHA1 Message Date
Pedro Giffuni
7a6cc8bb59 Resolves: #i55055# Simplify pythonscript.py code
author:	hanya
(cherry picked from commit e945b49105bab50700274f797e41d1446a70641d)

Conflicts:
	scripting/source/pyprov/pythonscript.py

Change-Id: Ia019a737c5f80d3af9fc50aefcda6f5b00987513
2013-05-24 12:16:48 +01:00
Ariel Constenla-Haile
b0c59c3146 Resolves: #ii118478# Implement getInvocationContext in PyUNO ScriptContext
Original author: Tsutomu Uchino <hanya.runo at gmail.com>

(cherry picked from commit 5de5fd495d7cdad852d1631941ae03ec213f93b7)

Change-Id: Iaa0aa8b1dd6a326cd738f2e296a1b5ecdc379c65
2013-05-11 12:21:27 +01:00
Michael Meeks
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
Lionel Elie Mamane
9830fd36db date/time IDL datatypes incompatible change
- nanosecond precision
 - signed (allowed negative) year

Also: assorted improvements / bugfixes in date/time handling code.
Some factorisation of copy/pasted code.

Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18 21:34:46 +02:00
Miklos Vajna
d1dc850cbb scripting: s/pathes/paths and s/Pathes/Paths
Change-Id: I58d8e8dc9c6a6864206d923165d075114368c866
2013-02-22 08:47:34 +01:00
Caolán McNamara
c25bee9ca3 make emailmerge work with python3 and python2 at the same time
Change-Id: I6289b522513a2fc86e261c85a04ca9c89fd55b63
2013-01-15 17:17:45 +00:00
Caolán McNamara
932e916a9c tidy mailmerge debuging messages
Change-Id: Ibca2af0efa448ed4c2c5b7ad73febf16cbf03480
2013-01-15 16:32:22 +00:00
Caolán McNamara
e48a060eb8 make emailmerge work for me with python3
Change-Id: I4f79aa69b39d2be8fcceacc90b858f116f875385
2013-01-15 14:58:06 +00:00
Ariel Constenla-Haile
8a324a3ba5 i118814 - Allow set connection timeout in Mail API
Conflicts:
	scripting/source/pyprov/mailmerge.py

Change-Id: I7a3eb3b29f41eed154abd45e1aa5be824983f5de
2013-01-15 14:58:05 +00:00
Ariel Constenla-Haile
a5cefd4007 i118791 - Encode ReadableName in UTF-8 only when necessary
Conflicts:
	scripting/source/pyprov/mailmerge.py

Change-Id: I5275bdbbc21f422248a32b824ea6de965c23abd0
2013-01-15 14:58:05 +00:00
Ariel Constenla-Haile
3f2f92b753 i118736 - i118787 : fix XMailMessage implementation in mailmerge.py
(cherry picked from commit 4166969f3b8ed05e91c10a724ce7bd39074012a1)

Conflicts:
	scripting/source/pyprov/mailmerge.py

Change-Id: I794735f02db1efe04b323fed9db5458242e5c16a
2013-01-15 14:58:04 +00:00
Michael Stahl
907b63a0f3 mailmerge.py: fix the debug strings again
Change-Id: Iceac0952b6fc9765cb12f6694260070c1c17296b
2013-01-14 20:06:08 +01:00
Michael Stahl
1a5b3d8e4d fdo#59249: mailmerge.py: adapt to changes in smtplib:
Apparently the login() method in Python 3.3 expects str arguments for
user and password, since it calls encode on them, but for Python 2.6 the
"encode" calls were explicitly added in the caller since login() does
not encode itself; add an ugly version check for that.

Change-Id: Iebfce44073a837e9cb845855ba448d5b6a2ebd11
2013-01-14 12:40:40 +01:00
Michael Stahl
b08dc0b777 Revert "fdo#59249: mailmerge.py: some more bytes vs. str mangling"
This reverts commit 9dec0c7901.

Was nonsense because login method actually expects "str" arguments.
2013-01-14 12:40:40 +01:00
Michael Stahl
9dec0c7901 fdo#59249: mailmerge.py: some more bytes vs. str mangling
Obvious problems are in debug code only.

Change-Id: I45aafb4f194a5a020bb95bd96c2d92ca7ee578f8
2013-01-11 19:08:24 +01:00
Stephan Bergmann
ac56d9373a Can't convert 'Enum' resp. 'bytes' object to str implicitly
...when you set dbg = True

Change-Id: Ifc170e9336a662dce2ae59227baf3bea692eedac
2013-01-11 18:32:04 +01:00
Stephan Bergmann
7a7e19c166 fdo#59249: String literal needs a "b" prefix in Pyhton 3
as the corresponding test is otherwise seen to fail, with user being b, but I have
no idea if this is the most Python-3-ish approach to fix that, or whether more code
needs to be fixed, too.

Change-Id: Ia7fbcbca3cf578ffe1bd5ce3c7c5b709cc77317e
2013-01-11 18:29:27 +01:00
Julien Nabet
8269d576ec Fix type SMPT->SMTP
Change-Id: I09dfd8c2385e6257248b6a43ee4e2ce97ee6bdfc
2013-01-07 22:15:47 +01:00
Michael Stahl
37c6cfde4d officehelper.py: fix obvious Python 3 issues
Change-Id: I40691cd6b1a0a6777e6469bf242fb41dac423587
2012-12-12 12:51:47 +01:00
Michael Stahl
2462391f4c mailmerge.py: fix obvious Python 3 issues
Change-Id: I796696fbfe1756d625dcabc56c8769bed3d5dbc1
2012-12-11 23:08:53 +01:00
Julien Nabet
7914f86713 Python: fix deprecated + "== None" instead of "is None"
Change-Id: Ic19c2ac5817cf5f6359bccda14795ec4f17aad7e
Reviewed-on: https://gerrit.libreoffice.org/1275
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
2012-12-09 19:06:55 +00:00
Stephan Bergmann
1f3496e204 Turn Python Scripting Provider from bundled extension to plain code
To avoid unnecessary confusion between the newly plain code and any instance of
the old extension still installed (per-user or shared), I renamed the UNO
implementation identifier org.openoffice.pyuno.LanguageScriptProviderForPython
to org.libreoffice.pyuno.LanguageScriptProviderForPython.  Also, existing
installations of the extension are explicitly not migrated to new user profiles.

Change-Id: Id3dd66ba5e52e0962f7ad0ccb5e4ad5b0bec97fa
2012-11-30 10:28:25 +01:00
Michael Stahl
6af846d0a1 scripting: pythonscript.py: adapt to Python 3
- "unicode" compatiblity
- convert "exec", "print" statements
- exception syntax
- use "ast" module instead of deprecated "compiler"

Change-Id: I2995b79d8854433824fdfafe8314ee5c7a3eacf6
2012-11-25 16:06:40 +01:00
Michael Stahl
10f4e767f0 gbuild: let ExtensionTarget expect manifest below META-INF
Change-Id: Ia07d3fd856578ab6976c02f8a0ec96273db19a2c
2012-10-23 19:42:37 +02:00
Michael Meeks
3f281b6f0a re-base on ALv2 code. Includes:
remove onlineregistration with dependencies
Patch contributed by Juergen Schmidt
http://svn.apache.org/viewvc?view=revision&revision=1249245
2012-07-06 20:29:14 +01:00
Caolán McNamara
6843ce885e Resolves: fdo#38713 fix multiple recipients in mailmerge
It appears I don't know the correct syntax for concatenating tuples

Change-Id: I32756caeaabfcc52e521108da917aeadf8256caa
2012-06-29 12:20:16 +01:00
Michael Stahl
1ab899c4c8 .xml files don't need executable bits
Change-Id: I399d086181a9f513cd95157e815551f0be9b9e95
2012-06-22 22:39:31 +02:00
Stephan Bergmann
eae0f40bba Bump extension version after changing to passive registration
...otherwise, if it is bundled, its per-user data is not regenerated, leading
to inconsistencies.
2012-04-26 08:34:12 +02:00
Michael Stahl
9429bbb0c4 .component files don't need executable bits 2012-03-23 21:58:14 +01:00
Andras Timar
aab14cb9fb fix prefix of command line switches (-- instead of -) 2012-01-11 19:25:45 +01:00
Michael Meeks
148529c36c switch python scripting extension to passive registration 2011-11-24 11:30:59 +00:00
Michael Stahl
5541912fed ScriptProviderForPython: better description 2011-11-08 14:14:39 +01:00
Michael Stahl
4570fe5875 ScriptProviderForPython: add some description 2011-11-05 00:08:34 +01:00
Laurent Godard
974c159234 a very minor typo in a comment 2011-11-04 23:29:13 +01:00
Stephan Bergmann
b786a33cfd Undo basis/brand split: Move SDK and ure-link, remove OOO_BASE_DIR and BaseInstallation. 2011-10-24 13:59:58 +02:00
Matúš Kukan
a116d39db6 finished converting scripting to gbuild 2011-10-01 17:26:24 +02:00
Andras Timar
92b54aa8b3 set lang to en-US in order l10ntools can extract strings 2011-09-21 16:08:31 +02:00
Caolán McNamara
a434088adf Resolves: fdo#40516 missing : on line 52 2011-08-31 16:35:23 +01:00
Caolán McNamara
a1775d69e8 make logging less painful under windows 2011-08-02 11:07:16 +01:00
Caolán McNamara
a34c9a8065 can't use set_debuglevel under windows 2011-08-02 11:07:16 +01:00
Caolán McNamara
de0b43dcdb coerce port to int 2011-07-26 12:24:49 +01:00
Laurent Godard
c66df18715 add useful msgbox helper awt wrapper 2011-05-06 14:53:43 +01:00
Hanno Meyer-Thurow
33aea8abd6 Update '--disable-python' to disable only Python UNO API.
* scripting/source/pyprov/makefile.mk:
2011-04-25 21:51:35 +02:00
Caolán McNamara
5a6c4a3d50 don't line wrap The Document Foundation 2011-03-31 15:59:17 +01:00
Caolán McNamara
40236c6806 fix python scripting 2011-03-31 15:32:21 +01:00
David Tardon
1b6b4003a1 we ship pythonscript as extension 2011-03-31 08:42:03 +02:00
David Tardon
a84bd1fa8b fix mis-merge 2011-03-31 08:40:21 +02:00
Jan Holesovsky
091e4aee33 Merge remote-tracking branch 'origin/integration/dev300_m101'
Conflicts:
	avmedia/source/framework/mediacontrol.cxx
	connectivity/source/commontools/DateConversion.cxx
	desktop/source/deployment/registry/component/dp_component.cxx
	editeng/inc/editeng/numitem.hxx
	editeng/inc/editeng/txtrange.hxx
	editeng/source/editeng/editobj.cxx
	editeng/source/editeng/editview.cxx
	editeng/source/editeng/eehtml.cxx
	editeng/source/editeng/impedit3.cxx
	editeng/source/editeng/impedit4.cxx
	editeng/source/misc/txtrange.cxx
	editeng/source/outliner/outlin2.cxx
	editeng/source/outliner/outlvw.cxx
	framework/source/layoutmanager/layoutmanager.cxx
	linguistic/source/lngsvcmgr.hxx
	sfx2/source/appl/app.cxx
	sfx2/source/appl/app.src
	sfx2/source/appl/appbas.cxx
	sfx2/source/appl/appcfg.cxx
	sfx2/source/appl/appdde.cxx
	sfx2/source/appl/appmain.cxx
	sfx2/source/appl/appopen.cxx
	sfx2/source/appl/appquit.cxx
	sfx2/source/appl/appserv.cxx
	sfx2/source/appl/childwin.cxx
	sfx2/source/appl/fileobj.cxx
	sfx2/source/appl/fileobj.hxx
	sfx2/source/appl/workwin.cxx
	sfx2/source/control/dispatch.cxx
	sfx2/source/control/macro.cxx
	sfx2/source/control/objface.cxx
	sfx2/source/control/request.cxx
	sfx2/source/control/shell.cxx
	sfx2/source/control/statcach.cxx
	sfx2/source/dialog/dinfdlg.cxx
	sfx2/source/dialog/dockwin.cxx
	sfx2/source/dialog/mailmodel.cxx
	sfx2/source/dialog/mailmodelapi.cxx
	sfx2/source/dialog/mgetempl.cxx
	sfx2/source/dialog/splitwin.cxx
	sfx2/source/dialog/styledlg.cxx
	sfx2/source/dialog/tabdlg.cxx
	sfx2/source/dialog/templdlg.cxx
	sfx2/source/dialog/tplcitem.cxx
	sfx2/source/dialog/tplpitem.cxx
	sfx2/source/doc/doctempl.cxx
	sfx2/source/doc/docvor.cxx
	sfx2/source/doc/new.cxx
	sfx2/source/doc/objcont.cxx
	sfx2/source/doc/objserv.cxx
	sfx2/source/doc/objxtor.cxx
	sfx2/source/inc/appdata.hxx
	sfx2/source/inc/helpid.hrc
	sfx2/source/inc/sfxlocal.hrc
	sfx2/source/inc/statcach.hxx
	sfx2/source/inc/templdgi.hxx
	sfx2/source/inc/virtmenu.hxx
	sfx2/source/inc/workwin.hxx
	sfx2/source/menu/mnumgr.cxx
	sfx2/source/menu/virtmenu.cxx
	sfx2/source/statbar/stbitem.cxx
	sfx2/source/view/frame.cxx
	sfx2/source/view/frame2.cxx
	sfx2/source/view/orgmgr.cxx
	sfx2/source/view/printer.cxx
	sfx2/source/view/prnmon.cxx
	sfx2/source/view/sfxbasecontroller.cxx
	sfx2/source/view/viewfrm.cxx
	sfx2/source/view/viewfrm2.cxx
	sfx2/source/view/viewprn.cxx
	sfx2/source/view/viewsh.cxx
	svx/inc/svx/svditer.hxx
	svx/source/dialog/sdstring.src
	svx/source/form/fmpage.cxx
	svx/source/form/formcontroller.cxx
	svx/source/svdraw/svdcrtv.cxx
	svx/source/svdraw/svditer.cxx
	svx/source/svdraw/svdview.cxx
	xmloff/source/forms/elementimport.cxx
2011-03-18 15:49:47 +01:00
Julien Nabet
8bacc347db fix pychecker bugs. 2011-03-14 20:49:35 +01:00
Hanno Meyer-Thurow
cbee598404 Merge Gentoo patches from old build and downstream repositories.
1. Do not add compiler default include and library path: potentially build
   against different version of system library than requested by the user.
2. Add a configure option to disable Python2 (PyUNO) bindings. Python3 is
   available for more than two years. Noone cares, therefore rest in peace.
   Python2 is going to be ditched at some point. Simply do not fail then.
   Windows builds need to be updated for BUILD_TYPE: "PYUNO". Or how is it
   handled nowadays?
3. Fix sandbox violation in officecfg module: rm /bin/<language>.zip
4. Add a configure option to search only in one place for JVMs, which is quite
   interesting for Linux Distributions. Enforce the user to place JVMs in one
   base directory.
5. Fix build for libxml-2.7.8 with ICU support.

* config_office-XINC-XLIB-defaults.diff: (1)
* disable-python.diff: (2)
* gentoo-sandbox.diff: (3)
* jvm-search-path.diff: (4)
* libxmlsec_fix_extern_c.diff: (5)
2011-03-14 18:49:47 +01:00