[Zope-dev] Bug in 2.4.1 final
Joachim Schmitz
js@aixtraware.de
Mon, 10 Sep 2001 14:32:50 +0200 (CEST)
Hi,
I run into a problem with ZPatterns, and XML-rpc. Steve Alexander
discovered, that it was caused by a bug in Zope-2.4.1 final (see below). =
The bug was NOT
in 2.4.1b1. So there must have been a code change between the beta and th=
e
final. I thought, that there are no codechanges between the last beta and
the final version ?
Mit freundlichen Gr=FC=DFen
Joachim Schmitz
AixtraWare, Ing. B=FCro f=FCr Internetanwendungen
H=FCsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163
---------- Forwarded message ----------
Date: Sat, 08 Sep 2001 12:46:53 +0100
From: Steve Alexander <steve@cat-box.net>
To: Joachim Schmitz <js@aixtraware.de>
Cc: zpatterns <zpatterns@eby-sarna.com>
Subject: Re: [ZPatterns] mystery with restrictedTraverse
Joachim Schmitz wrote:
>
>
> <P>
> <STRONG>Error Type: NameError</STRONG><BR>
> <STRONG>Error Value: global name \'has\' is not defined</STRONG><BR>
> </P>
>
> The most strange thing is that worked with 2.4.1b1, after installing
2.4.1
> final it failed.
>
> I just tested it with 2.3.3 there it works too.
> With a normal folder in a subfolder it works too.
>
> Any hint is apreacheated.
It is a bug in 2.4.1 final.
You need to alter lib/OFS/Traversable.py, line 144, and insert the line
has=3Dhasattr
after the existing get=3Dgetattr
--
Steve Alexander
Software Engineer
Cat-Box limited