fixed sms detail view

git-svn-id: http://www.neo1973-germany.de/svn@236 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
fgau 2009-01-23 16:19:06 +00:00
parent e0366591f3
commit b54ad19759
3 changed files with 3 additions and 5 deletions

Binary file not shown.

View file

@ -609,7 +609,6 @@ class Dialer(object):
PyneoController.register_callback("show_sms_screen_detail", self.on_sms_screen_detail)
PyneoController.register_callback("show_weather_screen", self.on_weather_screen)
PyneoController.register_callback("show_audio_screen", self.on_audio_screen)
# PyneoController.register_callback("on_get_song_duration", self.on_get_song_duration)
# Initialize the D-Bus interface to pyneo
dbus_ml = e_dbus.DBusEcoreMainLoop()

View file

@ -22,10 +22,9 @@ class SmsDetail(EdjeGroup):
connection.commit()
def on_show_sms_detail(self, sms_number, sms_status):
self.sms_offset = sms_number
connection = connect(DB_FILE_PATH)
cursor = connection.cursor()
cursor.execute("SELECT * FROM sms WHERE status='%s' ORDER BY time DESC LIMIT 1 OFFSET %s" %(self.sms_offset, sms_number))
cursor.execute("SELECT * FROM sms WHERE status='%s' ORDER BY time DESC LIMIT 1 OFFSET %s" %(sms_status, sms_number))
for row in cursor:
self.part_text_set("sms_text_1", row[2] + '<br>' + row[1] + '<br>' + row[3])