Re: [viewvc-users] Unable to view files in markup only co

Logan Kuhn <[email protected]> Wed, 24 Feb 2016 09:08:20 -0600 (CST)
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <1839332977.14289296.1456326500536.JavaMail.zimbra__28555.5555638441$1456326529$gmane$org@wolfram.com>
------=_Part_9805_1958688434.1456326503297
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Gotcha, sorry about the low info screen shot, everything below is closed source code that I can't send anywhere external. 

The files are .m which is for Mathematica. 

1. No. .m, .nb and .paclet. 
1a. All related to Mathematica 

2. application/vnd.wolfram.mathematica nb 

3. Nope, markup is allowed: allowed_views = annotate, co, diff, markup, roots, tar 

Regards, 
Logan 

----- On Feb 24, 2016, at 8:36 AM, C. Michael Pilato <[email protected]> wrote: 

| On Tue, Feb 23, 2016 at 11:57 AM, Logan Kuhn < [email protected] > wrote:

|| By default the two links are set to co. How can we change that to markup? The
|| installation is essentially stock with only the database portion being modified

| Logan,
| You haven't provided a whole lot of context for the issue you're seeing, so my
| apologies if I make some assumptions that don't hold true.
| It appears you've sent a closely cropped screenshot of the headers in the diff
| view. The URLs used for the revision links there come from the diff.ezt
| template:

| [define left_view_href][if-any left.prefer_markup][left.view_href][else][if-any
| left.download_href][left.download_href][end][end][end]
| [define right_view_href][if-any
| right.prefer_markup][right.view_href][else][if-any
| right.download_href][right.download_href][end][end][end]

| Essentially, this logic says that if the file type is one for which the markup
| view is preferred (that is, appears to be a human-readable file), then use that
| view URL for the revision number link; otherwise, use the download URL.

| So, some questions: Does this "only gives me a 'co' link" thing happen for every
| file in your repository? If not, for which types of file do you see the
| problem? What would a MIME type system guess the MIME types of those files to
| be (based on the file's name)? Have you disabled the 'markup' view altogether
| using the 'allowed_views' configuration option?

| -- Mike

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3162694

To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_9805_1958688434.1456326503297
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: Arial; font-size: 12pt; color: #0000=
00"><div>Gotcha, sorry about the low info screen shot, everything below is =
closed source code that I can't send anywhere external.</div><div><br data-=
mce-bogus=3D"1"></div><div>The files are .m which is for Mathematica.</div>=
<div><br data-mce-bogus=3D"1"></div><div>1. &nbsp;No. &nbsp;.m, .nb and .pa=
clet.</div><div>1a. All related to Mathematica</div><div><br data-mce-bogus=
=3D"1"></div><div>2.&nbsp;application/vnd.wolfram.mathematica nb<br></div><=
div><br data-mce-bogus=3D"1"></div><div>3. Nope, markup is allowed:&nbsp;al=
lowed_views =3D annotate, co, diff, markup, roots, tar</div><div><br></div>=
<div data-marker=3D"__SIG_PRE__">Regards,<br>Logan</div><br><span id=3D"zwc=
hr" data-marker=3D"__DIVIDER__">----- On Feb 24, 2016, at 8:36 AM, C. Micha=
el Pilato &lt;[email protected]&gt; wrote:<br></span><div data-marker=3D"=
__QUOTED_TEXT__"><blockquote style=3D"border-left: 2px solid #1010FF; margi=
n-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-styl=
e: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; =
font-size: 12pt;" data-mce-style=3D"border-left: 2px solid #1010FF; margin-=
left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style:=
 normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; fo=
nt-size: 12pt;"><div dir=3D"ltr"><div><div>On Tue, Feb 23, 2016 at 11:57 AM=
, Logan Kuhn <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" ta=
rget=3D"_blank">[email protected]</a>&gt;</span> wrote:<br></div></div><di=
v class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote class=3D"gma=
il_quote" style=3D"margin: 0px 0px 0px 0.8ex; border-left-width: 1px; borde=
r-left-color: #cccccc; border-left-style: solid; padding-left: 1ex;" data-m=
ce-style=3D"margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-=
color: #cccccc; border-left-style: solid; padding-left: 1ex;"><div><div sty=
le=3D"font-family: Arial; font-size: 12pt; color: #000000;" data-mce-style=
=3D"font-family: Arial; font-size: 12pt; color: #000000;"><div>By default t=
he two links are set to co.&nbsp; How can we change that to markup?&nbsp; T=
he installation is essentially stock with only the database portion being m=
odified</div></div></div></blockquote><br>Logan,<br><div>You haven't provid=
ed a whole lot of context for the issue you're seeing, so my apologies if I=
 make some assumptions that don't hold true.<br><div>It appears you've sent=
 a closely cropped screenshot of the headers in the diff view.&nbsp; The UR=
Ls used for the revision links there come from the diff.ezt template:</div>=
<br><div><div>&nbsp; &nbsp;[define left_view_href][if-any left.prefer_marku=
p][left.view_href][else][if-any left.download_href][left.download_href][end=
][end][end]</div><div>&nbsp; &nbsp;[define right_view_href][if-any right.pr=
efer_markup][right.view_href][else][if-any right.download_href][right.downl=
oad_href][end][end][end]</div></div><br><div>Essentially, this logic says t=
hat if the file type is one for which the markup view is preferred (that is=
, appears to be a human-readable file), then use that view URL for the revi=
sion number link; otherwise, use the download URL.</div><br><div>So, some q=
uestions: &nbsp;Does this "only gives me a 'co' link" thing happen for ever=
y file in your repository? If not, for which types of file do you see the p=
roblem?&nbsp; What would a MIME type system guess the MIME types of those f=
iles to be (based on the file's name)?&nbsp; Have you disabled the 'markup'=
 view altogether using the 'allowed_views' configuration option?</div><br><=
/div><div>-- Mike</div></div></div></div><br></blockquote></div></div></bod=
y></html>
------=_Part_9805_1958688434.1456326503297--