• R/O
  • SSH

traclightning: Commit

traclightningのリポジトリ


Commit MetaInfo

Revision5eb42d3e2cbf2a6740a0dcc8e8f67a8aa7a3ccad (tree)
Zeit2011-07-28 18:45:26
AutorJun Omae <jun66j5@gmai...>
CommiterJun Omae

Log Message

Fixed the problem that ticket listeners are called twice via XML-RPC.

Ändern Zusammenfassung

Diff

diff -r bf0c9bf72a18 -r 5eb42d3e2cbf plugins/svn/xmlrpcplugin/tracrpc/ticket.py
--- a/plugins/svn/xmlrpcplugin/tracrpc/ticket.py Thu Jul 28 00:24:43 2011 +0900
+++ b/plugins/svn/xmlrpcplugin/tracrpc/ticket.py Thu Jul 28 18:45:26 2011 +0900
@@ -168,10 +168,6 @@
168168 "non-current timestamp (%r)", req.authname, when)
169169 when = None
170170 t.insert(when=when)
171- # Call ticket change listeners
172- ts = TicketSystem(self.env)
173- for listener in ts.change_listeners:
174- listener.ticket_created(t)
175171 if notify:
176172 try:
177173 tn = TicketNotifyEmail(self.env)
@@ -250,9 +246,6 @@
250246 # Apply workflow side-effects
251247 for controller in controllers:
252248 controller.apply_action_side_effects(req, t, action)
253- # Call ticket change listeners
254- for listener in ts.change_listeners:
255- listener.ticket_changed(t, comment, author, t._old)
256249 if notify:
257250 try:
258251 tn = TicketNotifyEmail(self.env)
@@ -267,10 +260,6 @@
267260 t = model.Ticket(self.env, id)
268261 req.perm(t.resource).require('TICKET_ADMIN')
269262 t.delete()
270- ts = TicketSystem(self.env)
271- # Call ticket change listeners
272- for listener in ts.change_listeners:
273- listener.ticket_deleted(t)
274263
275264 def changeLog(self, req, id, when=0):
276265 t = model.Ticket(self.env, id)
Show on old repository browser