@one_perm_required_or_403(
    pr_project_add_change,
    (Project, 'slug__exact', 'project_slug')
)
def enable_app(request, project_slug, txapp_slug, **kwargs):
    # TODO don't hardcode source language for projects
    # TODO Handle content=None, status=None (no response)
    txapp = get_object_or_404(TxApp, slug=txapp_slug)
    project = get_object_or_404(Project, slug=project_slug)
    url = '/'.join([txapp.url, 'tx/register',  project_slug])
    method = 'POST'
    try:
        res = _forward_to_app(url, method, post_data={'source_language': 'en'})
    except RemoteTxAppError, e:
        return HttpResponse(unicode(e))
    except Exception, e:
        msg = "Uncaught exception while enabling app %(app)s for %(project)s"
        logger.error(
            msg % {'app': txapp_slug, 'project': project_slug}, exc_info=True
        )
        return HttpResponse(unicode(e))
    url = '/'.join([txapp.url, 'tx/translated'])
    WebHook.objects.get_or_create(project=project, url=url, kind='a')
    txapp.projects.add(project)
    return HttpResponse('')
When the HTTP response parser is disconnected, the
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/txapps/views.py/enable_app--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/HTTP11ClientProtocolTests.test_proxyStopped