Thanks.

So if something else matches the URL first, my plugin doesn't get a
change to perform the match?

On Feb 5, 11:27 am, Olemis Lang <[email protected]> wrote:
> On Fri, Feb 5, 2010 at 11:04 AM, Stodge <[email protected]> wrote:
> > This is a silly question but I've written a test plugin to help me
> > learn how to develop for Trac.
>
> > The plugin is supposed to match the URL when a changeset is being
> > displayed, so the match_request function is:
>
> >        def match_request(self, req):
> >                self.log.debug('**** ChangesetPlugin.match_request - 
> > path_info = %s'
> > % req.path_info)
> >                match = re.match(r'/changeset/([0-9]+)$', req.path_info)
> >                if match:
> >                        return True
> >                return False
>
> > However, it's never called. Now my understanding is that the
> > match_request function is called for ALL plugins that implement
> > IRequestHandler
>
> until a match is found . Changesets component is loaded before your
> plugin so, unless you disable the former, you won't get the attention
> you deserve
>
> ;o)
>
> > at EVERY page visit. Is this correct?
>
> the EVERY is correct
>
> > So even if the
> > URL doesn't match I should still see the log message? I never see this
> > log message, even when the URL doesn't match. Is my understanding
> > wrong?
>
> not wrong, but not completely right
>
> --
> Regards,
>
> Olemis.
>
> Blog ES:http://simelo-es.blogspot.com/
> Blog EN:http://simelo-en.blogspot.com/
>
> Featured article:
> Embedding pages? - Trac Users | Google Groups  
> -http://feedproxy.google.com/~r/TracGViz-full/~3/-XtS7h-wjcI/e4cf16474...

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to