def do_with(parser, token):
    bits = list(token.split_contents())
    if len(bits) != 4 or bits[2] != "as":
        raise TemplateSyntaxError("%r expected format is 'value as name'" %
                                  bits[0])
    var = parser.compile_filter(bits[1])
    name = bits[3]
    nodelist = parser.parse(('endwith',))
    parser.delete_first_token()
    return WithNode(var, name, nodelist)
Creates the event object
dataset/ETHPy150Open dcramer/django-compositepks/django/template/defaulttags.py/do_with--crossover with--dataset/ETHPy150Open legalosLOTR/mdb/MDB/wx_signal.py/ShowMsgEvent.__init__