]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- stub for proper handling of www functionality
authorMariusz Mazur <mmazur@pld-linux.org>
Sun, 16 Jan 2005 17:35:35 +0000 (17:35 +0000)
committerMariusz Mazur <mmazur@pld-linux.org>
Sun, 16 Jan 2005 17:35:35 +0000 (17:35 +0000)
Changed files:
    cgi-bin/index.py -> 1.4
    modules/wwwcmds.py -> 1.1

cgi-bin/index.py
modules/wwwcmds.py [new file with mode: 0644]

index aa24c323207ba103648d37005af58c237a1e0db1..208a66a91f81d033f017c7a89a5b6e386af6fae0 100755 (executable)
@@ -28,19 +28,10 @@ opts, cks = wwwiface.getopts()
 u=user.User(cks, opts)
 
 if u.loggedin:
-    from ftptree import FtpTree
-    import config
-    srctree=FtpTree(config.value['default_to'], loadall=True)
     wwwiface.addheader('Logged in: '+u.login)
     wwwiface.addmenu(file='loggedinmenu')
-    wwwiface.addcontent('<form action="index.py" method="post"><table border="1">')
-    wwwiface.addcontent('<tr><td>Mv</td><td>Package</td></tr>\n')
-    pkglist=srctree.keys()
-    pkglist.sort()
-    for pkg in pkglist:
-        wwwiface.addcontent('<tr><td><input type="checkbox"></td><td>'+srctree[pkg].name+'</td></tr>\n')
-    wwwiface.addcontent('<tr><td>&nbsp;</td><td><input type="submit" value="Move"></td></tr>')
-    wwwiface.addcontent('</table></form>')
+    import wwwcmds
+    wwwcmds.handlecmds(opts)
 else:
     wwwiface.addheader('Login form')
     wwwiface.addcontent(file='regform')
diff --git a/modules/wwwcmds.py b/modules/wwwcmds.py
new file mode 100644 (file)
index 0000000..8425474
--- /dev/null
@@ -0,0 +1,14 @@
+# vi: encoding=utf-8 ts=8 sts=4 sw=4 et
+
+import wwwiface
+
+
+def handlecmds(options):
+    if 'action' in options and options['action'] in actions:
+        pass
+    else:
+        pass
+
+
+actions={}
+
This page took 0.251543 seconds and 4 git commands to generate.