From de0b43dcdbf31d3a0376c25a3aa31aefb7217b72 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 26 Jul 2011 12:24:49 +0100 Subject: coerce port to int --- scripting/source/pyprov/mailmerge.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripting/source') 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") -- cgit