00001 Dependencies = []
00002
00003 def execute(macro, args):
00004 if ',' in args:
00005 args = args.split(',')
00006 else:
00007 args = args.split()
00008 try:
00009 project = args[0]
00010 num = args[1]
00011 except:
00012 return "Invalid ticket args [%s]"%(str(args))
00013 if num[0] == '#':
00014 num = num[1:]
00015 return macro.formatter.url(1, "https://code.ros.org/trac/%s/ticket/%s"%(project, num)) + macro.formatter.text("#%s"%(num)) + macro.formatter.url(0)