/[shmookey]/portconf/index.py


UCC Code Repository

Diff of /portconf/index.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 61 by shmookey, Fri Mar 21 04:18:15 2008 UTC revision 62 by shmookey, Sat Mar 22 06:58:14 2008 UTC
# Line 1  Line 1 
1  #!/usr/bin/python  #!/usr/bin/python
2    
3  import cgi, cgitb, sys, re, pexpect  import sys, re, pexpect
4    
5  cgitb.enable ()  try:
6  import pycisco          from Config import libPaths, dbName, dbUser, dbPass, dbAddress, dbPort
7    except ImportError:
8            import install
9            sys.exit ()
10    
11    import cgi, cgitb
12    cgitb.enable ()
13  print "Content-Type: text/html"  print "Content-Type: text/html"
14  print  print
15    
16    import pycisco
17    
18  print "<h2>Port Administration Configuration Tool</h2>"  print "<h2>Port Administration Configuration Tool</h2>"
19    
20  form = cgi.FieldStorage ()  form = cgi.FieldStorage ()

Legend:
Removed from v.61  
changed lines
  Added in v.62

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26