]> TLD Linux GIT Repositories - tld-ftp-admin.git/blob - bin/pfa-unlocktree
- non-integer releases are ok in TLD
[tld-ftp-admin.git] / bin / pfa-unlocktree
1 #!/usr/bin/env python
2 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
3
4 import sys, os
5 sys.path.insert(0, os.environ['HOME']+'/tld-ftp-admin/modules')
6 import ftptree
7 import ftpio
8 import config
9
10 if len(sys.argv) < 2:
11     print "ERR: not enough parameters given"
12     print "unlock.py tree"
13     sys.exit(1)
14
15 for tree in sys.argv[1:]:
16     ftpio.connect()
17     print "Unlock %s: %s" % (tree, ftpio.unlock(sys.argv[1]))