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
You could maintain an additional dictionary mapping the
(normalized) email address to the user id.
Of course, duh! That's easy enough to implement.
Sometimes it's easy to overlook the obvious :)
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests