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

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

        def findbyhostall(session, is_deleted=False):
    return session.query(Machine).filter(
        or_(Machine.attribute == MACHINE_ATTRIBUTE['HOST'], Machine.attribute == MACHINE_ATTRIBUTE['URI'])).filter(
        Machine.is_deleted == is_deleted).all()
        


src/k/a/karesansui-HEAD/karesansui/gadget/host.py   karesansui(Download)
    USER_MIN_LENGTH, USER_MAX_LENGTH
 
from karesansui.db.access.machine import \
     findbyhostall, findby1uniquekey, findby1hostname, \
     new as m_new, save as m_save, update as m_update
            return True
        else:
            self.view.hosts = findbyhostall(self.orm)
            self.view.application_uniqkey = karesansui.config['application.uniqkey']
            if self.input.has_key('job_id') is True:

src/k/a/karesansui-HEAD/karesansui/gadget/tree.py   karesansui(Download)
     KaresansuiVirtException
from karesansui.lib.merge import MergeHost
from karesansui.db.access.machine import findbyhostall
from karesansui.lib.utils import available_virt_uris
 
    def _GET(self, *param, **params):
        models = findbyhostall(self.orm)
        uris = available_virt_uris()
 
        try: