+ security.declarePrivate('setSecurityProfile')
+ def setSecurityProfile(self, password=None, roles=None, domains=None):
+ """Set the user's basic security profile"""
+ u = self.getUser()
+ # This is really hackish. The Zope User API needs methods
+ # for performing these functions.
+ if password is not None:
+ u.setPassword(password)
+ if roles is not None:
+ u.setRoles(roles)
+ if domains is not None:
+ u.setDomains(domains)
+