Re: [Zope] ZCatalog counting?

2000-06-28 Thread R. David Murray
On Tue, 27 Jun 2000, Steve Spicklemire wrote: > OK.. how about one more little special case > > There are > > > > 0 > > items of type Folder. Um...yep. Just actually looked at my code, and I do indeed have that special case in my working code . That probably makes the set/l

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Steve Spicklemire
OK.. how about one more little special case There are 0 items of type Folder. untested of course. ;-) -steve RDM wrote: -- On Tue, 27 Jun 2000, Rik Hoekstra wrote: > To quote a mail by RD Murray from a g

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Rik Hoekstra
> >On Tue, 27 Jun 2000, Alexander Limi wrote: > >> Is there an easy way to count the number of occurences of a certain meta >> type in a Catalog? E.g: I want a dtml snippet that outputs: > >Couldn't you do: > > > > > > > >This folder ( >number of objects with the meta type DTML Document. um,

Re: [Zope] ZCatalog counting?

2000-06-27 Thread R. David Murray
On Tue, 27 Jun 2000, Rik Hoekstra wrote: > To quote a mail by RD Murray from a gew days ago: > > How do I find the size of the results returned by the catalog? > > <-- the results' length --> > Hmm. That wasn't my code. I'd suggest instead (untested, but I've used similar code in my own

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Andy McKay
- From: "Erik Enge" <[EMAIL PROTECTED]> To: "Alexander Limi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 27, 2000 1:35 PM Subject: Re: [Zope] ZCatalog counting? > > On Tue, 27 Jun 2000, Alexander Limi wrote: > > > Is there

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Erik Enge
On Tue, 27 Jun 2000, Alexander Limi wrote: > Is there an easy way to count the number of occurences of a certain meta > type in a Catalog? E.g: I want a dtml snippet that outputs: Couldn't you do: This folder ( number of objects with the meta type DTML Document. ___

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Rik Hoekstra
>A presumably simple question: > >Is there an easy way to count the number of occurences of a certain meta >type in a Catalog? E.g: I want a dtml snippet that outputs: > >There are 123 DTML Documents in the Catalog. > >I've browsed the howto's, but didn't find anything like this. Can anybody >offe