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


The following commit has been merged in the debian branch:
commit ad6a27cb87ca1a676485fd4398b487158afbe4c0
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Sun Dec 6 17:36:57 2009 +0100

    opimd: contacts: define default field types

diff --git a/framework/subsystems/opimd/pimd_contacts.py b/framework/subsystems/opimd/pimd_contacts.py
index 025cf2f..fcee7db 100644
--- a/framework/subsystems/opimd/pimd_contacts.py
+++ b/framework/subsystems/opimd/pimd_contacts.py
@@ -49,6 +49,16 @@ _DIN_CONTACTS = _DIN_CONTACTS_BASE + '.' + 'Contacts'
 _DIN_ENTRY = _DIN_CONTACTS_BASE + '.' + 'Contact'
 _DIN_QUERY = _DIN_CONTACTS_BASE + '.' + 'ContactQuery'
 
+_CONTACTS_DEFAULT_TYPES = {
+                          'Path'    : 'objectpath',
+                          'Phone'   : 'phonenumber',
+                          'E-mail'  : 'email',
+                          'Name'    : 'name',
+                          'Surname' : 'name',
+                          'Birthday': 'date',
+                          'Photo'   : 'photo',
+                          'Address' : 'address'
+                          }
 
 #----------------------------------------------------------------------------#
 class Contact(GenericEntry):
@@ -205,6 +215,7 @@ class ContactDomain(Domain, GenericDomain):
     query_manager = None
     _dbus_path = None
     Entry = None
+    DefaultTypes = _CONTACTS_DEFAULT_TYPES
 
     def __init__(self):
         """Creates a new ContactDomain instance"""

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list