~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).
8255.13.5 by Julian Edwards
Cprov's review comments applied. Also agreed to move the top-level script back to cronscripts since Soyuz will be open source now.
5
6
# pylint: disable-msg=C0103,W0403
7
8
# This script generates .htaccess files for private PPAs.
9
10
import _pythonpath
11
12
from canonical.config import config
8426.7.1 by Julian Edwards
migrate archivepublisher to the lp tree.
13
from lp.archivepublisher.scripts.generate_ppa_htaccess import (
8255.13.5 by Julian Edwards
Cprov's review comments applied. Also agreed to move the top-level script back to cronscripts since Soyuz will be open source now.
14
    HtaccessTokenGenerator)
15
16
17
if __name__ == '__main__':
18
    script = HtaccessTokenGenerator(
19
        'generate-ppa-htaccess', dbuser=config.generateppahtaccess.dbuser)
20
    script.lock_and_run()
21