]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blob - modules/wwwcmds.py
- all scripts use ftpiod for locking and logging
[projects/pld-ftp-admin.git] / modules / wwwcmds.py
1 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
2
3 import wwwiface, ftpio
4
5
6 def handlecmds(options):
7     if 'action' in options and options['action'] in actions:
8         pass
9     else:
10         wwwiface.addcontent('<form action="index.py" method="post"><table border="1">')
11         wwwiface.addcontent('<tr><td>Mv</td><td>Package</td></tr>\n')
12         for pkg in ftpio.gettree():
13             wwwiface.addcontent('<tr><td><input type="checkbox"></td><td>'+pkg+'</td></tr>\n')
14         wwwiface.addcontent('<tr><td>&nbsp;</td><td><input type="submit" value="Move"></td></tr>')
15         wwwiface.addcontent('</table></form>')
16
17
18 actions={}
19
This page took 0.021025 seconds and 3 git commands to generate.