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

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

src/a/t/atmosphere-HEAD/core/models/machine_request.py   atmosphere(Download)
def process_machine_request(machine_request, new_image_id):
    from core.models.machine import add_to_cache
    from core.application import update_owner
    from core.models.tag import Tag
    from core.models import Identity, ProviderMachine
    # the usergroup model
    tenant_name = user.username
    update_owner(new_machine, tenant_name)
    save_app_data(new_machine.application)
    add_to_cache(new_machine)