~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/rosetta-export-queue.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:
7
7
 
8
8
import _pythonpath
9
9
 
10
 
from canonical.database.sqlbase import ISOLATION_LEVEL_READ_COMMITTED
11
10
from canonical.launchpad.webapp.dbpolicy import SlaveDatabasePolicy
12
11
from lp.translations.scripts.po_export_queue import process_queue
13
12
from lp.services.scripts.base import LaunchpadCronScript
23
22
 
24
23
if __name__ == '__main__':
25
24
    script = RosettaExportQueue('rosetta-export-queue', dbuser='poexport')
26
 
    script.lock_and_run(isolation=ISOLATION_LEVEL_READ_COMMITTED)
 
25
    script.lock_and_run()