<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm newbie on the Zope development.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm creating a site using Zope + Plone. The site 
will have several new roles because there will be some folders only accessible 
for some users. So&nbsp;I need to differentiate the different users when they 
sign in to the site, in order to give them they role. To do this, I've tried to 
change the "register" script. What I want to do is to get a new field from the 
"Sign on sheet" to know the role of the new user, and then add him with it. I'm 
attaching you my register code. As you will see, I just have changed the line 
that contains the addMember method, trying to set to the new user the "System 
developer" role, but it doesn't works. When I fill the "join_form", Zope 
redirects me to the "login_form" page.</FONT></DIV>
<DIV><FONT face=Arial size=2>Does anybody has any idea of what 
happens?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>REQUEST=context.REQUEST</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>portal_registration=context.portal_registration<BR>site_properties=context.portal_properties.site_properties</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>username = REQUEST['username']</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>password=REQUEST.get('password') or 
portal_registration.generatePassword()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG>portal_registration.addMember(username, 
password, roles=('System developer'),properties=REQUEST)</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial 
size=2>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Víctor</FONT></DIV>
<DIV><FONT size=2><BR><FONT face=Arial></FONT></FONT></DIV></BODY></HTML>