def revoke_certs_by_user_and_project(user_id, project_id):
 admin = context.get_admin_context()
 for cert in db.certificate_get_all_by_user_and_project(admin, user_id, project_id):
  revoke_cert(cert['project_id'], cert['file_name'])

def revoke_certs_by_user_and_project ( user_id , project_id ) : admin = context . get_admin_context ( ) for cert in db . certificate_get_all_by_user_and_project ( admin , user_id , project_id ) : revoke_cert ( cert [ 'project_id' ] , cert [ 'file_name' ] )
revoke certs for user in project .