Why does this work index_html =HTMLFile('my_dtml_doc', globals()) while this doesn't def index_html(self,REQUEST,RESPONSE): " " return HTMLFile('my_dtml_doc', globals())(self, REQUEST, RESPONSE) where my dtml-var calls fail.