[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - apeconf.xml:1.5

Shane Hathaway shane at zope.com
Thu Feb 19 01:44:07 EST 2004


Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv14876/lib/apelib/zope2

Modified Files:
	apeconf.xml 
Log Message:
Two changes that make storing the Zope root object reasonable:

  - Pickled remainders are now encoded in base64 and stored in the
    properties file.  Ape no longer creates .remainder files, although
    it will read them.  This reduces the number of files Ape creates
    and sets a precedent that any annotation can contain a pickle
    as long as it's encoded as text.

  - There is now one PersistentMappingSerializer.  It stores both
    references and simple objects.  To accomplish this, it has to
    store reference values differently from non-reference values.
    The non-references get pickled and stored in an annotation called 
    "other". 

In testing, Ape successfully acted as the main Zope 
database.  Woohoo!  (A little Zope hack was required, but it 
should be possible to fix that.)



=== Products/Ape/lib/apelib/zope2/apeconf.xml 1.4 => 1.5 ===
--- Products/Ape/lib/apelib/zope2/apeconf.xml:1.4	Mon Feb  2 10:07:23 2004
+++ Products/Ape/lib/apelib/zope2/apeconf.xml	Thu Feb 19 01:44:06 2004
@@ -24,14 +24,14 @@
 <mapper name="root" register-class="false"
    class="Persistence.PersistentMapping">
  <serializer name="items"
-   factory="apelib.zodb3.serializers.StringToPersistentPM" />
+   factory="apelib.zodb3.serializers.PersistentMappingSerializer" />
  <serializer name="roll_call" factory="apelib.zodb3.serializers.RollCall" />
  <variation name="filesystem">
-  <gateway name="items" factory="apelib.fs.structure.RootDirectoryItems" />
+  <gateway name="items" factory="apelib.fs.structure.root_mapping" />
   <use-for oid="/_root" />
  </variation>
  <variation name="sql">
-  <gateway name="items" factory="apelib.sql.structure.SQLFolderItems" />
+  <gateway name="items" factory="apelib.sql.structure.root_mapping" />
   <use-for oid="0" />
  </variation>
 </mapper>




More information about the Zope-CVS mailing list