[ZPatterns] ZPatterns buglet

John Eikenberry jae-zpat@kavi.com
Fri, 8 Jun 2001 17:45:12 -0700


The problem is that ObjectManager doesn't come with the attribute 'id' set,
which is used for traversal. Folder's inherit this functionality from
SimpleItem.Item.

R. David Murray  wrote:

> OK, I finally got back to working on my ZPatterns-from-python problem.
> Turns out it has nothing to do with instantiating a Specialist from
> python.
> 
> My product first instantiates an instance of a class derived from
> ObjectManager, and then instantiates my Specialist subclass inside
> it.
> 
> When I do that, the links generated by RacksGroup and PluginGroup
> are missing the name of the ObjectManager from their URLs.
> 
> This is true whether I use python to instantiate the Specialist, or
> do it by hand from the management interface.
> 
> Changing my base class from ObjectManager to Folder fixes the
> problem (the correct links are generated).  After some thought,
> Folder seems the correct base class for my app anyway, so
> for me the problem is solved.  However, I thought someone else
> might be curious enough to figure out what the buglet is.
> 
> I'm doing all this under 2.3.2, and ZPatterns-with-stevea's-mods,
> by the way.
> 
> --RDM
> 
> 
> _______________________________________________
> ZPatterns mailing list
> ZPatterns@eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/zpatterns

-- 

John Eikenberry [jae@kavi.com]
______________________________________________________________
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
                                          --B. Franklin