[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_memberdata.py:1.7
Jens Vagelpohl
jens@zope.com
Fri, 9 May 2003 11:04:19 -0400
Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv27821/CMFCore/interfaces
Modified Files:
portal_memberdata.py
Log Message:
- better member search method (searchMemberData) on the member data tool.
it makes sure to check both member data wrapper *and* user object for
the desired attribute, and it allows passing in a sequence of desired attributes.
=== CMF/CMFCore/interfaces/portal_memberdata.py 1.6 => 1.7 ===
--- CMF/CMFCore/interfaces/portal_memberdata.py:1.6 Mon Jan 6 15:38:53 2003
+++ CMF/CMFCore/interfaces/portal_memberdata.py Fri May 9 11:04:18 2003
@@ -55,6 +55,16 @@
and delete anything not in acl_users
'''
+ ## searchMemberData__roles__ = () # Private.
+ def searchMemberData(search_param, search_term, attributes=()):
+ '''
+ Returns a sequence of dictionaries containing data for members
+ that match the query as expressed by search_param and search_term.
+ The contents of each member data mapping can be influenced by
+ passing in a sequence of desired attributes, by default the only
+ data returned is the username and the email address.
+ '''
+
class MemberData(Interface):
""" MemberData interface.
"""