[Zope-CMF] Re: returning case insensitive matches for portal_membership.searchMembers()

Jens Vagelpohl jens at dataflake.org
Fri Aug 4 20:31:16 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 4 Aug 2006, at 17:53, Norbert Marrale wrote:
> Is there a better way than the two-step approach I'm following:
>
>   emails = context.portal_membership.searchMembers('email','')
>
> and then iterate over emails to find the matches
>
>   if (member==string.lower(emails[n].values()[1])):
>
> Or if this can't be done in a less costly way, where would I start  
> with normalizing the email address records that are already stored?

What do you mean, "normalizing"? The ZODB is not a relational  
database. RDBMS-concepts do not apply.

jens


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFE0+bURAx5nvEhZLIRAvAqAKCYS+sH5BVEyRcP86VnGt34Ii8MLwCdEeCz
beKTdB7w4PV+Tj50iXVH0jQ=
=t3r+
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list