Exemple #1
0
 def allowDeletePrincipal(self, login):
     """
     Check to see if the user can be deleted by trying to adapt
     to an IMembraneUserDeleter
     """
     return bool(queryMembraneTool(self,
                                   object_implements=IMembraneUserDeleter.__identifier__,
                                   getUserName=login))
Exemple #2
0
 def doDeleteUser(self, login):
     users = queryMembraneTool(self,
                               object_implements=IMembraneUserDeleter.__identifier__,
                               getUserName=login)
     if users:
         user = users[0]._unrestrictedGetObject()
         IMembraneUserDeleter(user).doDeleteUser(login)
     else:
         raise RuntimeError, 'No adapter found for user: %s'%login
Exemple #3
0
 def _getUserChanger(self, login):
     return queryMembraneTool(
         self,
         object_implements=IMembraneUserChanger.__identifier__,
         getUserName=login)