"""
Macro for linking to the bugzilla page for a particular bug

Usage: [[Bugzilla(integer)]]

	31-October-2007 - Initial version - Leif Gruenwoldt
	06-July-2007 - Rewrite of bugURL syntax - Adrian Parker

"""


Dependencies = []

def execute(macro, args):

	bugURL = ( "http://www.yourdomain.com/bugzilla/show_bug.cgi?id=%s" % (args) )
	linkName = ( "Bug #%s" % (args))

	return macro.formatter.text("(") + macro.formatter.url( 1, bugURL ) + linkName + macro.formatter.url(0) + macro.formatter.text(")")
