aboutsummaryrefslogtreecommitdiffstats
path: root/mobility/messaging
diff options
context:
space:
mode:
authorMatti Airas <matti.p.airas@nokia.com>2010-08-19 10:44:52 +0300
committerMatti Airas <matti.p.airas@nokia.com>2010-08-19 10:44:52 +0300
commit7bd95037f7fa0bc3dd679d87a89d6f5748bd9224 (patch)
tree4136c6e4d54dfad70f808ccf982c84e4a4fc554e /mobility/messaging
parent0522e3b444093f92673bf34ad32e3215acb309cb (diff)
fixed the Qt Mobility Messaging API example
Diffstat (limited to 'mobility/messaging')
-rw-r--r--mobility/messaging/querymessages.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mobility/messaging/querymessages.py b/mobility/messaging/querymessages.py
index 596e05d..017d623 100644
--- a/mobility/messaging/querymessages.py
+++ b/mobility/messaging/querymessages.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
from QtMobility.Messaging import *
from PySide.QtCore import *
import sys
@@ -27,7 +29,7 @@ for id in matchingIds:
if manager.error() == QMessageManager.NoError:
result = []
- if len(app.arguments()) < 2:
+ if len(sys.argv) < 2:
# Default to printing only the subject
result.append(message.subject())
else:
@@ -73,7 +75,7 @@ for id in matchingIds:
fileNames.append(message.find(id).suggestedFileName())
result.append(",".join(fileNames))
- print(str(++n) + '\t' + result.join("\t"))
+ print(str(++n) + '\t' + "\t".join(result))
if len(matchingIds) == 0:
print "No matching messages!"