[Zope-CVS] CVS: Products/AdaptableStorage - Zope2FS.py:1.4

Shane Hathaway shane@zope.com
Thu, 5 Dec 2002 12:39:17 -0500

Update of /cvs-repository/Products/AdaptableStorage
In directory cvs.zope.org:/tmp/cvs-serv16479

Modified Files:
Log Message:
The following comments might not make sense to anyone but me right now,
but someday it might be useful for historical purposes.

- Removed ClassificationAspect.  This strategy simply can't work correctly.
  The load() method of FSClassificationSection was using the wrong object
  mapper to classify filenames (it was using the child's rather than the
  container's object mapper), revealing that classification should be
  known only to the container, not the object.

- Added a "preserve" write mode to FSConnection, enabling classification to
  be preserved even though other sections get changed.

- Simplified FSClassificationSection using the new preserve write mode.

- Since ClassificationAspect no longer exists, nothing will ever delegate
  aspect loading/storing to MetaTypeClassifier.  Removed the methods that
  implemented the IAspectSerializer interface.

- Now gateways can return None as the serial, making them invisible to the
  hash computation.

- Added tests that verify that classifications get stored in preserve mode.

- Turned the debug flag back off :-)

=== Products/AdaptableStorage/Zope2FS.py 1.3 => 1.4 ===
--- Products/AdaptableStorage/Zope2FS.py:1.3	Wed Dec  4 23:18:07 2002
+++ Products/AdaptableStorage/Zope2FS.py	Thu Dec  5 12:38:46 2002
@@ -21,7 +21,7 @@
      import ObjectSerializer, ObjectGateway, ObjectMapper, DomainMapper
 from serial_std.public \
      import RollCall, FixedPersistentMapping, IgnoredAttribute, \
-     RemainingState, ClassificationAspect
+     RemainingState
 from serial_ofs.public import FolderItems, MetaTypeClassifier, IdAttribute
 from gateway_fs.public import FSConnection, FSDirectoryItems, FSAutoId, \
      FSSectionData, FSClassificationSection
@@ -38,7 +38,6 @@
     # folder serializer
     class_info = (('OFS.Folder', 'Folder'), None)
     s = ObjectSerializer(class_info)
-    s.addAspect('classification', ClassificationAspect())
     s.addAspect('items', FolderItems())
     s.addAspect('id', IdAttribute())
     s.addAspect('remainder', RemainingState())