[Zope-CMF] CMF 1.5 beta coming -- last call before feature freeze!
Stefan H. Holek
stefan at epy.co.at
Thu Aug 5 14:10:36 EDT 2004
Granted.
So I guess all I have to offer in favor is that there *is* interest in
unrestricted catalog searches, and adding the method would promote the
use case from "idiom" to API. Which is a good thing, IMO.
Stefan
On Mittwoch, Aug 4, 2004, at 23:35 Europe/Vienna, Tres Seaver wrote:
> The name is fine, and I agree with you that this method should be
> private, but why does the caller need to call it as a method? E.g.:
>
> $ bin/zopectl debug
> >>> catalog = app.site.portal_catalog
> >>> from Products.ZCatalog.ZCatalog import ZCatalog
> >>> ZCatalog.searchResults(catalog)
> []
>
> If we make the new method private (which seems right), then anyone who
> would be allowed to call it could equally well import the ZCatalog
> class (as I just did) and call it's searchResults method without
> method dispatch.
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/
More information about the Zope-CMF
mailing list