addons14/base_rest/tools.py
def _inspect_methods(cls):
    """Return all methods of a given class as (name, value) pairs sorted by
    name.
    inspect.getmembers was initially used. Unfortunately, instance's properties
    was accessed into the loop and could raise some exception since we are
    into the startup process and all the resources are not yet initialized.
    """
    results = []
    for attribute in inspect.classify_class_attrs(cls):
        if attribute.kind != "method":
            continue
        name = attribute.name
        method = getattr(cls, name)
        results.append((name, method))
    results.sort(key=lambda pair: pair[0])
    return results
Return all methods of a given class as (name, value) pairs sorted by
    name.
    inspect.getmembers was initially used. Unfortunately, instance's properties
    was accessed into the loop and could raise some exception since we are
    into the startup process and all the resources are not yet initialized.
    
Return all methods of a given class as (name, value) pairs sorted by
name.
Return all methods of a given class as ( name value ) pairs sorted by name .
def _inspect_methods(cls):
    results = []
    for attribute in inspect.classify_class_attrs(cls):
        if attribute.kind != "method":
            continue
        name = attribute.name
        method = getattr(cls, name)
        results.append((name, method))
    results.sort(key=lambda pair: pair[0])
    return results
def _inspect_methods ( cls ) : results = [ ] for attribute in inspect . classify_class_attrs ( cls ) : if attribute . kind != "method" : continue name = attribute . name method = getattr ( cls , name ) results . append ( ( name , method ) ) results . sort ( key = lambda pair : pair [ 0 ] ) return results
Return all methods of a given class as (name, value) pairs sorted by
name.
Return all methods of a given class as ( name value ) pairs sorted by name .
"""Return all methods of a given class as (name, value) pairs sorted by
    name.
    inspect.getmembers was initially used. Unfortunately, instance's properties
    was accessed into the loop and could raise some exception since we are
    into the startup process and all the resources are not yet initialized.
    """
cls