Opened 9 years ago

#6408 new defect

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

Reported by: Luke Owned by: Jörg Viola
Priority: normal Component: SchedulingToolsPlugin
Severity: normal Keywords: scheduler parameter count
Cc: Trac Release: 0.11



See listerner: class TicketChangeListener(Component):

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


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)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Jörg Viola.

Add Comment

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

Note: See TracTickets for help on using tickets.