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))
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
def _getUserChanger(self, login): return queryMembraneTool( self, object_implements=IMembraneUserChanger.__identifier__, getUserName=login)