Discussion:
How to export data from the zope database?
UN PEP
2007-02-24 14:51:06 UTC
Permalink
I'm looking for the tools that can export the data from the zope object database.
But zope database is a bit complicated and I'm a newbie in Python and zope database.
If anyone has an experience, please help me by guiding how to write a small coding to extract data from zope.
Thanks in advance.




---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
Ricardo Newbery
2007-02-25 00:41:27 UTC
Permalink
Post by UN PEP
I'm looking for the tools that can export the data from the zope object database.
But zope database is a bit complicated and I'm a newbie in Python and zope database.
If anyone has an experience, please help me by guiding how to write
a small coding to extract data from zope.
Thanks in advance.
The question is too vague.

It might be helpful to give a bit more detail about what "data" you
are trying to export and what sort of export format you need.

It might be even more helpful to explain *why* you want to "export
data". What are you trying to do with this "data"?

Ric

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
UN PEP
2007-02-25 07:43:13 UTC
Permalink
Yes. I need to export on the ZODB level (through the ZMI) into the csv format or to export into MySQL.
Because I need to develop research and from zope database i should retrieve the data to display on the template.
But i'm very newbie in Python and so I decided to code with PHP.
Therefore, if i can export data from zope db into csv or MySQL format, my life will easier.
Thanks.
Post by UN PEP
I'm looking for the tools that can export the data from the zope object
database. But zope database is a bit complicated and I'm a newbie in
Python and zope database.
Do you man export on the ZODB level (export/import through the ZMI?) or
application-level import?

-aj


---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.
Lennart Regebro
2007-02-25 07:55:10 UTC
Permalink
Post by UN PEP
Yes. I need to export on the ZODB level (through the ZMI) into the csv
format or to export into MySQL.
The ZODB is an object database. Although exporting is and importing it
into MySQL of course strictly speaking is possible, it doens't make
any sense, as you in the situation would still just have a bunch of
binary objects representing the python objects of the ZODB. Thus, you
would have gained nothing.

What you can do, and what makes more sense, is to e export the data
you want from the objects in the ZODB. This you do by writing a python
script which outputs the data. To do that you need to understand how
the data is organized in the ZODB. This only you an know, snce only
you have the data.
Post by UN PEP
Because I need to develop research and from zope database i should retrieve
the data to display on the template.
But i'm very newbie in Python and so I decided to code with PHP.
Python takes ten minutes to learn, so that's not a good reason. ;-)
Post by UN PEP
Therefore, if i can export data from zope db into csv or MySQL format, my life will easier.
Yeah, you can, but you can't export the ZODB in it's entirety. Or
well, you can, but that's not what you want. :-)
--
Lennart Regebro: Python, Zope, CPS, Plone consulting.
+33 661 58 14 64

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Loading...