fixed sms detail view

git-svn-id: http://www.neo1973-germany.de/svn@236 46df4e5c-bc4e-4628-a0fc-830ba316316d
main
fgau 16 years ago
parent e0366591f3
commit b54ad19759

Binary file not shown.

@ -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()

@ -22,15 +22,14 @@ 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])
if row[0] == 'REC UNREAD':
self.mark_sms_read(row[2])
if row[0] == 'REC UNREAD':
self.mark_sms_read(row[2])
@edje.decorators.signal_callback("mouse,up,1", "*")
def on_edje_signal_dialer_status_triggered(self, emission, source):

Loading…
Cancel
Save