Logo Search packages:      
Sourcecode: zope-exuserfolder version File versions

def zope-exuserfolder-0.50.0::exUserFolder::exUserFolder::manage_editUser (   self,
  username,
  REQUEST = {} 
)

Edit a User 

Definition at line 574 of file exUserFolder.py.

00574                                                   {}):
            """ Edit a User """
            # username=self.reqattr(REQUEST,'username')
            password=self.reqattr(REQUEST,'password')
            password_confirm=self.reqattr(REQUEST,'password_confirm')
            roles=self.reqattr(REQUEST,'roles', [])
            groups=self.reqattr(REQUEST, 'groupnames', [])

            if not username:
                  return self.MessageDialog(self,REQUEST=REQUEST,
                        title  ='Illegal value', 
                        message='A username must be specified',
                        action ='manage_main')

            if (password or password_confirm) and (password != password_confirm):
                  return self.MessageDialog(self,REQUEST=REQUEST,
                        title  ='Illegal value', 
                        message='Password and confirmation do not match',
                        action ='manage_main')
            
            self._doChangeUser(username, password, roles, domains='', groups=groups, REQUEST=REQUEST)
            
            return self.MessageDialog(self,REQUEST=REQUEST,
                  title = 'User Updated',
                  message= 'User %s was updated.'%(username),
                  action = 'manage_main')


      #


Generated by  Doxygen 1.6.0   Back to index