10637.3.1
by Guilherme Salgado
Use the default python version instead of a hard-coded version |
1 |
#!/usr/bin/python -S
|
8687.15.22
by Karl Fogel
Add the copyright header block to the remaining .py files. |
2 |
#
|
9893.9.14
by Stuart Bishop
delint |
3 |
# Copyright 2009-2011 Canonical Ltd. This software is licensed under the
|
8687.15.22
by Karl Fogel
Add the copyright header block to the remaining .py files. |
4 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
5 |
||
10344.2.6
by Julian Edwards
remove lint warning |
6 |
# Stop pylint complaining about the _pythonpath relative import.
|
7 |
# pylint: disable-msg=W0403
|
|
8 |
||
2756
by Canonical.com Patch Queue Manager
Queue-Accepted processor and some upload tweaks to fit it. r=stevea |
9 |
"""Queue/Accepted processor
|
10 |
||
11 |
Given a distribution to run on, obtains all the queue items for the
|
|
8447.1.2
by Jonathan Lange
Fix up lots of lint, including removing code that's been disabled forever. |
12 |
distribution and then gets on and deals with any accepted items, preparing
|
13 |
them for publishing as appropriate.
|
|
2756
by Canonical.com Patch Queue Manager
Queue-Accepted processor and some upload tweaks to fit it. r=stevea |
14 |
"""
|
15 |
||
4590.1.1
by Julian Edwards
Re-add an import _pythonpath that make lint told us to remove :/ |
16 |
import _pythonpath |
17 |
||
10344.2.3
by Julian Edwards
get the script running |
18 |
from lp.soyuz.scripts.processaccepted import ProcessAccepted |
2756
by Canonical.com Patch Queue Manager
Queue-Accepted processor and some upload tweaks to fit it. r=stevea |
19 |
|
20 |
||
21 |
if __name__ == '__main__': |
|
10344.2.2
by Julian Edwards
the top level script now calls the LPScript |
22 |
script = ProcessAccepted( |
9893.9.10
by Stuart Bishop
process-accepted.py connects as a distinct database user |
23 |
"process-accepted", dbuser='process_accepted') |
14022.3.2
by William Grant
LaunchpadScript no longer uses initZopeless. |
24 |
script.lock_and_run() |