def biostar_logout(self, trans): """ Log out of biostar """ try: url = biostar.biostar_log_out(trans) except Exception, e: return error(str(e))
def biostar_logout(self, trans): """ Log out of biostar """ try: url = biostar.biostar_log_out(trans) except Exception as e: return error(str(e)) if url: return trans.response.send_redirect(url) return error("Could not determine Biostar logout URL.")