minor EvolutionModule bug



I believe that I have uncovered a minor bug with the evolution module.
It appears that the arguments submitted to the synchronization error
were reversed from what they should have been. 

Patch attached.

-Matt

2008-09-26  Matt Colyer <>

    * conduit/modules/EvolutionModule/EvolutionModule.py: Fix arguments
on SynchronizeError.

diff --git a/conduit/modules/EvolutionModule/EvolutionModule.py b/conduit/modules/EvolutionModule/EvolutionModule.py
index 55c0ca3..95bfe0c 100644
--- a/conduit/modules/EvolutionModule/EvolutionModule.py
+++ b/conduit/modules/EvolutionModule/EvolutionModule.py
@@ -75,7 +75,7 @@ class EvoBase(DataProvider.TwoWay):
                     comp = obj.compare(existing)
                     # only update if newer
                     if comp != conduit.datatypes.COMPARISON_NEWER:
-                        raise Exceptions.SynchronizeConflictError(comp, existing, obj)
+                        raise Exceptions.SynchronizeConflictError(comp, obj, existing)
                     else:
                         # overwrite and return new ID
                         rid = self._update_object(LUID, obj)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]