/[shmookey]/portconf/sidebar.py


UCC Code Repository

Contents of /portconf/sidebar.py

Parent Directory Parent Directory | Revision Log Revision Log


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

1 #!/usr/bin/python
2
3 import sys
4
5 print "Content-Type: text/html"
6 print
7
8 try:
9 from Config import libPaths, dbName, dbUser, dbPass, dbAddress, dbPort
10 except:
11 print '<dt><a href="index.html">Navigation</a></dt>'
12 print '<dd><ul>'
13 print '<li>Install</li>'
14 print '<li><a href="update-install.py?action=uninstall">Uninstall</a></li>'
15 print '</ul></dd>'
16 sys.exit ()
17
18 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