From: <svn...@op...> - 2009-03-29 22:42:16
|
Author: dgollub Date: Mon Mar 30 00:42:10 2009 New Revision: 5441 URL: http://www.opensync.org/changeset/5441 Log: Dropped write plugin sink function - which is no longer provided by OpenSync API. (r5435) Modified: plugins/python-module/src/python_module.c plugins/python-module/src/sample.py Modified: plugins/python-module/src/python_module.c ============================================================================== --- plugins/python-module/src/python_module.c Mon Mar 30 00:36:41 2009 (r5440) +++ plugins/python-module/src/python_module.c Mon Mar 30 00:42:10 2009 (r5441) @@ -288,11 +288,6 @@ pm_call_module_method(data, "committed_all", info, ctx, NULL); } -static osync_bool pm_write(void *data, OSyncPluginInfo *info, OSyncContext *ctx, OSyncChange *change) -{ - return pm_call_module_method(data, "write", info, ctx, change); -} - static osync_bool pm_read(void *data, OSyncPluginInfo *info, OSyncContext *ctx, OSyncChange *change) { return pm_call_module_method(data, "read", info, ctx, change); @@ -308,7 +303,6 @@ .disconnect = pm_disconnect, .get_changes = pm_get_changes, .commit = pm_commit, - .write = pm_write, .committed_all = pm_committed_all, .read = pm_read, .batch_commit = NULL, /* not (yet) supported for python plugins */ Modified: plugins/python-module/src/sample.py ============================================================================== --- plugins/python-module/src/sample.py Mon Mar 30 00:36:41 2009 (r5440) +++ plugins/python-module/src/sample.py Mon Mar 30 00:42:10 2009 (r5441) @@ -23,7 +23,7 @@ def commit(self, info, ctx, chg): print "commit called!" - print "Opensync wants me to write data for UID", chg.uid + print "Opensync wants me to commit data for UID", chg.uid def committed_all(self, info, ctx): print "committed_all called!" @@ -32,10 +32,6 @@ print "read called!" print "OpenSync wants me to read the data for UID", chg.uid - def write(self, info, ctx, chg): - print "write called!" - print "Opensync wants me to write data for UID", chg.uid - def disconnect(self, info, ctx): print "disconnect called!" |