10637.3.1
by Guilherme Salgado
Use the default python version instead of a hard-coded version |
1 |
#!/usr/bin/python -S
|
8657.8.1
by Jeroen Vermeulen
Script to commit translations to a branch. |
2 |
# pylint: disable-msg=W0403
|
8687.15.34
by Karl Fogel
Add license header blocks to .py, .zcml, and .pt files that don't have it |
3 |
#
|
4 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
|
5 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
8657.8.1
by Jeroen Vermeulen
Script to commit translations to a branch. |
6 |
|
8871.3.10
by Jeroen Vermeulen
Documented privileges and database access. |
7 |
"""Commit translations to translations_branch where requested.
|
8 |
||
9 |
This script needs to be run on the codehosting server, so that it can
|
|
10 |
access hosted branches.
|
|
11 |
||
12 |
Besides committing to branches, the script updates Branch records in the
|
|
13 |
database, to let the branch scanner know that the branches' contents
|
|
14 |
have been updated. For the rest, the script talks to the slave store.
|
|
15 |
"""
|
|
8657.8.1
by Jeroen Vermeulen
Script to commit translations to a branch. |
16 |
|
17 |
__metaclass__ = type |
|
18 |
__all__ = [] |
|
19 |
||
20 |
import _pythonpath |
|
8751.1.1
by Danilo Šegan
Store migration changes so far. |
21 |
from lp.translations.scripts.translations_to_branch import ( |
8657.8.1
by Jeroen Vermeulen
Script to commit translations to a branch. |
22 |
ExportTranslationsToBranch) |
23 |
||
24 |
||
25 |
if __name__ == '__main__': |
|
26 |
script = ExportTranslationsToBranch( |
|
27 |
'translations-export-to-branch', dbuser='translationstobranch') |
|
12143.1.1
by Danilo Segan
Set config section and OOPS prefix for translations_export_to_branch. |
28 |
script.config_name = 'translations_export_to_branch' |
8657.8.1
by Jeroen Vermeulen
Script to commit translations to a branch. |
29 |
script.lock_and_run() |