[Zope-CMF] removing portal members

Tres Seaver tseaver@zope.com
27 Jun 2002 08:41:27 -0400


On Wed, 2002-06-26 at 11:07, Bryan C. Andregg wrote:
> I've searched the web and the archives and the best that I've found is some
> veiled reference to delMembers which doesn't appear in 1.2 or the 1.3beta1.
> 
> How does one remove portal members (they don't have member folders)?

Write a script which:

  - Removes them from the user folder (some user folders use different
    APIs for this);

  - Zaps their entries in the 'portal_memberdata' tool, e.g.::

      mdt = getToolByName( self, 'portal_memberdata' )
      mdt.pruneMemberDataContents()

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com