Re: [pylons-discuss] Reading a Zope ZODB from Pyramid?

2018-07-31 Thread Laurent DAVERIO
Thank you very much Gael,

I vaguely remembered about pickles, thanks for pointing that out. Unless
I'm mistaken, Python 2 and 3 use different pickling formats, so my
Pyramid app would also have be downgraded to Python 2...

Maybe I should try something else, after all.
Thanks for your help,

Laurent.


> ZODB use pickle to store your objects' instances. This mean that you'll need
> to make available all the classes (python code) used by Zope/CMF to
> deserialize objects in your pyramid app.
> 
> This maybe painfull but it seems doable since Zope/CMF are now available as
> packages on pypi.
> 
> The easy way to try this is probably to install pyramid in your current
> Zope/CMF venv, write a minimalistic pyramid app to access your ZODB, and
> start it from this venv.
> 
> Hope this help.
> 
>>
>> Thanks in advance,
>>
>> Laurent.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "pylons-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to pylons-discuss+unsubscr...@googlegroups.com.
>> To post to this group, send email to pylons-discuss@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pylons-discuss/e29375c6-7f65-4544-dbac-eae666f6517d%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/78e17265-167e-ef26-209b-743e134e820f%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pylons-discuss] Reading a Zope ZODB from Pyramid?

2018-07-30 Thread Gael Pasgrimaud
Hi,

On Mon, Jul 30, 2018 at 06:01:54PM +0200, Laurent DAVERIO wrote:
> Hello list,
> 
> this may be a very silly question, and if so I apologize in advance, but
> I'm not sure what to google.
> 
> Is it reasonable to try and read data from the ZODB of a Zope/CMF
> instance directly from Pyramid, or should I write export routines in the
> Zope app?

ZODB use pickle to store your objects' instances. This mean that you'll need
to make available all the classes (python code) used by Zope/CMF to
deserialize objects in your pyramid app.

This maybe painfull but it seems doable since Zope/CMF are now available as
packages on pypi.

The easy way to try this is probably to install pyramid in your current
Zope/CMF venv, write a minimalistic pyramid app to access your ZODB, and
start it from this venv.

Hope this help.

> 
> Thanks in advance,
> 
> Laurent.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/e29375c6-7f65-4544-dbac-eae666f6517d%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/20180730161617.GA25464%40boiboite.
For more options, visit https://groups.google.com/d/optout.