# Path: core/db/models.py
# class FeaturesMixin(object):
# class SessionLogSubStep(Base, FeaturesMixin):
# class SessionLogStep(Base, FeaturesMixin):
# class Session(Base, FeaturesMixin):
# class Endpoint(Base, FeaturesMixin):
# class OpenstackClone(Endpoint):
# class DockerClone(Endpoint):
# class User(Base, FeaturesMixin):
# class UserGroup(Base):
# class Platform(Base):
# class Provider(Base, FeaturesMixin):
#     def add(self):
#     def save(self):
#     def refresh(self):
#     def delete(self):
#     def __init__(self, control_line, body=None, parent_id=None):
#     def __init__(self, control_line, body=None, session_id=None, created=None):
#     def add_sub_step_to_step(self, control_line, body):
#     def __init__(self, platform, name=None, dc=None, provider_id=None):
#     def __str__(self):
#     def inactivity(self):
#     def duration(self):
#     def is_waiting(self):
#     def is_running(self):
#     def is_done(self):
#     def is_succeed(self):
#     def is_preparing(self):
#     def current_log_step(self):
#     def add_session_step(self, control_line, body=None, created=None):
#     def info(self):
#     def start_timer(self):
#     def stop_timer(self):
#     def stop_vnc_proxy(self):
#     def _close(self, reason=None):
#     def succeed(self):
#     def failed(self, tb=None, reason=None):
#     def set_status(self, status):
#     def set_endpoint(self, endpoint):
#     def set_screencast_started(self, value):
#     def run(self):
#     def timeout(self):
#     def set_user(self, username):
#     def _add_sub_step(self, control_line, body, context):
#     def add_sub_step(self, control_line, body=None):
#     def make_request(self, port, request,
#                      timeout=getattr(config, "REQUEST_TIMEOUT", constants.REQUEST_TIMEOUT)):
#     def __str__(self):
#     def __init__(self, origin, prefix, provider):
#     def delete(self, try_to_rebuild=False):
#     def create(self):
#     def rebuild(self):
#     def bind_ports(self):
#     def __get_prop_from_config(self, prop, default_prop):
#     def artifacts(self):
#     def defined_ports_from_config(self):
#     def vnc_port(self):
#     def selenium_port(self):
#     def agent_port(self):
#     def agent_ws_url(self):
#     def service_mode_on(self):
#     def service_mode_off(self):
#     def send_to_service(self):
#     def set_mode(self, mode):
#     def set_ready(self, value):
#     def set_in_use(self, value):
#     def set_env_vars(self, env_vars):
#     def in_pool(self):
#     def in_service(self):
#     def wait_for_service(self):
#     def info(self):
#     def is_preloaded(self):
#     def is_ondemand(self):
#     def ping_vm(self):
# def clone_refresher(func):
#     def wrapper(self, *args, **kwargs):
#     def __init__(self, origin, prefix, pool):
#     def _get_nova_client():
#     def network_id(self):
#     def refresh_endpoint(self):
#     def set_userdata(file_path):
#     def create(self):
#     def _parse_ip_from_networks(self):
#     def get_ip(self):
#     def _wait_for_activated_service(self):
#     def image(self):
#     def flavor(self):
#     def is_created(server):
#     def is_spawning(server):
#     def is_broken(server):
#     def get_vm(self, server_name):
#     def delete(self, try_to_rebuild=False):
#     def rebuild(self):
#     def __init__(self, origin, prefix, pool):
#     def _get_client():
#     def __str__(self):
#     def refresh_endpoint(self):
#     def get_container(self):
#     def connect_network(self):
#     def disconnect_network(self):
#     def status(self):
#     def is_spawning(self):
#     def is_created(self):
#     def is_broken(self):
#     def image(self):
#     def __make_binded_ports(self):
#     def create(self):
#     def selenium_is_ready(self):
#     def _wait_for_activated_service(self):
#     def delete(self, try_to_rebuild=False):
#     def rebuild(self):
#     def generate_token():
#     def regenerate_token(self):
#     def info(self):
#     def __init__(self, name):
#     def __init__(self, name, url, config=None, active=True, max_limit=0):
#     def info(self):


import logging
from alembic import context
from sqlalchemy import engine_from_config, pool
from core.db.models import Base
from __future__ import with_statement

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config

# Interpret the config file for Python logging.
# This line sets up loggers basically.
# fileConfig(config.config_file_name)
log = logging.getLogger(__name__)

# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata

# Path: core/db/models.py
# class FeaturesMixin(object):
# class SessionLogSubStep(Base, FeaturesMixin):
# class SessionLogStep(Base, FeaturesMixin):
# class Session(Base, FeaturesMixin):
# class Endpoint(Base, FeaturesMixin):
# class OpenstackClone(Endpoint):
# class DockerClone(Endpoint):
# class User(Base, FeaturesMixin):
# class UserGroup(Base):
# class Platform(Base):
# class Provider(Base, FeaturesMixin):
#     def add(self):
#     def save(self):
#     def refresh(self):
#     def delete(self):
#     def __init__(self, control_line, body=None, parent_id=None):
#     def __init__(self, control_line, body=None, session_id=None, created=None):
#     def add_sub_step_to_step(self, control_line, body):
#     def __init__(self, platform, name=None, dc=None, provider_id=None):
#     def __str__(self):
#     def inactivity(self):
#     def duration(self):
#     def is_waiting(self):
#     def is_running(self):
#     def is_done(self):
#     def is_succeed(self):
#     def is_preparing(self):
#     def current_log_step(self):
#     def add_session_step(self, control_line, body=None, created=None):
#     def info(self):
#     def start_timer(self):
#     def stop_timer(self):
#     def stop_vnc_proxy(self):
#     def _close(self, reason=None):
#     def succeed(self):
#     def failed(self, tb=None, reason=None):
#     def set_status(self, status):
#     def set_endpoint(self, endpoint):
#     def set_screencast_started(self, value):
#     def run(self):
#     def timeout(self):
#     def set_user(self, username):
#     def _add_sub_step(self, control_line, body, context):
#     def add_sub_step(self, control_line, body=None):
#     def make_request(self, port, request,
#                      timeout=getattr(config, "REQUEST_TIMEOUT", constants.REQUEST_TIMEOUT)):
#     def __str__(self):
#     def __init__(self, origin, prefix, provider):
#     def delete(self, try_to_rebuild=False):
#     def create(self):
#     def rebuild(self):
#     def bind_ports(self):
#     def __get_prop_from_config(self, prop, default_prop):
#     def artifacts(self):
#     def defined_ports_from_config(self):
#     def vnc_port(self):
#     def selenium_port(self):
#     def agent_port(self):
#     def agent_ws_url(self):
#     def service_mode_on(self):
#     def service_mode_off(self):
#     def send_to_service(self):
#     def set_mode(self, mode):
#     def set_ready(self, value):
#     def set_in_use(self, value):
#     def set_env_vars(self, env_vars):
#     def in_pool(self):
#     def in_service(self):
#     def wait_for_service(self):
#     def info(self):
#     def is_preloaded(self):
#     def is_ondemand(self):
#     def ping_vm(self):
# def clone_refresher(func):
#     def wrapper(self, *args, **kwargs):
#     def __init__(self, origin, prefix, pool):
#     def _get_nova_client():
#     def network_id(self):
#     def refresh_endpoint(self):
#     def set_userdata(file_path):
#     def create(self):
#     def _parse_ip_from_networks(self):
#     def get_ip(self):
#     def _wait_for_activated_service(self):
#     def image(self):
#     def flavor(self):
#     def is_created(server):
#     def is_spawning(server):
#     def is_broken(server):
#     def get_vm(self, server_name):
#     def delete(self, try_to_rebuild=False):
#     def rebuild(self):
#     def __init__(self, origin, prefix, pool):
#     def _get_client():
#     def __str__(self):
#     def refresh_endpoint(self):
#     def get_container(self):
#     def connect_network(self):
#     def disconnect_network(self):
#     def status(self):
#     def is_spawning(self):
#     def is_created(self):
#     def is_broken(self):
#     def image(self):
#     def __make_binded_ports(self):
#     def create(self):
#     def selenium_is_ready(self):
#     def _wait_for_activated_service(self):
#     def delete(self, try_to_rebuild=False):
#     def rebuild(self):
#     def generate_token():
#     def regenerate_token(self):
#     def info(self):
#     def __init__(self, name):
#     def __init__(self, name, url, config=None, active=True, max_limit=0):
#     def info(self):


# Path: migrations/alembic/env.py
import logging
from alembic import context
from sqlalchemy import engine_from_config, pool
from core.db.models import Base

from __future__ import with_statement

# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config

# Interpret the config file for Python logging.
# This line sets up loggers basically.
# fileConfig(config.config_file_name)
log = logging.getLogger(__name__)

# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata

target_metadata = Base.metadata