Edgewall Software

Opened 10 years ago

Last modified 10 years ago

#11684 closed defect

Methods decorated with lazy are not included in ApiDocs — at Initial Version

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.2
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The following patch seems to fix the issue:

  • trac/util/__init__.py

    diff --git a/trac/util/__init__.py b/trac/util/__init__.py
    index 13676d5..a31a147 100644
    a b  
    2020from __future__ import with_statement
    2121
    2222import errno
     23import functools
    2324import inspect
    2425from itertools import izip, tee
    2526import locale
    class lazy(object):  
    11091110
    11101111    def __init__(self, fn):
    11111112        self.fn = fn
     1113        functools.update_wrapper(self, fn)
    11121114
    11131115    def __get__(self, instance, owner):
    11141116        if instance is None:

Change History (0)

Note: See TracTickets for help on using tickets.