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 #156 (closed enhancement: fixed)

Opened 14 years ago

Last modified 12 years ago

The turbogears.expose() decorator hides the docstring

Reported by: jens@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version: 0.8
Severity: normal Keywords: docstrings epydoc


The hiding of the docstring makes epydoc output less useful for exposed methods.

I added a line:

newfunc.__doc__ = func.__doc__

just below the line

newfunc.funcname = func.funcname

at the end which fixed the problem for me.

Change History

comment:1 Changed 13 years ago by simon

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

Fixed with introduction of turbogears.decorator.

comment:2 Changed 13 years ago by simon

  • Status changed from closed to reopened
  • Resolution fixed deleted

Didn't notice this is for 0.8. Should we fix or just wait for 0.9?

comment:3 Changed 13 years ago by kevin

  • Status changed from reopened to closed
  • Resolution set to fixed
  • Milestone set to 0.9

This was reported for 0.8... "Milestone" is when it's slated to be fixed (and there was none for this ticket). I'm slating it for 0.9 and closing the ticket :)

Note: See TracTickets for help on using tickets.