Changeset 1023 in main


Ignore:
Timestamp:
04/24/12 11:29:19 (7 years ago)
Author:
pcosquer
Message:

models: _cache_lifecycle_stuff: adds the note to the wrapper function instead of the original onei

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/models.py

    r981 r1023  
    417417    a tuple (state's name, lifecycle's name). 
    418418    """ 
    419     func.__doc__ += """ 
    420      
    421         .. note:: 
    422              
    423             The result of this function is cached with :func:`._cache_lifecycle_stuff`. 
    424     """ 
    425419    @wraps(func) 
    426420    def wrapper(plmobject): 
     
    433427            return value 
    434428    func.cache = {} 
     429    wrapper.__doc__ += """ 
     430     
     431        .. note:: 
     432             
     433            The result of this function is cached with :func:`._cache_lifecycle_stuff`. 
     434    """ 
    435435    return wrapper 
    436436     
Note: See TracChangeset for help on using the changeset viewer.