Re: hyperlink "scrNNN" as well as "issueNNNN"

J Arrizza <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <CAEyOLyAatBUj6WRwGr1FHBVkUk2uf0HpNexYaa+Ghe=9s2g0-w@mail.gmail.com>
John,

Thanks very much for this! Followed your instructions and its now working
like a charm...

John

On Wed, Sep 26, 2012 at 5:09 AM, John Kristensen <[email protected]> wrote:

> Hello John,
>
>
> On 26/09/12 03:03, J Arrizza wrote:
>
>> Right now the message area will hyperlink "Issue123" to jump to the
>> issue 123.
>>
>> We also use the term "scr" (software change request) instead of "issue",
>> so my question is simple: is there a way to modify the code to recognize
>> "scrNNN" and "issueNNN" and convert both to hyperlinks?
>>
>> Thanks in advance
>> John
>>
>>
> You could achieve this by using a template extension util.
>
> An example of a util for substituting strings with links using regexs can
> be found in the roundup issue tracker template:
>
> http://roundup.hg.sourceforge.**net/hgweb/roundup/roundup/**
> file/a099ff2ceff3/website/**issues/extensions/local_**replace.py<http://roundup.hg.sourceforge.net/hgweb/roundup/roundup/file/a099ff2ceff3/website/issues/extensions/local_replace.py>
>
> (note that function is registered as 'localReplace')
>
> You can then use this util by wrapping the msg content in the
> utils.localReplace() function:
>
> http://roundup.hg.sourceforge.**net/hgweb/roundup/roundup/**
> file/a099ff2ceff3/website/**issues/html/issue.item.html#**l250<http://roundup.hg.sourceforge.net/hgweb/roundup/roundup/file/a099ff2ceff3/website/issues/html/issue.item.html#l250>
>
> There is a bit of doco about the utils variable, but the examples above
> are probably more useful:
>   http://roundup.sourceforge.**net/docs/customizing.html#the-**
> utils-variable<http://roundup.sourceforge.net/docs/customizing.html#the-utils-variable>
>
> Cheers,
> John.
>

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.