[Zope] please interpret
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Sun, 14 Mar 1999 15:58:49 +1100
The following patch should do the magic thing:
RCS file: ExternalMethod.py,v
retrieving revision 1.1
diff ExternalMethod.py.dist ExternalMethod.py
--- ExternalMethod.py.dist
+++ ExternalMethod.py
@@ -251,7 +251,7 @@
error_type=sys.exc_type
error_value=sys.exc_value
tb=sys.exc_traceback
- if lower(error_type) in ('redirect',):
+ if lower(str(error_type)) in ('redirect',):
raise error_type, error_value, tb
if (type(error_value) is type('') and
regex.search('[a-zA-Z]>', error_value) > 0):
It's not the way it's fixed in the new external method code, but it
works for me, and should be enough to keep you going...
Anthony.
>>> Tres Seaver wrote
> On Fri, 12 Mar 1999 13:03:08 -0500 Jeffrey P Shell wrote:
>
> > >From: julian@zereau.net
> > >
> > > "TypeError: read-only buffer, class"
> > >
> > > I keep getting this error, please can someone explain what typically
> > > causes it?
> >
> > This is a buglet in ExternalMethod where an exception has been raised and
> > caught by ExternalMethod, and EM is looking at the values of the traceback
> > for some special conditions. It's trying to do a string.lower() call on
> > one of the values that in Python1.4 was always a string, but in Python1.5.x
> > is an instance (in Python 1.5, standard exceptions became classes). This
> > has been fixed and will be in the next release.
>
> Could you post the patch, please? This error message hits me about five ways
> from Sunday.
>
> --
> =========================================================
> Tres Seaver tseaver@palladion.com 713-523-6582
> Palladion Software http://www.palladion.com
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
--
Anthony Baxter <anthony@interlink.com.au>
It's never to late to have a happy childhood.