Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2501 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Renaming a task doesn't actually rename it

Reported by: bochecha Owned by: vinces1979
Priority: normal Milestone: __unclassified__
Component: Scheduler Version: trunk
Severity: normal Keywords:


The task objects have a name attribute, and the current implementation of the rename method doesn't change it:

    def rename(self, taskname, newname):
       """ Rename a scheduled task """

       if taskname and self.tasks.has_key(taskname):
           task = self.tasks[taskname]
           del self.tasks[taskname]
           self.tasks[newname] = task

Was that intended?

In case this was just an oversight, here is a patch to fix that.


tgscheduler-rename.patch Download (525 bytes) - added by bochecha 9 years ago.
actually rename the task name

Change History

Changed 9 years ago by bochecha

actually rename the task name

comment:1 Changed 9 years ago by chrisz

  • Status changed from new to closed
  • Resolution set to fixed

I noticed the same problem last week when adding more tests to the scheduler and fixed it already. Guess it was just an oversight.

Note: See TracTickets for help on using tickets.