00001 Dependencies = [] 00002 00003 def execute(macro, args): 00004 project = args.split()[0] 00005 component = args.split()[1] 00006 if(args.split()[1:]): 00007 extra_args = "&"+"&".join(args.split()[1:]) 00008 else: 00009 extra_args="" 00010 00011 f = macro.formatter 00012 text = f.text 00013 url = f.url 00014 base = "https://kforge.ros.org/%s/trac/"%(project) 00015 base_q = base + "query?component=%s&status=assigned&status=new&status=reopened"%(component) 00016 base_new = base + "newticket?component=%s"%(component) 00017 return text("Use trac to ") + url(1, base_new+"&type=defect&%s"%(extra_args)) + text("report bugs") + url(0) + text(" or ") + url(1, base_new+"&type=enhancement%s"%(extra_args)) + text("request features") + url(0) + text(". [") + url(1,base_q) + text("View active tickets") + url(0) + text("]") + f.linebreak(0)