API Documentation

Classes

portal_memberdata , MemberData

Memberdata storage tool interface.

$Id: portal_memberdata.py,v 1.6 2003/01/06 20:38:53 yuppie Exp $


class portal_memberdata

A helper for portal_membership that transparently adds member data to user objects.


id = Must be set to "portal_memberdata"

Methods

wrapUser(u):

If possible, returns the Member object that corresponds to the given User object.

getMemberDataContents():

Returns a list containing a dictionary with information about the _members BTree contents: member_count is the total number of member instances stored in the memberdata- tool while orphan_count is the number of member instances that for one reason or another are no longer in the underlying acl_users user folder. The result is designed to be iterated over in a dtml-in

pruneMemberDataContents():

Compare the user IDs stored in the member data tool with the list in the actual underlying acl_users and delete anything not in acl_users


class MemberData

MemberData interface.


Methods

setProperties(properties=None, **kw):

Allows the authenticated member to set his/her own properties.

Permission
SetOwnProperties