Changes between Initial Version and Version 1 of Ticket #571, comment 1


Ignore:
Timestamp:
Nov 29, 2016, 8:13:33 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #571, comment 1

    initial v1  
    33This is an example of how to accept other forms. You must have a space before # for Trac tickets to work. I didn't test this code... I don't even remember if it's "or" or "||" in Python :-) You get the idea...
    44
     5{{{#!python
    56    def get_wiki_syntax(self):
    67        yield ("(?P<bs>BZ#| #)(?P<ti>\d+)", lambda x, y, z: self._format_symbol(z.group("ti"),z.group("bs")))
     
    1516        else:
    1617            return "<a rel='nofollow' class='ticket' href='%s/show_bug.cgi?id=%s'>BZ#%s</a>" % (bugzilla_url, i, i);
     18}}}