blob: fd70d0da2eeb0cfb593a3c6ddb2b0fdb41dc3724 (
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
|
import cherrypy
from .web import Server
from .imapplugin import ImapPlugin
from .db import DBPoolManager
from .types import Site
def run():
db=DBPoolManager(cherrypy.engine)
db.subscribe()
site=Site(idbpool=db)
imap=ImapPlugin(
cherrypy.engine, dbpool=db, site=site
)
imap.subscribe()
server=Server(dbpool=db)
cherrypy.quickstart(server)
if __name__=="__main__":
run()
|