aboutsummaryrefslogtreecommitdiffstats
path: root/src/acit/__init__.py
blob: 11ec7c9a721c4643fc45474abecbd4a6013010f8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import cherrypy

from .web import Server

from .imapplugin import ImapPlugin
from .db import DBPoolManager
from .pagegenerator import Generator

from .types import Site

def run():
	db=DBPoolManager(cherrypy.engine)
	db.subscribe()
	site=Site(dbpool=db)
	imap=ImapPlugin(
		cherrypy.engine, dbpool=db, site=site
		)
	imap.subscribe()

	regen=Generator(cherrypy.engine,imap=imap,site=site,dbpool=db)
	regen.subscribe()


	server=Server(dbpool=db,site=site,imap=imap)
	cherrypy.quickstart(server)


if __name__=="__main__":
	run()