~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/foaf-update-karma-cache.py

  • Committer: William Grant
  • Date: 2011-09-24 03:56:19 UTC
  • mto: This revision was merged to the branch mainline in revision 14030.
  • Revision ID: william.grant@canonical.com-20110924035619-ht8qu83op75xhdgr
LaunchpadScript no longer uses initZopeless.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from canonical.config import config
13
13
from canonical.database.sqlbase import (
14
14
    cursor,
15
 
    ISOLATION_LEVEL_AUTOCOMMIT,
16
15
    flush_database_updates,
17
16
    )
18
17
from lp.app.errors import NotFoundError
295
294
    # COMMIT all the time. However, if we interrupt this script mid-run
296
295
    # it will need to be re-run as the data will be inconsistent (only
297
296
    # part of the caches will have been recalculated).
298
 
    script.lock_and_run(isolation=ISOLATION_LEVEL_AUTOCOMMIT)
 
297
    script.lock_and_run(isolation='autocommit')