def before_new_template(force_new_urls):
 global new_style_url_tag, error_on_old_style_url_tag, errors
 new_style_url_tag = False
 error_on_old_style_url_tag = force_new_urls
 errors = []

def before_new_template ( force_new_urls ) : global new_style_url_tag , error_on_old_style_url_tag , errors new_style_url_tag = False error_on_old_style_url_tag = force_new_urls errors = [ ]
reset state ready for new template .