Re: [viewvc-users] formatting log message in RSS feed
"C. Michael Pilato" <[email protected]> Thu, 7 Feb 2013 09:00:06 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <5113B366.4070006__16536.1913074323$1360245639$gmane$org@collab.net> |
On 02/06/2013 04:37 PM, David Carson wrote:
> Is there any way to format the log message of a commit for the RSS feed from
> ViewVc?
>
> Our log messages have several ids that can be turned into hyperlinks. I
> would like to somehow run the commit log through a filter before it is
> presented by the RSS feed, changing these IDs to hyperlinks.
>
> I saw the EZT template for rss, but there is not much documentation on it,
> nor does it look conducive to what I'm trying to do.
No, the decision to markup log messages or not happens before the template
gets involved.
There's a section of source code file lib/viewvc.py, in a function named
build_commit(), which reads like so:
if found_unreadable:
commit.log = None
commit.short_log = None
else:
lf = LogFormatter(request, desc)
htmlize = (format != 'rss')
commit.log = lf.get(maxlen=0, htmlize=htmlize)
commit.short_log = lf.get(maxlen=cfg.options.short_log_len, htmlize=htmlize)
I wonder ... what happens if you change the line that assigns the 'htmlize'
variable to read like so:
htmlize = 1
?
That might do the trick for you. (If you try it out, let us know the results!)
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Enterprise Cloud Development
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3047963
To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJRE7NmAAoJEPXg8AH+aBMzhkoP/A06dg2sdJIF/m7UqpnHCwY3 BkvcvGlof3uGpFdWFLTF+7DsCYftkeT9lbWjTgGMKuNz2dr7UPqga/UeI7xCirYY +SYkApA2pfcjmix7Ouh0dQEPeGv6vGZg4J9W0gUPHIjYmqtghJL+4O5kMrTzS9Ne tt+Y57w0w5nY6X9jjoD7Bf45ZWIBtCk50Li0NnlFm+Fd2AzvpTTPHROzgVVRhYpW 2srOfnPx81Gv7CEKV6u9eRrderT9VM4tuj2ZbTs7d3yXbF5N5wGCgKETPOWXTEGS vRdBhRTv62E0K1pQof5+c4f3YjNdajO5tESSSf6j4eOEMFFcEIpaOc92F5+LO86f w4ZmcFK21z9KVCBYeGcHDhNn14QSQE+n/hbj54aLJzP2A0KQh04RjD5nkOqEt4op 5XD6RoM0h8Nfmo2bfTryzBWm5kWPmfhyrLKdPH3FTG0J+JKVM8GJ8BacwR5Zcu1n eBQe9LgTYuVS06yk17VEXhZWJdCylmdc2AikMlHbIjfJ1I1pzGgG4jyGtNNkpQ3V 8QTk98Bw75OLdzYzI+HNzszvQbFseGElHvK5+MnXcqBJBbwjZvUGID8JGRwdO5dZ Nx0eOtHF/6q2ZOsqIGUiEpbWGYYx2dkFTeJx8tzGKkOD+/POG9+FE2W6SaH/GstW +mldHF6x8uLuWkjFIQuJ =BK2F -----END PGP SIGNATURE-----