[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:16 UTC 2011
The following commit has been merged in the debian branch:
commit 35152439e505309984d39a74ed29c02f4cf71361
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date: Mon Aug 31 23:43:26 2009 +0200
opimd: backend manager: add Synchronize method
diff --git a/framework/subsystems/opimd/backend_manager.py b/framework/subsystems/opimd/backend_manager.py
index 89cf000..f0a2441 100644
--- a/framework/subsystems/opimd/backend_manager.py
+++ b/framework/subsystems/opimd/backend_manager.py
@@ -318,6 +318,23 @@ class BackendManager(DBusFBObject):
backend._initialized = False
+ @dbus_method(_DIN_SOURCE, "", "b", rel_path_keyword="rel_path")
+ def Synchronize(self, rel_path):
+ num_id = int(rel_path[1:])
+ backend = None
+
+ if (num_id < len(self._backends)):
+ backend = self._backends[num_id]
+ else:
+ raise InvalidBackendID( "Maximum backend ID is %d" % len(self._backends)-1 )
+
+ try:
+ result = backend.sync()
+ except AttributeError:
+ raise InvalidBackend( "Backend does not feature synchronization" )
+
+ return result
+
@dbus_method(_DIN_SOURCE, "s", "", rel_path_keyword="rel_path")
def SetAsDefault(self, domain, rel_path):
num_id = int(rel_path[1:])
diff --git a/framework/subsystems/opimd/docs/TODO b/framework/subsystems/opimd/docs/TODO
index a94dd6c..189285d 100644
--- a/framework/subsystems/opimd/docs/TODO
+++ b/framework/subsystems/opimd/docs/TODO
@@ -1,18 +1,22 @@
Near future:
* UnfinishedTasks
-In mean-time:
+* disabling handlers
* Initialized signal in source
+In mean-time:
+* write documentation
After that:
-* quering "Phone" should check also "Office phone" etc.
-* finished inteligent queries (ContactDeleted, ConactUpdated)
+* backends configuration, status
+* sorting by multiple fields (_sortby:['Surname','Name'])
+* finished inteligent queries (ContactDeleted, ContactUpdated)
* updating with SIM-Messages-FSO
* adding new fields to for example SIM entry (by merging)
Think about:
* RSS-Messages backend (handler)
* Google-Contacts backend
+* Evolution backends
* should quering "Phone" check also "Office phone"? regexps in fields?
-* more domains?
Finishing:
* faster merging and avoiding duplicates
* using backend engine to query instead of cache when possible
+* more optimalization, fine-tuning etc.
* world domination!
diff --git a/framework/subsystems/opimd/pimb_csv_contacts.py b/framework/subsystems/opimd/pimb_csv_contacts.py
index bb6b6cf..c71015f 100644
--- a/framework/subsystems/opimd/pimb_csv_contacts.py
+++ b/framework/subsystems/opimd/pimb_csv_contacts.py
@@ -137,6 +137,7 @@ class CSVContactBackend(Backend):
def sync(self):
self.save_entries_to_file()
+ return True
def upd_entry(self, contact_data):
pass
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list