~launchpad-pqm/launchpad/devel

10637.3.1 by Guilherme Salgado
Use the default python version instead of a hard-coded version
1
#!/usr/bin/python -S
8687.15.7 by Karl Fogel
Add the copyright header block to more files.
2
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
4935.3.7 by Curtis Hovey
Added bad name suppression to cronscripts.
6
# pylint: disable-msg=C0103,W0403
953 by Canonical.com Patch Queue Manager
Added the raw po/pot import daemon
7
2125 by Canonical.com Patch Queue Manager
[r=bjornt] Cronscript refactorings
8
import _pythonpath
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
9
1681.1.134 by Stuart Bishop
Make poattach and poimport connect as the correct database users
10
from canonical.config import config
9592.3.1 by Jeroen Vermeulen
Reconstructed changes after merge trouble.
11
from lp.translations.scripts.po_import import TranslationsImport
1998 by Canonical.com Patch Queue Manager
TranslationValidation implementation for .po imports r=spiv
12
13
if __name__ == '__main__':
9592.3.3 by Jeroen Vermeulen
Typo.
14
    script = TranslationsImport(
15
        'rosetta-poimport', dbuser=config.poimport.dbuser)
9592.3.1 by Jeroen Vermeulen
Reconstructed changes after merge trouble.
16
    script.lock_and_run()