Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Use of IncludeMacro

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


perus at lal

Feb 1, 2007, 1:20 PM

Post #1 of 6 (494 views)
Permalink
Use of IncludeMacro

Hi,

I would like to display an html file stored in the svn repository directly
into the wiki. I have tried the IncludeMacro as hereafter:
[[Include(http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html)]]
but have an error :
"Error while retrieving file
HTTP Error 401: Authorization Required"

This url, http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html, directly in
the browser runs properly.

Any hints?

Regards,
Antoine
--
__o
_-\<,_
(*)/ (*)
```````````````````````````````````````````````````````




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


mazizka at wantedtech

Feb 1, 2007, 2:15 PM

Post #2 of 6 (467 views)
Permalink
Re: Use of IncludeMacro [In reply to]

> I would like to display an html file stored in the svn repository directly
> into the wiki. I have tried the IncludeMacro as hereafter:
> [[Include(http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html)]]
> but have an error :
> "Error while retrieving file
> HTTP Error 401: Authorization Required"
>
> This url, http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html, directly
> in
> the browser runs properly.

If the repository is the one paired with your Trac setup, you should use a
source link:
[[Include(source:Divers/env/doc/Guides.html)]]


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


perus at lal

Feb 1, 2007, 2:26 PM

Post #3 of 6 (465 views)
Permalink
Re: Use of IncludeMacro [In reply to]

le 1/02/07 23:15, Marc-Antoine Zizka <mazizka [at] wantedtech> a écrit :

>
>> I would like to display an html file stored in the svn repository directly
>> into the wiki. I have tried the IncludeMacro as hereafter:
>> [[Include(http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html)]]
>> but have an error :
>> "Error while retrieving file
>> HTTP Error 401: Authorization Required"
>>
>> This url, http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html, directly
>> in
>> the browser runs properly.
>
> If the repository is the one paired with your Trac setup, you should use a
> source link:
> [[Include(source:Divers/env/doc/Guides.html)]]
>
But in that way I get the raw text with markups. I would like to display the
text as a rightly formatted html text. (it has the property svn:mime-type
set to text/html)

Thanks,

Antoine
--




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


kantrn at rpi

Feb 1, 2007, 2:39 PM

Post #4 of 6 (466 views)
Permalink
Re: Use of IncludeMacro [In reply to]

If you are using the IncludeMacro from trac-hacks, just use the second
argument to set the MIME type.

[[Include(source:Divers/env/doc/Guides.html, text/html)]]

Antoine Pérus wrote:
> le 1/02/07 23:15, Marc-Antoine Zizka <mazizka [at] wantedtech> a écrit :
>
>>> I would like to display an html file stored in the svn repository directly
>>> into the wiki. I have tried the IncludeMacro as hereafter:
>>> [[Include(http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html)]]
>>> but have an error :
>>> "Error while retrieving file
>>> HTTP Error 401: Authorization Required"
>>>
>>> This url, http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html, directly
>>> in
>>> the browser runs properly.
>> If the repository is the one paired with your Trac setup, you should use a
>> source link:
>> [[Include(source:Divers/env/doc/Guides.html)]]
>>
> But in that way I get the raw text with markups. I would like to display the
> text as a rightly formatted html text. (it has the property svn:mime-type
> set to text/html)
>
> Thanks,
>
> Antoine



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


perus at lal

Feb 1, 2007, 11:19 PM

Post #5 of 6 (464 views)
Permalink
Re: Use of IncludeMacro [In reply to]

le 1/02/07 23:39, Noah Kantrowitz <kantrn [at] rpi> a écrit :

>
> If you are using the IncludeMacro from trac-hacks, just use the second
> argument to set the MIME type.
>
> [[Include(source:Divers/env/doc/Guides.html, text/html)]]

Yes, I am using the IncludeMacro from Trac-Hacks. Could I be using another
on?
But I get the same raw text with or without the mime type. If I replace the
source schema with my svn url, I get the hereunder error " Authorization
Required"

Antoine.
>
> Antoine Pérus wrote:
>> le 1/02/07 23:15, Marc-Antoine Zizka <mazizka [at] wantedtech> a écrit :
>>
>>>> I would like to display an html file stored in the svn repository directly
>>>> into the wiki. I have tried the IncludeMacro as hereafter:
>>>> [[Include(http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html)]]
>>>> but have an error :
>>>> "Error while retrieving file
>>>> HTTP Error 401: Authorization Required"
>>>>
>>>> This url, http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html, directly
>>>> in
>>>> the browser runs properly.
>>> If the repository is the one paired with your Trac setup, you should use a
>>> source link:
>>> [[Include(source:Divers/env/doc/Guides.html)]]
>>>
>> But in that way I get the raw text with markups. I would like to display the
>> text as a rightly formatted html text. (it has the property svn:mime-type
>> set to text/html)
>>
>> Thanks,
>>
>> Antoine
>
>
>
> >



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


richardvoigt at gmail

Feb 2, 2007, 7:42 PM

Post #6 of 6 (460 views)
Permalink
Re: Use of IncludeMacro [In reply to]

On 2/1/07, Antoine Pérus <perus [at] lal> wrote:
>
> Hi,
>
> I would like to display an html file stored in the svn repository directly
> into the wiki. I have tried the IncludeMacro as hereafter:
> [[Include(http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html)]]
> but have an error :
> "Error while retrieving file
> HTTP Error 401: Authorization Required"
>
> This url, http://127.0.0.1:8800/Svn/Divers/env/doc/Guides.html, directly in
> the browser runs properly.
>
> Any hints?

Your browser has a credential cache which will automatically be used
for additional requests at the same site. Server-side code, however,
won't necessarily use the current username and password to reach URLs,
because sending them to arbitrary web servers is a security risk.
Since apache takes care of authentication, macros probably don't even
have access to that information if they wanted it.

Use another browser, such as lynx, to try to retrieve that URL and see
if authentication is required. Or sniff the exchange with e.g.
wireshark (ethereal).

>
> Regards,
> Antoine
> --
> __o
> _-\<,_
> (*)/ (*)
> ```````````````````````````````````````````````````````
>
>
>
>
> >
>

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

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.