Did I find the right examples for you? yes no

All Samples(4)  |  Call(1)  |  Derive(0)  |  Import(3)

src/d/j/django-terminator-0.1.1/terminator/decorators.py   django-terminator(Download)
from django.contrib.contenttypes.models import ContentType
 
from .models import MethodExecution
 
 
        def new_method(self, *args, **kwargs):
            result = decorated_method(self, *args, **kwargs)
            execution = MethodExecution(
                method_name=decorated_method.__name__,
                content_type=ContentType.objects.get_for_model(self.__class__),

src/d/j/django-terminator-0.1.1/terminator/__init__.py   django-terminator(Download)
from .decorators import execute_once
from .exceptions import NotExecuted
from .models import MethodExecution
from .terminators import terminate
 

src/d/j/django-terminator-0.1.1/terminator/terminators.py   django-terminator(Download)
 
from .exceptions import NotExecuted
from .models import MethodExecution