RE: FW: Upgrade (to 0.9.2) fails with _p_jar
"Benno Luthiger" <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <000401c48526$695b9e80$1e238481@openlu> |
Dear all > print '_p_jar is None for', obj.absolute_url() I've chosen the one above and after fixing that, the 0.9.2-upgrade went through. However, it seems that our site doesn't upgrade with the upgrade scripts delivered with Silva. Is there an alternative to hacking the upgrade.py in Silva 0.9.2? Thanks, Benno > -----Original Message----- > From: Guido Wesdorp [mailto:[email protected]] > Sent: Mittwoch, 18. August 2004 14:57 > To: [email protected] > Cc: silva-dev-IAPFreCvJWM6s/[email protected] > Subject: Re: FW: [silva-dev] Upgrade (to 0.9.2) fails with _p_jar > > That's easy to fix: instead of 'obj' you can print 'repr(obj)', this > will display non-ascii chars as escapes and makes printing > possible no > matter what the encoding of the string. I do think this does > mean you're > printing an object that has string content, though, so I reckon the > output may not be too elegant, so perhaps it makes more sense > to print: > > print '_p_jar is None for', obj.absolute_url() > > or maybe > > print '_p_jar is None for', '/'.join(obj.getPhysicalPath()) > > since not all objects have an absolute url (so through > acquisition the absolute_url method of the parent will be called). > > Good luck, > > Guido > >