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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Perform work within an interaction.

Raises an error if the calling thread already has an interaction.


    with ZopeInteraction():

    def helper(*args, **kwds):
        return GeneratorContextManager(func(*args, **kwds))

src/c/i/cipher.longrequest-1.0.9/src/cipher/longrequest/longrequest.py   cipher.longrequest(Download)
from cipher.background.thread import BackgroundWorkerThread
from cipher.background.contextmanagers import (ZopeInteraction, ZopeTransaction)
from paste.request import construct_url
from paste.util.converters import asbool
    def runNoDB(self):
        """Main loop of the thread."""
            while self.scheduleNextWork():
                with ZopeInteraction():