~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/process-upload.py

  • Committer: Steve Kowalik
  • Date: 2011-08-07 04:05:52 UTC
  • mto: This revision was merged to the branch mainline in revision 13626.
  • Revision ID: stevenk@ubuntu.com-20110807040552-mwnxo0flmhvl35e8
Correct the notification based on review comments, and remove request{,ed}
from the function names, switching to create{,d}.

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
"""Upload processor.
11
11
 
12
12
import _pythonpath
13
13
 
 
14
from canonical.config import config
14
15
from lp.soyuz.scripts.soyuz_process_upload import ProcessUpload
15
16
 
16
17
 
17
18
if __name__ == '__main__':
18
 
    script = ProcessUpload('process-upload', dbuser='process_upload')
 
19
    script = ProcessUpload('process-upload', dbuser=config.uploader.dbuser)
19
20
    script.lock_and_run()