Did I find the right examples for you? yes no

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

src/d/b/dbaas_nfsaas-0.2.0/dbaas_nfsaas/provider.py   dbaas_nfsaas(Download)
# -*- coding: utf-8 -*-
import logging
from django.db import transaction
from client import NfsaasClient
from models import EnvironmentAttr, PlanAttr, HostAttr
 
        LOG.info("Saving export info on nfsaas host attr")
        hostattr = HostAttr(host=host, nfsaas_export_id=export['id'], nfsaas_path=export['path'])
        hostattr.save()
 

src/d/b/dbaas_cloudstack-0.0.9/dbaas_cloudstack/provider.py   dbaas_cloudstack(Download)
from util import make_db_random_password
from drivers import factory_for
from .models import PlanAttr, HostAttr
from base64 import b64encode
import logging
                request = {'projectid': '%s' % (project_id), 'id':'%s' % (response['id']) }
 
                host_attr = HostAttr()
                host_attr.vm_id = response['id']