Changes between Initial Version and Version 1 of Ticket #571, comment 1
- Timestamp:
- Nov 29, 2016, 8:13:33 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #571, comment 1
initial v1 3 3 This 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... 4 4 5 {{{#!python 5 6 def get_wiki_syntax(self): 6 7 yield ("(?P<bs>BZ#| #)(?P<ti>\d+)", lambda x, y, z: self._format_symbol(z.group("ti"),z.group("bs"))) … … 15 16 else: 16 17 return "<a rel='nofollow' class='ticket' href='%s/show_bug.cgi?id=%s'>BZ#%s</a>" % (bugzilla_url, i, i); 18 }}}