[Zope] Re: record count in catalog
Tres Seaver
tseaver at palladion.com
Sun Jun 15 16:18:39 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Darryl Caldwell wrote:
> Hi all,
>
> The Catalog tab in my catalog says this:
>
> The catalog "mycatalog" contains 30,345 record(s) in the path "/".
>
> But when I sort and return a list of cataloged objects I only have 19,881.
>
> Here is the script call to retrieve the records:
>
> context.mycatalog.search( {}, sort_index='lastname' )
>
> Why don't the numbers match up?
Some of your objects don't have a 'lastname' attribute, and so when
sorting, they get dropped.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIVXkf+gerLs4ltQ4RAun4AJ0X8whmA8ABUqkn1bAWIMqv3utX+ACZAV8y
YQCLz6XhuBvLn8rAF65Q4L4=
=6XZ+
-----END PGP SIGNATURE-----
More information about the Zope
mailing list