req is a Request object, from trac.web.api --

http://trac.edgewall.org/browser/trunk/trac/web/api.py#L170

req.href is an Href object from trac.web.href --

http://trac.edgewall.org/browser/trunk/trac/web/href.py

hth,
ethan

On Mon, Nov 1, 2010 at 8:07 PM, Chris Nelson <[email protected]>wrote:

> In Subtickets plugin, I find:
>
>    def filter_stream(self, req, method, filename, stream, data):
>    ....
>                                href = req.href.query(status='!
> closed',
>                                              owner=ticket['owner'])
>
> and I want to change the link that is created.  Immediately, I want it
> to go to a report:
>
>                                href = somefunc("report/99?USER=%s" %
> ticket['owner'])
>
> Ideally, the first string in there would be configurable.  But I can't
> find what req or req.href is or what other methods or properties it
> has.  Maybe this is as simple as
>
>                                href = req.href.url("/report/99/USER=
> %s" % ticket['owner'])
>
> But I don't know if there is such a function.  I've poked at Trac and
> Genshi web sites and sample and Googled lots of terms and haven't
> found an answer.
>
> TIA.
>
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<trac-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/trac-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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-dev?hl=en.

Reply via email to