Re: [Zope] Extract Files from ZODB
Carlosfocker wrote at 2007-2-13 18:25 +: >I have a ZODB that was being used by Plone to store files(Word documents, >Images, etc.). Plone is no longer working. >I want to extract (retrieve) the >files from the ZODB. Is this possible? Whether this is possible (without deep tricks) depends on what "Plone is no longer working" means. Keep in mind that the ZODB stores object states only but no code whatsoever. To understand the states, working external (application) code is necessary. "If Plone is no longer working" means that the "Plone" instance object can no longer be loaded from the ZODB, then the code is missing that provides understanding for the "Plone" instance object's state. Somewhere deep inside this state are your files "If Plone is no longe working" means that the "Plone" UI no longer works but the Zope Management Interface still operates, then you have hope that you can recover your files. Even in the first case, there is some hope: you can go back to the Plone version that created the state. This version should be able to understand it. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Extract Files from ZODB
- Original Message - From: "Carlosfocker" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 1:25 PM Subject: [Zope] Extract Files from ZODB I have a ZODB that was being used by Plone to store files(Word documents, Images, etc.). Plone is no longer working. I want to extract (retrieve) the files from the ZODB. Is this possible? If so, how is this accomplished. Note: I cannot access Plone or anything in Plone because it is not working. I am looking for a solution that involves working only with ZODB through Zope, not a procedure that attempts to troubleshoot Plone. If the documents were stored as 'Files' then you can do a search by meta-type: for fileObj in container.objectValues('File'): You would need to recurse through your directory (folder) structure to get every file (unless they were stored in known folders). Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Extract Files from ZODB
I have a ZODB that was being used by Plone to store files(Word documents, Images, etc.). Plone is no longer working. I want to extract (retrieve) the files from the ZODB. Is this possible? If so, how is this accomplished. Note: I cannot access Plone or anything in Plone because it is not working. I am looking for a solution that involves working only with ZODB through Zope, not a procedure that attempts to troubleshoot Plone. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )