At 10:42 AM 5/25/00 -0400, Tres Seaver wrote: > >In our case, perhaps it needs to be:: > > def findNearestResource( meta_type ): > >which causes a walk up the containment hierarchy, searching for objects >of the given meta_type. > I would suggest that it ask for an interface, rather than a meta_type. Otherwise, you've hardwired yourself into a single object type with no extensibility. For example, an SQL method wants the nearest SQL connection, but shouldn't have to explicitly ask for each kind of SQL connection (Sybase, Oracle, etc.) _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
- Re: [Zope-dev] Observer / Notification Interface Proposal Michel Pelletier
- Re: [Zope-dev] Observer / Notification Interface Proposal Tres Seaver
- Re: [Zope-dev] Observer / Notification Interface Pro... Phillip J. Eby
- Re: [Zope-dev] Observer / Notification Interface Proposal Tres Seaver
- Re: [Zope-dev] Observer / Notification Interface Pro... Phillip J. Eby
- Re: [Zope-dev] Observer / Notification Interface Proposal Tres Seaver
- Re: [Zope-dev] Observer / Notification Interface Pro... Evan Simpson
- Re: [Zope-dev] Observer / Notification Interface... Chris Withers
- Re: [Zope-dev] Observer / Notification Interface Pro... Michel Pelletier
- Re: [Zope-dev] Observer / Notification Interface... Chris Withers
- Re: [Zope-dev] Resource Discovery (was Observer / No... Phillip J. Eby
- Re: [Zope-dev] Resource Discovery (was Observer ... Anthony Baxter
- Re: [Zope-dev] Resource Discovery (was Obser... Phillip J. Eby