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

2006-08-03 Thread Norbert Marrale
Dieter Maurer wrote: Norbert Marrale wrote at 2006-8-2 17:20 -0400: Is there a less expensive way to return case insensitive results when querying portal_membership? (Zope 2.7.5-final / CMF 1.5.5) The easiest way is to already store the member names lowercase normalized... Hi Dieter, Memb

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

2006-08-04 Thread Norbert Marrale
Dieter Maurer wrote: Norbert Marrale wrote at 2006-8-3 15:22 -0400: Upon their initial registration, many users entered their email address in upper or mixed case. The email > username(s) lookup is meant to alleviate the number of support requests, allowing members to receive password reminder

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

2006-08-05 Thread Norbert Marrale
Dieter Maurer wrote: Norbert Marrale wrote at 2006-8-4 17:53 -0400: ... Which brings me to my original Q... 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 (me

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

2006-08-05 Thread Norbert Marrale
Jens Vagelpohl wrote: -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

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

2006-08-04 Thread Dieter Maurer
Norbert Marrale wrote at 2006-8-3 15:22 -0400: >Upon their initial registration, many users entered their email address >in upper or mixed case. The email > username(s) lookup is meant to >alleviate the number of support requests, allowing members to receive >password reminders even if they forg

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

2006-08-04 Thread Jens Vagelpohl
-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.l

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

2006-08-05 Thread Dieter Maurer
Norbert Marrale wrote at 2006-8-4 17:53 -0400: > ... >Which brings me to my original Q... > >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==strin