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

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

        def samecount(session, tag_name):
    return session.query(Tag).filter(Tag.name == tag_name).count()
        


src/k/a/karesansui-HEAD/karesansui/gadget/guestimport.py   karesansui(Download)
from karesansui.db.access.notebook import findby1 as n_findby1
from karesansui.db.access.tag      import findby1 as t_findby1
from karesansui.db.access.tag      import samecount   as t_count
from karesansui.db.access.tag      import findby1name as t_name
 
            tag_array = uniq_sort(tag_array)
            for x in tag_array:
                if t_count(self.orm, x) == 0:
                    _tags.append(t_new(x))
                else:

src/k/a/karesansui-HEAD/karesansui/gadget/hostby1.py   karesansui(Download)
    VENDOR_DATA_DIR
 
from karesansui.db.access.tag import \
    new as t_new, samecount as t_count, findby1name as t_name
 
            tag_array = uniq_sort(tag_array)
            for x in tag_array:
                if t_count(self.orm, x) == 0:
                    _tags.append(t_new(x))
                else:

src/k/a/karesansui-HEAD/karesansui/gadget/host.py   karesansui(Download)
     findbyhostall, findby1uniquekey, findby1hostname, \
     new as m_new, save as m_save, update as m_update
from karesansui.db.access.tag import new as t_new, \
     samecount as t_count, findby1name as t_name
from karesansui.db.access.notebook import new as n_new
            tag_array = uniq_sort(tag_array)
            for x in tag_array:
                if t_count(self.orm, x) == 0:
                    _tags.append(t_new(x))
                else:

src/k/a/karesansui-HEAD/karesansui/gadget/guestby1.py   karesansui(Download)
from karesansui.db.access.machine2jobgroup import new as m2j_new
from karesansui.db.access._2pysilhouette import save_job_collaboration
from karesansui.db.access.tag import \
     new as t_new, samecount as t_count, findby1name as t_name
 
            tag_array = uniq_sort(tag_array)
            for x in tag_array:
                if t_count(self.orm, x) == 0:
                    _tags.append(t_new(x))
                else:

src/k/a/karesansui-HEAD/karesansui/gadget/guest.py   karesansui(Download)
from karesansui.db.access.notebook import new as n_new
#from karesansui.db.access.tag import new as t_new, samecount as t_count, findby1name as t_name
from karesansui.db.access.tag import new as t_new, samecount as t_count, findby1name as t_name
from karesansui.db.access._2pysilhouette import jg_save, jg_delete
from karesansui.db.model._2pysilhouette import Job, JobGroup
            tag_array = uniq_sort(tag_array)
            for x in tag_array:
                if t_count(self.orm, x) == 0:
                    _tags.append(t_new(x))
                else: