[Zope-Checkins] CVS: Products/TemporaryFolder - TemporaryFolder.py:1.2 TemporaryStorage.py:1.2

Matthew T. Kromer matt@zope.com
Tue, 13 Nov 2001 16:44:33 -0500


Update of /cvs-repository/Products/TemporaryFolder
In directory cvs.zope.org:/tmp/cvs-serv20722

Modified Files:
	TemporaryFolder.py TemporaryStorage.py 
Log Message:
Commit removal of autoimport and amplify error msg on version


=== Products/TemporaryFolder/TemporaryFolder.py 1.1 => 1.2 ===
 
         folder.icon = "misc_/TemporaryFolder/tempfolder.gif"
-
-        importdir = os.path.join(Globals.data_dir,self.id+"Imports")
-
-        #conn = folder._p_jar                    # Can we do that yet?
-        conn = root._p_jar
-
-        try:
-            for file in os.listdir(importdir):
-                if file[-5:] == ".zexp":
-                    id = file[:-5]
-                    # Import this!
-                    ob = conn.importFile(os.path.join(importdir, file))
-                    folder._setObject(id, ob)
-        except OSError: pass # (no such dir)
-


=== Products/TemporaryFolder/TemporaryStorage.py 1.1 => 1.2 ===
         if transaction is not self._transaction:
             raise POSException.StorageTransactionError(self, transaction)
+
+
         if version:
-            raise POSException.Unsupported, "Versions aren't supported"
+            raise POSException.Unsupported, ("TemporaryStorage is incompatible "
+                "with versions",)
 
         self._lock_acquire()
         try: