Re: publisher difficult to modify for sessions

Neil Schemenauer <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Evan Laforge <[email protected]> wrote:
> What I'm trying to do really looks like this, where the *s mark my
> code, and the rest is standard quixote.

Hi Evan,

Couldn't you do this by overriding _q_traverse on your root
Directory instance?  Something like:

    def _q_traverse(self, path):
        # code A
        try:
            result = Directory._q_traverse(self, path)
        except TraversalError:
            # code B
            raise
        # code C
        return result
            
HTH,

  Neil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.