[Zope-dev] Functional programming

Lalo Martins lalo@hackandroll.org
Thu, 24 Feb 2000 15:29:03 -0200


On Thu, Feb 24, 2000 at 11:04:19AM -0600, Tres Seaver wrote:
> Lalo volleys:
> > 
> > Not really. Practical example:
> > 
> > <dtml-in "map (Catalog.get_object, Catalog(...))">
> >    perform some operation, like listing the objects, without
> >    need to bload the Catalog with all properties in the objects
> > </dtml-in>
> 
> The downside here is that you activate every object found, which can be deadly
> for a really large result set.  The rationale for using meta_data is to allow
> presentation of a limited view of the catalogued objects without pulling them
> into memory from the ZODB.

I realize that, but it's pretty useful when I'm sure the set
will be small (by constraining the Catalog call, for example).
Come think of it, sometimes I don't _want_ a "limited" view,
and the set of properties I need is so big that loading the
meta_data would be more or less the same overhead as loading
the objects.


> > And even if I _should_ use Python, then it should at least be
> > supported in PythonMethods.
> 
> PythonMethods have no more access than DTML Methods/Documents (by design).

And this is correct, IMHO.


[]s,
                                               |alo
                                               +----
--
      I am Lalo of deB-org. You will be freed.
                 Resistance is futile.

http://www.webcom.com/lalo      mailto:lalo@webcom.com
                 pgp key in the web page

Debian GNU/Linux       ---       http://www.debian.org
Brazil of Darkness   --   http://zope.gf.com.br/BroDar