On Thu, Oct 8, 2009 at 7:11 AM, Olemis Lang <[email protected]> wrote:
> On Thu, Oct 8, 2009 at 4:54 AM, Roger Oberholtzer
> <[email protected]> wrote:
>>
>>
>> I am trying to obtain a Trac report via wget. In fact, it is a sort of
>> release notes. I want to add it to a software packager. The URL is
>>
>>  http://www.opq.se/rsoft/report/17
>>
>> If I type this into a browser, I get a report as expected. The entire
>> Trac requires a password.
>>
>> If I use this command:
>>
>>  wget --http-user=me --http-password=secret \
>>        http://www.opq.se/rsoft/report/17/
>>
>> I get the html for http://www.opq.se/rsoft, which is the start of the
>> Trac. This is because, when Trac asks for a password,
>> it always takes
>> you to the first page, not the sub-page you requested.
>
> IMHO not exactly true . Trac uses the referrer header and redirects
> the user back to the page (he | she) was browsing before log in . I
> think that what you need is to specify the referrer to be
> `http://www.opq.se/rsoft/report/17/`.
>
>>
>> Am I missing the obvious? My goal is to obtain a report, It can be HTML,
>> PDF, or whatever.
>>
>
> Suggestion or workaround :
>

All this for TracGViz >=1.3.3 (AFAICR ;o)

>  - If you prefer to access the raw contents returned by reports TracGViz
>    plugin includes an RPC handler to list and execute Trac reports. This
>    way you could perform more advanced processing or format its
>    contents in different formats like you mentioned before
>  - Another workaround may be to use TracGViz, access the data source
>    for reports and specify parameter `tqx=out:csv` in order to retrieve all
>    the data in CSV format. You could do something similar using the
>    aforementioned approach and `csv` module in Py stdlib.
>
> The added benefit in this case is that you also get back values for
> custom fields.
>

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Looking for a technique to create flexible, graphical dashboards ...
- http://feedproxy.google.com/~r/TracGViz-full/~3/71kRhT34BgU/43789

--~--~---------~--~----~------------~-------~--~----~
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