

def __init__(self, detail=None, body_template=None, comment=None, **kw):
    HttpResponse.__init__(self, status=('%s %s' % (self.code, self.title)), **kw)
    Exception.__init__(self, detail)
    if (comment is not None):
        self.comment = comment
    if (body_template is not None):
        self.body_template = body_template
    if isinstance(self.explanation, (list, tuple)):
        t.explanation = ('<p>%s</p>' % '<br>'.join(self.explanation))
    if (not self.empty_body):
        t = template.Template(self.body_template)
        c = template.Context(dict(detail=detail, explanation=self.explanation, comment=comment))
        self._container = [t.render(c)]
    else:
        self._container = ['']
    self._is_string = True

dataset/ETHPy150Open benoitc/dj-webmachine/webmachine/exc.py DjangoHttpException.__init__/VarMisuse@110/132 `self`->`t`