diff --git a/mysecrets.py b/mysecrets.py index a9f3675..0eae16e 100755 --- a/mysecrets.py +++ b/mysecrets.py @@ -7,7 +7,7 @@ from web import form from urllib import urlopen from urlparse import urlparse from contextlib import closing - +import time db = web.database(dbn='mysql', user='mysecrets', pw='horsebatteries', db='mysecrets') @@ -100,13 +100,15 @@ class index: body = "id: " + i.id + " deleted." if not result: - body = "id: " + i.id + " not deleted." - + body = "id: " + i.id + " not deleted." + return render.page('Deleted ' + i.id, body) if method == 'new': + start = time.time() + i = web.input() f = create() @@ -140,9 +142,12 @@ class index: body.append('') body.append('') - body.append('') + body.append('') body.append('') + body.append('

Rendered in '+str(round(time.time()-start,3))+' seconds

') + return render.page(domain,'\n'.join(body)) @@ -177,16 +182,20 @@ class index: s.innerHTML='\ .myS{\ font-family:Georgia;\ - color:#000;\ + color:#3C3C3C;\ text-align:center;\ text-size:14px;\ }\ + .myS iframe {\ + border: none;\ + }\ .myS p {\ + color:#3C3C3C;\ padding:10px;\ }\ .myS a {\ text-decoration:none;\ - color:#00F;\ + color:#3C3C3C;\ }\ .myS a:hover{\ text-decoration:underline;\ @@ -229,7 +238,7 @@ class index: e=document.createElement('p'); e.className+='myS'; e.onclick=function(){cleanHouse();}; - e.innerHTML='Close'; + e.innerHTML='Close'; i.appendChild(e); })();''' diff --git a/templates/page.html b/templates/page.html index 124a208..b9cab14 100644 --- a/templates/page.html +++ b/templates/page.html @@ -60,6 +60,7 @@ $def with (title, body) font-family: Georgia; padding: 5px; font-size: 12px; + color: #3C3C3C; } h1 { font-size: 1.3em;