diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 12:24:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 12:24:49 +0100 |
commit | de0b43dcdbf31d3a0376c25a3aa31aefb7217b72 (patch) | |
tree | ac1d6ca18a50515e511a03c1eb4a1c5e36c491ff /scripting | |
parent | 8cee117d98cc110ae8eded344bbdd6f5b5a30ba3 (diff) |
coerce port to int
Diffstat (limited to 'scripting')
-rwxr-xr-x | scripting/source/pyprov/mailmerge.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/pyprov/mailmerge.py b/scripting/source/pyprov/mailmerge.py index 4654ad35fc1f..04af53a7a2b7 100755 --- a/scripting/source/pyprov/mailmerge.py +++ b/scripting/source/pyprov/mailmerge.py @@ -73,7 +73,7 @@ class PyMailSMTPService(unohelper.Base, XSmtpService): server = xConnectionContext.getValueByName("ServerName") if dbg: print >> sys.stderr, server - port = xConnectionContext.getValueByName("Port") + port = int(xConnectionContext.getValueByName("Port")) if dbg: print >> sys.stderr, port self.server = smtplib.SMTP(server, port) @@ -254,7 +254,7 @@ class PyMailIMAPService(unohelper.Base, XMailService): server = xConnectionContext.getValueByName("ServerName") if dbg: print >> sys.stderr, server - port = xConnectionContext.getValueByName("Port") + port = int(xConnectionContext.getValueByName("Port")) if dbg: print >> sys.stderr, port connectiontype = xConnectionContext.getValueByName("ConnectionType") @@ -323,7 +323,7 @@ class PyMailPOP3Service(unohelper.Base, XMailService): server = xConnectionContext.getValueByName("ServerName") if dbg: print >> sys.stderr, server - port = xConnectionContext.getValueByName("Port") + port = int(xConnectionContext.getValueByName("Port")) if dbg: print >> sys.stderr, port connectiontype = xConnectionContext.getValueByName("ConnectionType") |