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

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

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/browser/views.py   ftw.publisher.sender(Download)
        self.queue = IQueue(portal)
        # remove job from queue
        if job in self.queue.getJobs():
            self.queue.removeJob(job)
        elif job in self.queue.get_executed_jobs():

src/f/t/ftw.publisher.sender-2.2.0/ftw/publisher/sender/tests/test_publisher_subscribers.py   ftw.publisher.sender(Download)
        self.assertEquals(1, queue.countJobs())
 
        job = queue.getJobs()[0]
        self.assertEquals('push', job.action)
        self.assertEquals(page, job.getObject(self.portal))
        self.assertEquals(1, queue.countJobs())
 
        job = queue.getJobs()[0]
        self.assertEquals('delete', job.action)
        self.assertEquals('/plone/folder', job.objectPath)
        self.assertEquals(1, queue.countJobs())
 
        job = queue.getJobs()[0]
        self.assertEquals('delete', job.action)
        self.assertEquals('/plone/folder/document', job.objectPath)