[ZPatterns] problems w/ Folder w/ Customizer Support
Steve Alexander
[email protected]
Wed, 12 Sep 2001 23:39:14 +0100
Steve Alexander wrote:
> Tim McLaughlin wrote:
>
>>
>>
>> So, again, I kinda feel like I'm missing something. Do I need to change
>> the default constructor or something? I'm boggled (and I thought I had
>> finally kinda grokked ZP :(
>
>
>
> This looks like a bug in ZPatterns.
>
> Can you try applying this patch, and tell me if it works?
>
> --- 244,250 ----
> try:
> dm = d[_v_dm_]
> except KeyError:
> ! if name=='id' and getattr(d, 'id', [])==val: return
> raise
Oops! Sorry. That should have been this patch:
*** DataSkins.py.orig
--- DataSkins.py
***************
*** 244,250 ****
try:
dm = d[_v_dm_]
except KeyError:
! if name=='id' and val==d['id']: return
raise
--- 244,250 ----
try:
dm = d[_v_dm_]
except KeyError:
! if name=='id' and val==d.get('id', []): return
raise
--
Steve Alexander
Software Engineer
Cat-Box limited