[ZPatterns] problems w/ Folder w/ Customizer Support

Steve Alexander [email protected]
Wed, 12 Sep 2001 23:12:23 +0100


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?


*** 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 getattr(d, 'id', [])==val: return
               raise

--
Steve Alexander
Software Engineer
Cat-Box limited