Re: how to export data from ZODB to text files

2005-06-10 Thread Josef Meile
Hi again, > I thought also about Python script like > > > //connect to database > >>> from ZODB import FileStorage, DB > >>> storage = FileStorage.FileStorage('Data.fs') > >>> db = DB(storage) > >>> conn = db.open() > >>> dbroot = conn.root() I just found an information that may be usefu

Re: how to export data from ZODB to text files

2005-06-10 Thread Josef Meile
Hi Lucasz, > Thank you so much. I will ask our Plone administrator to test your > script and I will write about result here. You are wellcome. I think it is one of the easiest way of doing it. > I thought also about Python script like > > > //connect to database > >>> from ZODB import FileSt

Re: how to export data from ZODB to text files

2005-06-08 Thread Josef Meile
Hi Lukasz, > Yes, I'm traing to escape from Zope-land, to be more clarify I want to > migrate from Plone to PHP Application, which uses MySQL database > engine, so I have to move all data from ZODB to MySQL. I suppose that > python script shouldn`t be so complex. I need just iterate ZODB and > wri

Re: how to export data from ZODB to text files

2005-06-08 Thread Max M
ls wrote: > I'm experienced mostly in C, PHP, also with some backgrounds of CPP > and Java, but I'm totaly new in Python ... > > What do you suggest in this case? The simplest approach is to run Zope with the Data.fs file. If you have access to the zope instance you want to export from, you on

Re: how to export data from ZODB to text files

2005-06-07 Thread John J. Lee
[EMAIL PROTECTED] (ls) writes: > Hi Peter, > > Thank you for your reply. I already can access file using code > > > >>> from ZODB import FileStorage, DB > >>> storage = > FileStorage.FileStorage('mydatabase.fs') > >>> db = DB(storage) > >>> connection = db.open() >

Re: how to export data from ZODB to text files

2005-06-07 Thread Peter Hansen
ls wrote: > I looking for help with ZODB data export to text file. I have file > Data.fs > [snip] > Could you point me in to some Python code examples, code contributions > and so on. You can download the "standalone" ZODB code and run it under regular Python without Zope installed or involved,

how to export data from ZODB to text files

2005-06-07 Thread ls
Hi All, I looking for help with ZODB data export to text file. I have file Data.fs (file becomes from Plone CMS) and I have to display content structure, data like intro, body of article, etc and save it in to simple file. However I can't use Plone XML export because is broken, Zope Corp. set low