Re: [viewvc-users] numbers clickable for .py extension
"C. Michael Pilato" <[email protected]> Mon, 21 Nov 2011 12:01:40 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
On 11/21/2011 11:06 AM, James Lee wrote: > Dear viewvc-users, > > There is a file /etc/viewvc/mimetypes.conf which contains the following > line: > > text/x-python py pyw sc > > This file can be enabled by uncommenting the following line in > /etc/viewvc/viewvc.conf: > > #mime_types_files = mimetypes.conf > > However, enabling the mime_types_files option does not make the version > numbers clickable on the Index of /ai-affiliates/trunk/affiliates that > was in the screen shot I sent. > > The only way to get to the python seem to be to click on the name (View > File Revision Log), then click on the version number, that takes you to a > screen where you can click on .py files and see the contents (View File > contents). There are multiple views which ViewVC might use as "the way to view the file". One of those is the checkout view, which is a straight download of the file. The other is the markup view, which displays the file's contents in the browser, optionally with syntax highlighting and coloration. ViewVC will attempt to use the markup view only when the file is deemed human-readable. If the file is not believed to be human-readable, ViewVC will try to fall back to using the checkout view instead. The checkout view, however, is disabled by default. (To enable it, you must add "co" to the list of "allowed_views" in viewvc.conf.) So, if ViewVC thinks your file is not human readable, and has been told not to allow the checkout view for files, it will not display a "clickable" revision number in the directory listing. Now, your change to the mimetypes.conf file *should* have had the effect of fixing this for you. That it didn't confuses me. But there are some possible explanations: - browser caching might have caused the directory listing to appear not to have changed: try clearing the browser's cache and revisiting your directory listing. - there could be a bug in the path handling of the configuration logic: try specifying the full path (/etc/viewvc/mimetypes.conf) of the mimetypes.conf file in the "mime_types_files" configuration item. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Distributed Development On Demand ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2883329 To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk7Kg/QACgkQokEGqRcG/W715ACcCHu8L5U6SOrlrGF3SrPjUNzk YGoAn3NuedBeEaHnL33KZTumZa2rMqGd =u7Ml -----END PGP SIGNATURE-----