Commit Graph

103 Commits

Author SHA1 Message Date
Caolán McNamara
24078e3501 Related: fdo#66761 the double-encoding bug appears gone in python 3.3.2
i.e. I see the bug in our built-in python3 3.3.0 but not in my system python
3.3.2 and there's a raft of email related bug fixes in the 3.3.2/3.3.1
python Changelog

Change-Id: I257770cd0ec41fc3b2f2a638009b075b9a2f325f
2013-07-15 10:25:31 +01:00
Caolán McNamara
f460556bfa Related: fdo#66761 we want the bytes, not a str representation of them
Change-Id: I3c268b0c51f7e1ddd2fa6588f40412a33f316b52
2013-07-14 14:04:03 +01:00
Caolán McNamara
c4aa13c931 Resolves: fdo#66761 Macro controlled Python Mailmerge broken
Change-Id: Id8bbf06a5571534aa5eef8624e89565fe3715938
2013-07-13 15:59:35 +01:00
Herbert Dürr
3c57a9b8a4 Resolves: #i120083# make python loglevel and log output changeable...
through environment vars

Set the log level with the environment variable "PYSCRIPT_LOG_LEVEL"
"DEBUG" (for debugging)
"ERROR" (show errors only)
"NONE"  (or anything else) (for production) is the default
and the log output type with the enviroment variable "PYSCRIPT_LOG_STDOUT"
"0" (log output to user/Scripts/python/log.txt)
"1" (or anything else) (log output to stdout)

Patch by: Tsutomu Uchino <hanya.runo@gmail.com>
Review by: Herbert Durr <hdu@apache.org>

Note: Commit message edited by ASF infra team to work around a known issue with the
ASF svn install (not an issue with svn) and UTF-8 handling. This is a temporary
issue that we hope to resolve soon.
(cherry picked from commit 9dc7f72febe9d294304f70cc7b9cdeab1c67dc8b)

Change-Id: I099c8b3f812559c380078f63b692c83fdc811e33
2013-07-12 11:43:12 +01:00
Caolán McNamara
86783bd62b add python ver to debugging info
Change-Id: Idd2130a0f8c0190ab075f5e80021aa99a57939e8
2013-06-18 20:12:56 +01:00
Caolán McNamara
06f22f5ae0 Resolves: fdo#55411 python 2 vs 3 str/bytes encoding issues
Change-Id: Ic1aac1609f3a1fcbd0af9a1c9ecc07a735c8785a
2013-06-17 13:50:32 +01:00
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