[Trac] Re: force file download

2008-05-05 Thread Ted Gifford
Isaac.PEG wrote: I would like to be able to make the default action of the Trac browser to download a file instead of trying to render it in the user's Internet browser. e.g. If I use the (very nifty) java enabled Trac browser to locate a particular MS Word document, click on the name of

[Trac] Re: force file download

2008-05-02 Thread Ted Gifford
stevecel wrote: The wiki attachment list could have two links, like (Info) before or after the size of the attachment. Example: myscreen.jpg (Info - 87.3 kB) - added by [EMAIL PROTECTED] 15 months ago. Screenshot of error Where the Info is a link to the attachment page. I added a

[Trac] Re: force file download

2008-05-02 Thread Isaac.PEG
Ah, I understand now why I didn't see a difference after adding the three lines of code (I did restart apache by the way). Perhaps I should explain my desire a little more clearly. My original question had more to do with the behavior of the browser component of Trac when viewing the repository

[Trac] Re: force file download

2008-05-01 Thread Ted Gifford
Jeroen Ruigrok van der Werven wrote: [wiki] forward_to_raw_href = true Mmm, the idea in principle seems ok, but it feels a bit heavy handed since it will do this for every non matching MIME-type. I wonder if all these files have the Subversion binary bit set and as a result we could

[Trac] Re: force file download

2008-05-01 Thread Chris Mulligan
I agree, some type of automatic download would be an improvement. I haven't tried your patch, but it seems natural. On Thu, May 1, 2008 at 10:37 AM, Ted Gifford [EMAIL PROTECTED] wrote: Jeroen Ruigrok van der Werven wrote: [wiki] forward_to_raw_href = true Mmm, the idea in principle

[Trac] Re: force file download

2008-05-01 Thread Emmanuel Blot
[wiki] forward_to_raw_href = true .. me wondering whether it would not be better to use a less cryptic option, such as preview = false or something else more user-centric than developer-centric (IMHO the ?format=raw is not really 'natural') Another question is about the .ini section, it

[Trac] Re: force file download

2008-05-01 Thread Ted Gifford
Emmanuel Blot wrote: [wiki] forward_to_raw_href = true .. me wondering whether it would not be better to use a less cryptic option, such as preview = false or something else more user-centric than developer-centric (IMHO the ?format=raw is not really 'natural') Another question

[Trac] Re: force file download

2008-05-01 Thread Noah Kantrowitz
Ted Gifford wrote: Emmanuel Blot wrote: [wiki] forward_to_raw_href = true Minor detail, this makes it somewhat more annoying to delete a wiki attachment. You can still manually navigate to the attachment page I suppose, but people probably won't realize that. --Noah signature.asc

[Trac] Re: force file download

2008-04-30 Thread Ted Gifford
I attempted to add those three lines to my own .../site-packages/Trac-0.11b2-py2.4.egg/trac/attachment.py file, as well as adding the line to my trac.ini file but the behavior of the browser was unaffected. Am I missing something If you didn't, perhaps restart Apache? Ted