Commits

osimons  committed 6a9e0ab

[svn r6598] XmlRpcPlugin: Warnings added in wrong (non-functional) way. Closes #5843.

  • Participants
  • Parent commits 2abd079

Comments (0)

Files changed (1)

File trunk/tracrpc/ticket.py

 from trac.ticket.api import TicketSystem
 from trac.ticket.notification import TicketNotifyEmail
 from trac.ticket.web_ui import TicketModule
+from trac.web.chrome import add_warning
 from trac.util.datefmt import to_datetime, to_timestamp, utc
 
 import genshi
             req.args['ts'] = str(t.time_changed) # collision hack...
             changes, problems = tm.get_ticket_changes(req, t, action)
             for warning in problems:
-                req.add_warning("Rpc ticket.update: %(warning)s",
-                                    warning=warning)
+                add_warning(req, "Rpc ticket.update: %s" % warning)
             valid = problems and False or tm._validate_ticket(req, t)
             if not valid:
                 raise TracError(