Attachment 'Bugzilla.py'

Download

   1 """
   2 Macro for linking to the bugzilla page for a particular bug
   3 
   4 Usage: [[Bugzilla(integer)]]
   5 
   6 	31-October-2007 - Initial version - Leif Gruenwoldt
   7 	06-July-2007 - Rewrite of bugURL syntax - Adrian Parker
   8 
   9 """
  10 
  11 
  12 Dependencies = []
  13 
  14 def execute(macro, args):
  15 
  16 	bugURL = ( "http://www.yourdomain.com/bugzilla/show_bug.cgi?id=%s" % (args) )
  17 	linkName = ( "Bug #%s" % (args))
  18 
  19 	return macro.formatter.text("(") + macro.formatter.url( 1, bugURL ) + linkName + macro.formatter.url(0) + macro.formatter.text(")")

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-11-27 21:55:07, 0.5 KB) [[attachment:Bugzilla.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.