/[shmookey]/portconf/index.py


UCC Code Repository

Diff of /portconf/index.py

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

revision 90 by shmookey, Mon May 5 07:35:40 2008 UTC revision 94 by shmookey, Wed May 7 07:44:48 2008 UTC
# Line 10  except: Line 10  except:
10          import install          import install
11          sys.exit ()          sys.exit ()
12    
13  for path in Config.libPaths: sys.path.append (path)  for path in libPaths: sys.path.append (path)
14    
15  try:  try:
16          import pycisco, pyaaa          import pycisco, pyaaa
# Line 23  import cgi, cgitb Line 23  import cgi, cgitb
23  cgitb.enable ()  cgitb.enable ()
24  print "Content-Type: text/html"  print "Content-Type: text/html"
25  print  print
26    print """
27    <!--#set var="TITLE" value="Port Administration Configuration Tool" -->
28    <!--#set var="SIDEBAR" value="../sidebar.py" -->
29    <!--#include virtual="includes/header.html" -->
30    """
31    
32    
33  import pycisco  import pycisco
34    
# Line 160  elif form["action"].value == "status": Line 166  elif form["action"].value == "status":
166          else:          else:
167                  ShowSwitchStatus (form["switch"].value)                  ShowSwitchStatus (form["switch"].value)
168    
169    print """<!--#include virtual="includes/footer.html" -->"""

Legend:
Removed from v.90  
changed lines
  Added in v.94

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26