[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:51 UTC 2011
The following commit has been merged in the debian branch:
commit b312383b6639af498f2c9b749558f4a37f982864
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date: Sun Dec 6 20:03:01 2009 +0100
opimd: Messages: add default field types
diff --git a/framework/subsystems/opimd/pimd_messages.py b/framework/subsystems/opimd/pimd_messages.py
index 658e60a..a45ce3d 100644
--- a/framework/subsystems/opimd/pimd_messages.py
+++ b/framework/subsystems/opimd/pimd_messages.py
@@ -51,6 +51,20 @@ _DIN_QUERY = _DIN_MESSAGES_BASE + '.' + 'MessageQuery'
_DIN_FOLDER = _DIN_MESSAGES_BASE + '.' + 'MessageFolder'
_DIN_FIELDS = _DIN_MESSAGES_BASE + '.' + 'Fields'
+_MESSAGES_DEFAULT_TYPES = {
+ 'Path' : 'objectpath',
+ 'Recipient' : 'phonenumber',
+ 'Sender' : 'phonenumber',
+ 'Source' : 'text',
+ 'Direction' : 'text',
+ 'MessageSent' : 'boolean',
+ 'MessageRead' : 'boolean',
+ 'Timestamp' : 'date',
+ 'Timezone' : 'timezone',
+ 'Content' : 'text',
+ 'Folder' : 'text'
+ }
+
#----------------------------------------------------------------------------#
class Message(GenericEntry):
#----------------------------------------------------------------------------#
@@ -276,6 +290,7 @@ class MessageDomain(Domain, GenericDomain):
query_manager = None
Entry = None
_dbus_path = None
+ DefaultTypes = _CONTACTS_DEFAULT_TYPES
def __init__(self):
"""Creates a new MessageDomain instance"""
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list