/[shmookey]/portconf/sidebar.py


UCC Code Repository

Contents of /portconf/sidebar.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (hide annotations) (download) (as text)
Tue May 13 06:08:21 2008 UTC (12 years, 8 months ago) by shmookey
File MIME type: text/x-python
File size: 726 byte(s)
still edging towards database integration

1 shmookey 53 #!/usr/bin/python
2    
3 shmookey 65 import sys
4 shmookey 53
5     print "Content-Type: text/html"
6     print
7    
8 shmookey 65 try:
9     from Config import libPaths, dbName, dbUser, dbPass, dbAddress, dbPort
10 shmookey 102 except:
11 shmookey 65 print '<dt><a href="index.html">Navigation</a></dt>'
12     print '<dd><ul>'
13     print '<li>Install</li>'
14 shmookey 102 print '<li><a href="update-install.py?action=uninstall">Uninstall</a></li>'
15 shmookey 65 print '</ul></dd>'
16     sys.exit ()
17    
18 shmookey 53 print '<dt><a href="index.html">Navigation</a></dt>'
19     print '<dd><ul>'
20     print '<li><a href="index.html">Main Menu</a></li>'
21     print '</ul></dd>'
22    
23     print '<dt><a href="/">Switches</a></dt>'
24    
25     print '<dd><ul>'
26     for switch in Switches.switches:
27     print '<li><a href="index.html?action=status&switch=' + switch + '">' + switch.split(".")[0] + '</a></li>'
28     print '</ul></dd>'

Properties

Name Value
svn:executable *

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26