FW: [silva-dev] Upgrade (to 0.9.2) fails with _p_jar
benno.luthiger at id.ethz.ch
Wed Aug 18 14:34:30 CEST 2004
I've tried your code completion. However, the upgrade fails on the next line
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.
> -----Original Message-----
> From: Jan-Wijbrand Kolman [mailto:jw at infrae.com]
> Sent: Mittwoch, 18. August 2004 13:55
> To: benno.luthiger at id.ethz.ch
> Cc: silva-dev at lists.infrae.com
> 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.
> Jan-Wijbrand Kolman
> jw at infrae.com
More information about the silva-dev