RE: [Zope] Opinions sought on acquisition issue
BTW, I have a product called "CascadingFolders" that does exactly this. If you need something like that let me know and I'll upload it to Zope.org. -Randy
-----Original Message----- From: Chris McDonough [mailto:chrism@digicool.com] Sent: Thursday, March 29, 2001 6:33 PM To: The Famous Brett Watson; zope@zope.org Subject: Re: [Zope] Opinions sought on acquisition issue
The reason that this is an issue at all, however, is because identically-named container objects to not acquire the contents of the containers they mask, if any. The "images" folder in the "log" folder masks the "images" folder at the root, thus *hiding* the contents of that folder rather than *acquiring* the contents of that folder. What would the implications be for Zope if acquisition meant that a failed method invocation resulted in further traversal of the namespace stack instead of immediate failure? Thus, if I try to reference "images['site-logo.jpg']", and the first "images" object found does not contain 'site-logo.jpg', would it be a good, bad, or ugly thing for Zope to *continue* the search for "images" objects containing a 'site-logo.jpg'?
It would probably be not so good. It's my belief that we're trying to move to more explicitness, and this magic is hard to document. That's not to say that you can't make a container like this and hook __getattr__ and keep going!
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Randall F. Kern