def disable_csrf_protection():
if not HAS_PLONE_PROTECT:<EOL><INDENT>logger.warn(<EOL>"<STR_LIT>"<EOL>)<EOL>return False<EOL><DEDENT>request = get_request()<EOL>interface.alsoProvides(request, IDisableCSRFProtection)<EOL>return True<EOL>
disables the CSRF protection
        https://pypi.python.org/pypi/plone.protect