~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to cronscripts/generate-ppa-htaccess.py

  • Committer: Abel Deuring
  • Date: 2009-03-24 12:43:49 UTC
  • mfrom: (8053 devel)
  • mto: This revision was merged to the branch mainline in revision 8328.
  • Revision ID: abel.deuring@canonical.com-20090324124349-xllu9kbw5ib27kno
RF merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python2.4
 
2
 
 
3
# Copyright 2009 Canonical Ltd.  All rights reserved.
 
4
# pylint: disable-msg=C0103,W0403
 
5
 
 
6
# This script generates .htaccess files for private PPAs.
 
7
 
 
8
import _pythonpath
 
9
 
 
10
from canonical.config import config
 
11
from canonical.launchpad.scripts.generate_ppa_htaccess import (
 
12
    HtaccessTokenGenerator)
 
13
 
 
14
 
 
15
if __name__ == '__main__':
 
16
    script = HtaccessTokenGenerator(
 
17
        'generate-ppa-htaccess', dbuser=config.generateppahtaccess.dbuser)
 
18
    script.lock_and_run()
 
19