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

def zope-exuserfolder-0.50.0::exUserFolder::exUserFolder::_doAddUser (   self,
  name,
  password,
  roles,
  domains = '',
  groups = (),
  kw 
) [private]

For programatically adding simple users 

Definition at line 721 of file exUserFolder.py.

00721                                                                               :
            """ For programatically adding simple users """
            self.currentAuthSource.createUser(name, password, roles)
            if self.currentPropSource:
                  # copy items not in kw from REQUEST
                  REQUEST = kw.get('REQUEST', self.REQUEST)
                  map(kw.setdefault, REQUEST.keys(), REQUEST.values())
                  self.currentPropSource.createUser(name, kw)
            if self.currentGroupSource:
                  self.currentGroupSource.setGroupsOfUser(groups, name)

      def _doChangeUser(self, name, password, roles, domains='', groups=(), **kw):


Generated by  Doxygen 1.6.0   Back to index