]> andersk Git - sql.git/blob - lib/python/mitsql/interface/__init__.py
backups: keep less monthlys
[sql.git] / lib / python / mitsql / interface / __init__.py
1 import templates
2
3 from cherrypy.process.plugins import DropPrivileges
4 class DropSock(DropPrivileges):
5     def start(self):
6         if cherrypy.server.socket_file:
7             import os
8             os.chown(cherrypy.server.socket_file, self.uid, self.gid)
9         DropPrivileges.start(self)
10     start.priority = 78
11 import cherrypy
12 DropSock(cherrypy.engine, uid='lighttpd', gid='apache').subscribe()
13
14 from handler import Root as _root
15 root = _root()
This page took 1.24224 seconds and 5 git commands to generate.