[Zope-Checkins] CVS: Products/AdaptableStorage/gateway_fs/interfaces - IFSConnection.py:1.3

Shane Hathaway shane@zope.com
Mon, 6 Jan 2003 18:18:17 -0500


Update of /cvs-repository/Products/AdaptableStorage/gateway_fs/interfaces
In directory cvs.zope.org:/tmp/cvs-serv1755/gateway_fs/interfaces

Modified Files:
	IFSConnection.py 
Log Message:
- Added a user folder mapper for the filesystem.  SQL version coming
  soon.  (SQL tests fail at the moment.)

- Added unwriteData() to FSConnection.  I may remove it later, since it turned
  out I didn't need it.

- Made configuration errors easier to read.

- Added null implementations of certain interfaces.

- Added a default for FixedClassifier.


=== Products/AdaptableStorage/gateway_fs/interfaces/IFSConnection.py 1.2 => 1.3 ===
--- Products/AdaptableStorage/gateway_fs/interfaces/IFSConnection.py:1.2	Tue Dec  3 18:10:52 2002
+++ Products/AdaptableStorage/gateway_fs/interfaces/IFSConnection.py	Mon Jan  6 18:17:42 2003
@@ -23,7 +23,7 @@
     """Simple filesystem connection (with textual annotations).
     """
 
-    def writeSection(subpath, section_name, data, conditional=0):
+    def writeSection(subpath, section_name, data, mode=0):
         ""
 
     def writeNodeType(subpath, data):
@@ -32,12 +32,22 @@
     def writeData(subpath, data):
         ""
 
+    def unwriteData(subpath):
+        """Reverts a previous writeData(), returning the old data.
+
+        writeData() refuses to write conflicting data (for safety).
+        But occasionally a file depends on data that's not available
+        all at once.  This method makes it possible to override a
+        previous write operation within a transaction.  If no data was
+        written, this method returns None.
+        """
+
     def readSection(subpath, section_name, default=None):
         ""
 
     def readNodeType(subpath):
         ""
 
-    def readData(subpath):
+    def readData(subpath, allow_missing=0):
         ""