'Get information about any POST forms in the template.
Returns [(linenumber, csrf_token added)]'

def post_form_info(self):

    forms = {}
    form_line = 0
    for (ln, line) in enumerate(self.content.split('\n')):
        if ((not form_line) and _POST_FORM_RE.search(line)):
            form_line = (ln + 1)
            forms[form_line] = False
        if (form_line and _TOKEN_RE.search(line)):
            forms[form_line] = True
            form_line = 0
        if (form_line and _FORM_CLOSE_RE.search(line)):
            form_line = 0
    return forms.items()
