[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:18:35 UTC 2011


The following commit has been merged in the debian branch:
commit 75472c2d033dc9253f02f9a677d08c7f63527059
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Tue Oct 6 19:17:56 2009 +0200

    opimd: SQLite-Messages: change floats into ints

diff --git a/framework/subsystems/opimd/pimb_sqlite_messages.py b/framework/subsystems/opimd/pimb_sqlite_messages.py
index 902e8ee..fbd355a 100644
--- a/framework/subsystems/opimd/pimb_sqlite_messages.py
+++ b/framework/subsystems/opimd/pimb_sqlite_messages.py
@@ -65,7 +65,7 @@ class SQLiteMessagesBackend(Backend):
             cur.execute("""CREATE TABLE IF NOT EXISTS messages (
                 id INTEGER PRIMARY KEY,
                 Source TEXT,
-                Timestamp FLOAT,
+                Timestamp INTEGER,
                 Timezone TEXT,
                 Direction TEXT,
                 Title TEXT,
@@ -173,7 +173,7 @@ class SQLiteMessagesBackend(Backend):
                 raise OperationalError
 
             if entry.get('Timestamp'):
-                entry['Timestamp']=float(entry['Timestamp'])
+                entry['Timestamp']=int(entry['Timestamp'])
             entry_id = self._domain_handlers['Messages'].register_entry(self, entry)
             self._entry_ids.append(entry_id)
         cur.close()
@@ -217,8 +217,8 @@ class SQLiteMessagesBackend(Backend):
         return message_id
 
     def add_message_to_db(self, message_data):
-        reqfields = ['Source', 'Timestamp', 'Timezone', 'Direction', 'Title', 'Sender', 'TransmitLoc', 'Content']
-        reqIntFields = ['MessageRead', 'MessageSent', 'Processing']
+        reqfields = ['Source', 'Timezone', 'Direction', 'Title', 'Sender', 'TransmitLoc', 'Content']
+        reqIntFields = ['MessageRead', 'MessageSent', 'Processing', 'Timestamp']
         for field in reqfields:
             try:
                 message_data[field]

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list