conduit r1781 - in branches/gnome-2-24: . conduit/datatypes



Author: jstowers
Date: Fri Oct 24 15:03:10 2008
New Revision: 1781
URL: http://svn.gnome.org/viewvc/conduit?rev=1781&view=rev

Log:
2008-10-24  John Stowers  <john stowers gmail com>

	* conduit/datatypes/File.py: Restore self.FileImpl when unpickling
	Fixes #557589



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/conduit/datatypes/File.py

Modified: branches/gnome-2-24/conduit/datatypes/File.py
==============================================================================
--- branches/gnome-2-24/conduit/datatypes/File.py	(original)
+++ branches/gnome-2-24/conduit/datatypes/File.py	Fri Oct 24 15:03:10 2008
@@ -447,14 +447,17 @@
         implName = conduit.FILE_IMPL
         if implName == "GnomeVfs":
             import conduit.platform.FileGnomeVfs as FileImpl
+            self.FileImpl = FileImpl
         elif implName == "GIO":
             import conduit.platform.FileGio as FileImpl
+            self.FileImpl = FileImpl
         elif implName == "Python":
             import conduit.platform.FilePython as FileImpl
+            self.FileImpl = FileImpl
         else:
             raise Exception("File Implementation %s Not Supported" % implName)
         
-        self._file = FileImpl.FileImpl(name)
+        self._file = self.FileImpl.FileImpl(name)
         self.basePath = data['basePath']
         self.group = data['group']
         self._defer_rename(data['filename'])



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