[Zope] FW: Delete user and users folder

Dieter Maurer dieter@handshake.de
Wed, 18 Dec 2002 22:40:44 +0100


John Paul writes:
 > can somebody tell me how to delete a user and its members folder in python
 > script.
Seems your question would be better in the CMF mailing list
(mailto:zope-cmf@zope.org).

Using my "DocFinder" product
(--> <http://www.dieter.handshake.de/pyprojects/zope>),
it appears that CMF does not directly support member deletion.

You can use the more basic methods:

  "AccessControl.User.BasicUserFolder.userFolderDesUsers" to
  delete a user from "acl_users". This will require
  the permission "Manage users".

  "OFS.ObjectManager.ObjectManager.manage_delObjects" to
  delete any objects (attention: wants a list of object ids to be
  deleted, not a single id) from an object manager (and, therefore,
  a folder). This will require the permission "Delete objects"
  on the object manager.



Dieter