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 #895 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH]turbogears.scheduler.add_daytime_task broken

Reported by: Joost Owned by: anonymous
Priority: normal Milestone: 0.8
Component: TurboGears Version: 0.9a6
Severity: normal Keywords:
Cc:

Description

  File "..\incomming\svn\turbogears\trunk\turbogears\scheduler.py", line 441, in add_weekday_task
    processmethod=processmethod, args=args, kw=kw)
TypeError: add_daytime_task() got an unexpected keyword argument 'kw'

Attachments

895.patch Download (1.1 KB) - added by anonymous 13 years ago.

Change History

Changed 13 years ago by anonymous

comment:1 Changed 13 years ago by max

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

Applied in r1496, thanks!

comment:2 Changed 13 years ago by jorge.vargas

I almost went crazy with this....

I was looking at the trunk running 0.9a5

I even put in jeopardy my python-fu

def poskws(a,b,c=0,d=1):

... print locals() ...

poskds()

Traceback (most recent call last):

File "<stdin>", line 1, in ?

NameError?: name 'poskds' is not defined

poskws()

Traceback (most recent call last):

File "<stdin>", line 1, in ?

TypeError?: poskws() takes at least 2 arguments (0 given)

poskws(1,0)

{'a': 1, 'c': 0, 'b': 0, 'd': 1}

poskws((1,),0)

{'a': (1,), 'c': 0, 'b': 0, 'd': 1}

poskws((1,),(1,2))

{'a': (1,), 'c': 0, 'b': (1, 2), 'd': 1}

Note: See TracTickets for help on using tickets.