Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/l/ally-py-0.9.0/ally/container/_impl/_setup.py   ally-py(Download)
from ..impl.priority import Priority
from ._assembly import Setup, Assembly
from ._call import WithType, WithCall, CallEvent, CallEventOnCount, \
    WithListeners, CallConfig, CallEntity, CallStart, CallEventControlled
from ally.support.util_sys import locationStack
                             (self.name, locationStack(self._function)))
        if self._event == self.BEFORE or len(self._targets) == 1:
            assembly.calls[self.name] = CallEvent(assembly, self.name, self._function)
        else:
            assembly.calls[self.name] = CallEventOnCount(assembly, self.name, self._function, len(self._targets))

src/a/l/ally-1.0/ally/container/_impl/_setup.py   ally(Download)
from ..error import SetupError
from ._assembly import Setup, Assembly
from ._call import WithType, WithCall, CallEvent, CallEventOnCount, \
    WithListeners, CallConfig, CallEntity, CallStart, CallEventControlled
from ally.design.priority import Priority
                             (self.name, locationStack(self._function)))
        if self._event == self.BEFORE or len(self._targets) == 1:
            assembly.calls[self.name] = CallEvent(assembly, self.name, self._function)
        else:
            assembly.calls[self.name] = CallEventOnCount(assembly, self.name, self._function, len(self._targets))