예제 #1
0
파일: app.py 프로젝트: petrjasek/Ally-Py
def _distribution(args, event):
    '''
    FOR INTERNAL USE ONLY!
    Populates the distribution setup.
    '''
    if not args: return deploy
    assert len(args) == 1, 'Expected only one argument that is the decorator function, got %s arguments' % len(args)
    function = args[0]
    hasType, type = _process(function)
    if hasType: raise SetupError('No return annotation expected for function %s' % function)
    return update_wrapper(register(SetupDistribution(function, event), callerLocals(2)), function)
예제 #2
0
파일: app.py 프로젝트: petrjasek/Ally-Py
def registerSupport():
    '''
    Register the support setup in this module in order to process the support APIs.
    '''
    register(SetupDistributionSupport(), callerLocals())