Did I find the right examples for you? yes no

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

        def get_sqlalchemy_adaptor(original_class):
    if sqlalchemy is not None and hasattr(original_class, '_sa_class_manager') and isinstance(
            original_class._sa_class_manager, instrumentation.ClassManager):
        return SqlAlchemyAdaptor(original_class)
    return None
        


src/s/t/state_machine-0.2.9/state_machine/orm/__init__.py   state_machine(Download)
from __future__ import absolute_import
 
from state_machine.orm.base import BaseAdaptor
from state_machine.orm.mongoengine import get_mongo_adaptor
from state_machine.orm.sqlalchemy import get_sqlalchemy_adaptor

src/s/t/state_machine-HEAD/state_machine/orm/__init__.py   state_machine(Download)
from __future__ import absolute_import
 
from state_machine.orm.base import BaseAdaptor
from state_machine.orm.mongoengine import get_mongo_adaptor
from state_machine.orm.sqlalchemy import get_sqlalchemy_adaptor