~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/job/runner.py

  • Committer: William Grant
  • Date: 2011-09-24 03:29:18 UTC
  • mto: This revision was merged to the branch mainline in revision 14030.
  • Revision ID: william.grant@canonical.com-20110924032918-oha8qoer8a44655g
Replace initZopeless mostly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
from zope.component import getUtility
55
55
from zope.security.proxy import removeSecurityProxy
56
56
 
57
 
from canonical.config import config
58
 
from canonical.database.sqlbase import ZopelessTransactionManager
 
57
from canonical.config import (
 
58
    config,
 
59
    dbconfig,
 
60
    )
59
61
from canonical.launchpad import scripts
60
62
from canonical.launchpad.webapp import errorlog
61
63
from lp.services.job.interfaces.job import (
372
374
            raise TimeoutError
373
375
        scripts.execute_zcml_for_scripts(use_web_security=False)
374
376
        signal(SIGHUP, handler)
375
 
        ZopelessTransactionManager.initZopeless(dbuser=cls.dbuser)
 
377
        dbconfig.override(dbuser=cls.dbuser, isolation_level='read_committed')
376
378
        # XXX wgrant 2011-09-24 bug=29744: initZopeless used to do this.
377
379
        # Should be removed from callsites verified to not need it.
378
380
        set_immediate_mail_delivery(True)