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 |
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 |
|
|
166 |
else: |
else: |
167 |
ShowSwitchStatus (form["switch"].value) |
ShowSwitchStatus (form["switch"].value) |
168 |
|
|
169 |
|
print """<!--#include virtual="includes/footer.html" -->""" |