[Zope-CMF] Adding members manually

Mark McEahern marklists@mceahern.com
Fri, 14 Feb 2003 16:03:19 -0600


[David Cain]
> How can I add a member to my Zope CMF portal manually (using the ZMI)
> instead of running the join_form method?

[Consider this pseudocode because I'm doing it from my head without
testing...]

# In a Python script
reg_tool = context.portal_registration
reg_tool.addMember(**data)

(Now all you need to do is go lookup the details of addMember in
CMFCore/RegistrationTool.py <wink> or see how the script that join_form
posts to does it.  <wink>)

Cheers,

// m

-