[ZPatterns] problems w/ Folder w/ Customizer Support

Tim McLaughlin [email protected]
Wed, 12 Sep 2001 20:09:37 -0400


Steve Alexander wrote:
> 
> 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
> 
> _______________________________________________
> ZPatterns mailing list
> [email protected]
> http://www.eby-sarna.com/mailman/listinfo/zpatterns

Steve,
I tried the patch, and then a few other things, but all to no avail. 
I'm not in the groove enough to comprehend the underlying func of ZP,
so, regrettably, I seem to be getting nowhere.  I'm starting to imagine
that I did something silly/stupid that is causing this not to work.  I
just can't imagine what it was.  Here's what I did...
1. Install ZP
2. Instantiate Folder w/ Custom
3. Made ZClass that subclasses Dataskin
4. Tried to instantiate ZClass in Folder w/ Custom
and no go.

Tim
-- 
Tim McLaughlin
iterationZERO - www.iterationzero.com
703.481.2233