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 at EVERY page visit. Is this 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?
Ok that was more than one question.
Thanks
--
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.