[Zope-CMF] Users mail

Steve Spicklemire steve@spvi.com
Thu, 18 Apr 2002 06:20:38 -0500


Hi Jesus,

This is stored by the memberdata tool.

After you create a user with id 'member_id', and you have a mapping 
called 'properties'
with the memberdata properties you want to set, try something like this:

         membership = getToolByName(self, 'portal_membership')
         member = membership.getMemberById(member_id)
         failMessage = self.testPropertiesValidity(properties, member)

         if failMessage is not None:
             raise 'Bad Request', failMessage

        member.setMemberProperties(properties)

-steve

On Thursday, April 18, 2002, at 05:56  AM, JesusAvila@apb.es wrote:

>
>
> Hi there,
>
> When I want to add a new user to a CMF site, the attributes the 
> interface
> ask me to fill in are:
> - Name
> - Password
> - (Confirm)
> - Domains
> - Roles
>
> There is anyway i can add more attributes to each user i create, such as
> the email address, contact number, ...
> Basically what would be great is that if i could create a profile for 
> each
> user.
> At the moment i just need to add the email address, but in the future i
> will need to add a profile to each user.
>
> Thanks a lot.
>
> Jesus
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and 
> feature requests