conduit r1810 - in trunk: . conduit
- From: jstowers svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1810 - in trunk: . conduit
- Date: Tue, 20 Jan 2009 00:46:55 +0000 (UTC)
Author: jstowers
Date: Tue Jan 20 00:46:55 2009
New Revision: 1810
URL: http://svn.gnome.org/viewvc/conduit?rev=1810&view=rev
Log:
2009-01-20 John Stowers <john stowers gmail com>
* conduit/Conflict.py: Convert data appropriately in
conflict resolution
Fixes #568361 (Brian Teague)
Modified:
trunk/ChangeLog
trunk/conduit/Conflict.py
Modified: trunk/conduit/Conflict.py
==============================================================================
--- trunk/conduit/Conflict.py (original)
+++ trunk/conduit/Conflict.py Tue Jan 20 00:46:55 2009
@@ -83,13 +83,17 @@
data = self.sourceData
dataRid = self.sourceDataRid
source = self.sourceWrapper
+ sourceDataType = self.sourceData.get_type()
sink = self.sinkWrapper
+ sinkDataType = self.sinkWrapper.get_input_type()
elif direction == CONFLICT_COPY_SINK_TO_SOURCE:
log.debug("Resolving source <-- sink data")
data = self.sinkData
dataRid = self.sinkDataRid
source = self.sinkWrapper
+ sourceDataType = self.sinkData.get_type()
sink = self.sourceWrapper
+ sinkDataType = self.sourceWrapper.get_input_type()
elif direction == CONFLICT_DELETE:
log.debug("Resolving deletion --->")
data = self.sinkData
@@ -107,7 +111,8 @@
conduit.Synchronization.delete_data(source, sink, data.get_UID())
else:
log.debug("Resolving self. Putting %s --> %s" % (data, sink))
- conduit.Synchronization.put_data(source, sink, data, dataRid, True)
+ newdata = conduit.GLOBALS.typeConverter.convert( sourceDataType, sinkDataType, data )
+ conduit.Synchronization.put_data(source, sink, newdata, dataRid, True)
self.cond.resolved_conflict(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]