aboutsummaryrefslogtreecommitdiffstats
path: root/src/acit/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/acit/web.py')
-rw-r--r--src/acit/web.py29
1 files changed, 20 insertions, 9 deletions
diff --git a/src/acit/web.py b/src/acit/web.py
index 0410f24..a0b6a8e 100644
--- a/src/acit/web.py
+++ b/src/acit/web.py
@@ -38,15 +38,14 @@ class Server():
@cherrypy.expose
- def index(self,quote="nothing"):
- import threading
- self.site.update_trackers()
- cherrypy.log("Listing threads:")
- for thread in threading.enumerate():
- cherrypy.log(repr(thread))
- cherrypy.log("Threads holding an IMAP connection:")
- for thread in self.imap.mbpool.holding_threads:
- cherrypy.log(repr(thread))
+ def index(self):
+ #import threading
+ #cherrypy.log("Listing threads:")
+ #for thread in threading.enumerate():
+ # cherrypy.log(repr(thread))
+ #cherrypy.log("Threads holding an IMAP connection:")
+ #for thread in self.imap.mbpool.holding_threads:
+ # cherrypy.log(repr(thread))
from os import getenv
raise cherrypy.HTTPRedirect(getenv("ACIT_HOME_REDIRECT","about:blank"),303)
@@ -70,3 +69,15 @@ class Server():
return page
+class SecureServer():
+ def __init__(self,server:Server):
+ self.site=server.site
+ self.dbpool=server.dbpool
+ self.imap=server.imap
+
+ @cherrypy.expose
+ def index(self):
+ return "Secure."
+ #raise cherrypy.HTTPRedirect("/",303)
+
+