Re: [Zope-dev] data migration from zope 2.6.1 to zope 2.7.0-b2
On Fri, Feb 06, 2004 at 03:12:39PM -0600, J Cameron Cooper wrote: > altkey wrote: > > >I am fairly new to zope & python but I am working to migrate some > >data/objects from zope 2.6.1 to zope 2.7.0-b2 (and eventually 2.7.0 > >final. > > > >What I am doing is this. > >(1) get Dublin core metadata + some Dublin core extensions for the > >objects > >(2) get pure text representation of object content - I can't use > >a simple import/export in zexp format because the classes in the > >receiving zope instance differ significantly from the classes in the > >sending zope instance. > > > >I am able to collect all the data mentioned above and pass it across > >to the new 2.7.0-b2 zope instance but i am having trouble getting my > >objects to live where they need to live; specifically their path is > >not being accepted properly when i recreate the objects. > > Before trying to deal with the problem you state, I'll make two possibly > simplifying observations: > > 1. There should be no need to do any migration when upgrading Zope. The > ZODB has not changed, and you may simply copy it over or upgrade Zope in > place. > > 2. ZSyncer is the best magic for copying objects from one instance to > another. I doubt it will help. ZSyncer is a shortcut for export -> import, and altkey wants to convert between two different classes. Also zsyncer currently enforces (stupidly) that the two zopes must have the same folder hierarchy - you can't sync /foo/bar/baz to /bat/bar/baz. altkey, maybe you should break this into multiple steps, some of which are apparently done already; something like: 1) write code that extracts data from an old class. 2) write code that creates an instance of the new class from this data. note that this is on one server so the classes must have different names or live in different modules. i think you're ok here already. 3) write a script that upgrades a single object "in place" by doing #1, deleting the object, then doing #2 4) write a script that walks a folder tree and does #3 on all instances of the old class. 5) use zsyncer or export / import to copy the objects from the old zope to the new zope. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's INMATE SUPER EXOSKELETON! (random hero from isometric.spaceninja.com) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Zope2.7.0rc2 AttributeError: 'NoneType' object has no attribute 'setHeader'
Christian Heimes wrote: [...] And the next one: Python2.3.3/Zope2.70rc2/Plone2rc5. Exception Type AttributeError Exception Value 'str' object has no attribute 'RESPONSE' [...] Module Products.CMFPhoto.Photo, line 510, in clearCache AttributeError: 'str' object has no attribute 'RESPONSE' The relevant code line is self.REQUEST.RESPONSE.setHeader(). The error occured at object creation. Something really bad is going on! Christian ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] data migration from zope 2.6.1 to zope 2.7.0-b2
altkey wrote: I am fairly new to zope & python but I am working to migrate some data/objects from zope 2.6.1 to zope 2.7.0-b2 (and eventually 2.7.0 final. What I am doing is this. (1) get Dublin core metadata + some Dublin core extensions for the objects (2) get pure text representation of object content - I can't use a simple import/export in zexp format because the classes in the receiving zope instance differ significantly from the classes in the sending zope instance. I am able to collect all the data mentioned above and pass it across to the new 2.7.0-b2 zope instance but i am having trouble getting my objects to live where they need to live; specifically their path is not being accepted properly when i recreate the objects. Before trying to deal with the problem you state, I'll make two possibly simplifying observations: 1. There should be no need to do any migration when upgrading Zope. The ZODB has not changed, and you may simply copy it over or upgrade Zope in place. 2. ZSyncer is the best magic for copying objects from one instance to another. As for your stated problem: I think self may not be what you think it is, because if it really is 'testStuff' it should work like you expect. I can't say why without knowing more. --jcc -- "He who fights with monsters should look to it that he himself does not become a monster. And when you gaze long into an abyss the abyss also gazes into you." ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope2.7.0rc2 AttributeError: 'NoneType' object has no attribute 'setHeader'
Tony McDonald wrote at 2004-2-5 19:29 +: > ... >> Looks like "RESPONSE" is "None". >> >> I do not see how this can happen... >> > >Exactly! - this is why I said I'd never seen this before. > >It's a 2.6.1 Data.fs that's been dropped into a stock 2.7.0rc2 release >and I get this error. Whether or not "RESPONSE" is "None" should not be dependent on the "Data.fs" ("RESPONSE" is recreated for each request and is independent of persistent objects). >I have no idea why this is happening, so I was hoping that it was an >artifact of the 2.7.0rc2 release itself. > >> Probably, I would start debugging. >> > >Quite likely, but I have *no* idea where to start with this. All the >modules mentioned in the trackback are Zope supplied ones, not third >party ones, so I'd assumed it might be the core software. "REQUEST.RESPONSE" is set up in "ZServer.HTTPServer.zhttp_handler.continue_request". It should be impossible that is is "None". Maybe, we have a memory corruption. I have seen objects magically becoming "None" in Python versions with memory corruption problems (Python 2.1.1). -- Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Warning: E-mail viruses detected
Our virus detector has just been triggered by a message you sent:- To: [EMAIL PROTECTED] Subject: Hello Date: Fri Feb 6 16:17:42 2004 One or more of the attachments are on the list of unacceptable attachments for this site and will not have been delivered. Consider renaming the files or putting them into a "zip" file to avoid this constraint. The virus detector said this about the message: Report: Windows Screensavers often hide viruses in email (data.scr) -- MailScanner Email Virus Scanner www.mailscanner.info ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )