[Zope] Object ID and Property confusion

Alexandre Ratti alex@gabuzomeu.net
Thu, 10 Feb 2000 12:57:43 +0100


Hello,


At 09:36 09/02/2000 -0800, you wrote:
>I did try an awful lot of variants of this kind of thing, and it works fine
>if you're scanning through lists of native objects like Folders, or DTML
>Methods. (or at least, the 'id' part works - Folders don't have a 'myProp'
>property, of course)
>
>Unfortunately, it doesn't work for ZClass instances -- for some reason, the
>id property doesn't get returned in quite the same way from objectValues()
>or objectItems(), and you end up with a list like this (which you also get
>if you use <dtml-var "_.str(_['sequence-var-id'])">);
>
><string> -- MyPropValue1<br>
><string> -- MyPropValue2<br>


I don't think this is normal behavior. This may be related to the "ZClass 
ID bug". You may want to take a look at this doc:
<http://www.zope.org/Members/AlexR/ZClassIDBug>.


Cheers.

Alexandre