def getMethodByName(obj, name):
    try:#to get a method by asking the service
        obj = obj._getMethodByName(name)
    except:
        #assumed a childObject is ment 
        #split the name from objName.childObjName... -> [objName, childObjName, ...]
        #and get all objects up to the last in list with name checking from the service object
        names = name.split(".")
        for name in names:
            if nameAllowed(name):
                obj = getattr(obj, name)
            else:
                raise MethodNameNotAllowed()
        
    return obj
Decorators: keep_messages with empty args should avoid the removal of all flash-scoped values.
dataset/ETHPy150Open anandology/pyjamas/examples/jsonrpc/public/services/jsonrpc/__init__.py/getMethodByName--crossover with--dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/decorators.py/KeepMessagesDecoratorTestCase.test_decorator_with_empty_args