コード例 #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())