Пытаюсь тут себе кой чего наваять.. Осталась только красота, но столкнулся с проблемкой, не работают стили :(
Настройка апача на хост
<VirtualHost *:80>
....
<Directory /.../bug/www>
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
Order Deny,Allow
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /.../bug/cgi-bin/
<Directory "/.../bug/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
....
</VirtualHost>
но тот же index.py не кушает его, в логах тишина, firebug ругается так:
<link type="text/css" rel="stylesheet" href="/style.css">
1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2<html><head>
3<title>404 Not Found</title>
4</head><body>
5<h1>Not Found</h1>
6<p>The requested URL /style.css was not found on this server.</p>
7<hr>
8<address>Apache Server at bug Port 80</address>
9</body></html>
</link>
def index():
main_page = '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\
<html>\n\
<head>\n\
<title>Bug-trace</title>\n\
<link href="/style.css" rel="stylesheet" type="text/css" />\n\
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n\
</head>\n\
<body>\n\
<div class="main">\n\
<div class="result"></div>\n\
<div class="content">\n\
<form name="admin_login_form" method="POST" action="cgi-bin/authorize.py" class="content">\n\
Email<br><input type="text" maxlength="200" size="20" name="email"><br><br>\n\
Pass<br><input type="password" maxlength="200" size="20" name="password"><br><br>\n\
<input type="submit" value="go">\n\
</form>\n\
</div>\n\
</div>\n\
</body>\n\
</html>\n\
'''
return main_page