[Zope] Error Value: global name 'has' is not defined

Joachim Schmitz js@aixtraware.de
Fri, 14 Sep 2001 08:33:19 +0200 (CEST)


this is a bug in Zope-2.4.1 final, I run into it using the ZSyncer-produc=
t
and Steve Alexander found it. Here is the fix:

in lib/python/OFS/Traversable.py

after line 144:

        get=3Dgetattr
insert:
	has=3Dhasattr

and restart Zope.


On Thu, 13 Sep 2001, Zanotti Michele wrote:

> Hi all,
> I have done a little zclass, in his addForm method I have this instruct=
ion:
>
> <dtml-in
> expr=3D"restrictedTraverse('/Control_Panel/Products/myProduct/myClass/p=
roperty
> sheets/common/myProperties').getProperty('types')">
> In Zope 2.3.3 everything works, but in Zope 2.4.1 I have this error:
> Error Type: NameError
> Error Value: global name 'has' is not defined
> <!--
<snip>
> Can you help me?
> Many thanks
> Michele
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>

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