~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/rosetta-export-queue.py

Undo rename. Again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python -S
2
2
#
3
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
5
 
6
6
# pylint: disable-msg=C0103,W0403
7
7
 
8
8
import _pythonpath
9
9
 
 
10
from canonical.database.sqlbase import ISOLATION_LEVEL_READ_COMMITTED
10
11
from canonical.launchpad.webapp.dbpolicy import SlaveDatabasePolicy
 
12
from lp.translations.scripts.po_export_queue import process_queue
11
13
from lp.services.scripts.base import LaunchpadCronScript
12
 
from lp.translations.scripts.po_export_queue import process_queue
13
14
 
14
15
 
15
16
class RosettaExportQueue(LaunchpadCronScript):
22
23
 
23
24
if __name__ == '__main__':
24
25
    script = RosettaExportQueue('rosetta-export-queue', dbuser='poexport')
25
 
    script.lock_and_run()
 
26
    script.lock_and_run(isolation=ISOLATION_LEVEL_READ_COMMITTED)