summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-26 12:24:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-26 12:24:49 +0100
commitde0b43dcdbf31d3a0376c25a3aa31aefb7217b72 (patch)
treeac1d6ca18a50515e511a03c1eb4a1c5e36c491ff /scripting
parent8cee117d98cc110ae8eded344bbdd6f5b5a30ba3 (diff)
coerce port to int
Diffstat (limited to 'scripting')
-rwxr-xr-xscripting/source/pyprov/mailmerge.py6
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")