Modify

Opened 5 years ago

#6408 new defect

TicketChangeListener.ticket_created() does not call Scheduler.schedule() correctly (argument count not match)

Reported by: fluke Owned by: viola
Priority: normal Component: SchedulingToolsPlugin
Severity: normal Keywords: scheduler parameter count
Cc: Trac Release: 0.11

Description

reversion:r7365

See listerner:
class TicketChangeListener(Component):

"""Ticket change listener triggering re-scheduling."""

implements(ITicketChangeListener)


def ticket_created(self, ticket):

"""Called when a ticket is created."""
scheduler = Scheduler()
scheduler.schedule(self.env);

And the Scheduler class:
class Scheduler(object):

"""Ticket Scheduler"""


def schedule(self, env, config):

"""Schedules all tickets"""

The schedule() tasks 3 arguments, but only 2 given in ticket_created()

Maybe the solution is :

scheduler.schedule(self.env, self.config);

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.