Did I find the right examples for you? yes no

All Samples(27)  |  Call(2)  |  Derive(0)  |  Import(25)

src/m/i/minecloud-HEAD/minecloud/launcher/views.py   minecloud(Download)
 
from . import tasks
from .models import Instance, Session
from .sseview import SseView, send_event
 
    if not running_instances:
        timestamp = datetime.datetime.utcnow().replace(tzinfo=utc)
        instance = Instance(launched_by=request.user,
                            start=timestamp,
                            state='initiating')

src/d/a/database-as-a-service-HEAD/dbaas/physical/serializers.py   database-as-a-service(Download)
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django_services.api import DjangoServiceSerializer
from .models import Instance, DatabaseInfra, Engine, EngineType, Plan
 

src/c/o/confine-controller-0.10.5/controller/apps/maintenance/admin.py   confine-controller(Download)
    revoke_instance, manage_instances )
from .forms import ExecutionInlineForm
from .models import Operation, Execution, Instance
 
 

src/o/p/Opus-HEAD/opus/project/dcmux/models/__init__.py   Opus(Download)
 
from models import Provider, RealImage, AggregateImage, Instance, Policy
# This is an import * so that the policies file can be self contained
from policies import *
 

src/c/o/confine-controller-0.10.5/controller/apps/maintenance/actions.py   confine-controller(Download)
from .exceptions import ConcurrencyError
from .forms import ExecutionForm
from .models import Operation, Instance
 
 

src/c/y/cyme-0.0.5/cyme/admin.py   cyme(Download)
from djcelery.humanize import naturaldate
 
from .models import Broker, Instance, Queue
from .branch.supervisor import supervisor
 

src/c/y/cyme-HEAD/cyme/admin.py   cyme(Download)
from djcelery.humanize import naturaldate
 
from .models import Broker, Instance, Queue
from .branch.supervisor import supervisor
 

src/c/o/confine-controller-0.10.5/controller/apps/maintenance/tasks.py   confine-controller(Download)
def run_instance(instance_id):
    from .models import Instance
    instance = Instance.objects.get(pk=instance_id)
    if not instance.execution.is_active:
        return 'no active'

src/c/o/confine-controller-0.10.5/controller/apps/maintenance/permissions.py   confine-controller(Download)
from __future__ import absolute_import
 
from permissions import Permission
 
from .models import Instance

src/c/y/cyme-0.0.5/cyme/branch/managers.py   cyme(Download)
from .supervisor import supervisor as sup
 
from ..models import Broker, Instance
from ..utils import force_list
 

  1 | 2 | 3  Next