FW: Upgrade (to 0.9.2) fails with _p_jar
"Benno Luthiger" <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <000301c4851f$b5c39270$1e238481@openlu> |
Dear JW I've tried your code completion. However, the upgrade fails on the next line :-( with: print '_p_jar is None for', obj UnicodeError: ASCII encoding error: ordinal not in range(128) I'll try a workaround for this error and try the upgrade again. Regards, Benno > -----Original Message----- > From: Jan-Wijbrand Kolman [mailto:[email protected]] > Sent: Mittwoch, 18. August 2004 13:55 > To: [email protected] > Cc: silva-dev-IAPFreCvJWM6s/[email protected] > Subject: Re: [silva-dev] Upgrade (to 0.9.2) fails with _p_jar > > > I indeed do recognize this attribute error when working on > the upgrade > procedures. I also remember having to add an getattr check for this > _p_jar here and there (in code which might touch ParsedXML objects). > > AFAIK (it is all a bit fuzzy to me too) the _p_jar attributes > are part > of the persistence machinery of Zope/ZODB. Sometimes objects do not > (yet) have this attr. depending on the state of the transaction at > that point. > > > Uhm, I'd need a bit more investigation time into the code you mention > in the stack trace to have a reasonable suggestion. For the > time being > you might just change this line 305 into something like: > > if getattr(obj, '_p_jar', None) and obj._p_jar is not None: > > ...and see if the upgrade now continues succesfully. > > > HTH > regards > jw > > -- > Jan-Wijbrand Kolman > [email protected]