[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:17:41 UTC 2011


The following commit has been merged in the debian branch:
commit aec532c0ba245da9771b56d028d3d51808ecbda6
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Mon Aug 3 18:08:39 2009 +0200

    opimd: SIM-*-FSO: cast _backend_entry_id to int when deleting and updating

diff --git a/framework/subsystems/opimd/pimb_sim_contacts_fso.py b/framework/subsystems/opimd/pimb_sim_contacts_fso.py
index b537b73..2f145e4 100644
--- a/framework/subsystems/opimd/pimb_sim_contacts_fso.py
+++ b/framework/subsystems/opimd/pimb_sim_contacts_fso.py
@@ -114,7 +114,7 @@ class SIMContactBackendFSO(Backend):
             elif field=='Phone':
                 phone=value.replace('tel:','')
             elif field=='_backend_entry_id':
-                entry_id=value
+                entry_id=int(value)
         self.gsm_sim_iface.StoreEntry('contacts', entry_id, name, phone, reply_handler=self.dbus_ok, error_handler=self.dbus_err)
 
     def add_contact(self, contact_data):
@@ -148,7 +148,7 @@ class SIMContactBackendFSO(Backend):
     def del_contact(self, contact_data):
         for (field,value) in contact_data:
             if field=='_backend_entry_id':
-                entry_id=value
+                entry_id=int(value)
         self.gsm_sim_iface.DeleteEntry('contacts', entry_id, reply_handler=self.dbus_ok, error_handler=self.dbus_err )
 
     def install_signal_handlers(self):
diff --git a/framework/subsystems/opimd/pimb_sim_messages_fso.py b/framework/subsystems/opimd/pimb_sim_messages_fso.py
index 64dc440..1969a2c 100644
--- a/framework/subsystems/opimd/pimb_sim_messages_fso.py
+++ b/framework/subsystems/opimd/pimb_sim_messages_fso.py
@@ -248,7 +248,7 @@ class SIMMessageBackendFSO(Backend):
     def del_message(self, message_data):
         for (field,value) in message_data:
             if field=='_backend_entry_id':
-                entry_id=value
+                entry_id=int(value)
         self.gsm_sim_iface.DeleteMessage(entry_id, reply_handler=self.dbus_ok, error_handler=self.dbus_err )
 
     @tasklet.tasklet

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list