Re: [ZODB-Dev] Zodb with Yaml

2006-03-19 Thread Chris McDonough
Hmm.   A scan of the files in ZODB and persistence also turn up the  
conflict resolution code, the import/export machinery, and  
FileStorage.  And a bunch of tests.  And maybe the pickle cache and  
cPersistence.c (although I haven't looked closely enough at that code  
to know if it would need to be modified, maybe the function names in  
the code are misleading).


- C

On Mar 19, 2006, at 2:37 PM, Dieter Maurer wrote:


Chris McDonough wrote at 2006-3-18 20:58 -0500:

If yaml (or pysyck) supports all of the features of pickle, it's
theoretically possible.  You would need to track down all of the
places in ZODB where the code serializes and deserializes data from
pickle format and write alternate serializing/deserializing logic.

But AFAIK the serialization code in ZODB is not very "pluggable".


I am much more optimistic.

I think only "ZODB/serialize.py" and "ZODB/Connection.py"
would need to be modified.

--
Dieter



___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Zodb with Yaml

2006-03-19 Thread Dieter Maurer
Chris McDonough wrote at 2006-3-18 20:58 -0500:
>If yaml (or pysyck) supports all of the features of pickle, it's  
>theoretically possible.  You would need to track down all of the  
>places in ZODB where the code serializes and deserializes data from  
>pickle format and write alternate serializing/deserializing logic.
>
>But AFAIK the serialization code in ZODB is not very "pluggable".

I am much more optimistic.

I think only "ZODB/serialize.py" and "ZODB/Connection.py"
would need to be modified.

-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Zodb with Yaml

2006-03-18 Thread Chris McDonough
If yaml (or pysyck) supports all of the features of pickle, it's  
theoretically possible.  You would need to track down all of the  
places in ZODB where the code serializes and deserializes data from  
pickle format and write alternate serializing/deserializing logic.


But AFAIK the serialization code in ZODB is not very "pluggable".  As  
a result, it would be a nontrivial thing to do, especially given that  
some serialization-sensitive portions of ZODB are written in C.  So I  
suspect that this is one of those questions that has an answer that  
goes something like  "assuming it's worth the effort, if you need to  
ask, the answer is yes." ;-)


You might want to try adapting Durus instead as I believe it's  
written entirely in Python.


- C

On Mar 18, 2006, at 1:21 PM, Chris Spencer wrote:

Just out of curiosity, would there be any huge technical hurtles to  
getting Zodb to use Yaml for serialization instead of Pickle?


Regards,
Chris

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev



___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev