durusmail: quixote-users: Adding debug to _q_index inside class for simpletal
Adding debug to _q_index inside class for simpletal
Adding debug to _q_index inside class for simpletal
c5qb-3fe3@spamex.com
2004-10-02
Hi --

I am using simpletal+quixote with the quixote_tal.py module. I am using
TemplateMethod inside a UI class, and intercepting the call like this:

class SomeUI
    ...
    _real_q_index = TemplateMethod('tal/index.html')

    def _q_index(self, *args):
        logerr("SomeUI::_q_index: directory = '%s'"
               % (self.directory))

        return self._real_q_index(*args)

This works so far, but I worried that I might be inadvertantly passing the
arguments in the wrong order. However, I can't find out either what _q_index
will be called with in the context of a class, or the order in which those
args might be passed  .. will this work for all cases?

--



reply