4 |
|
from optparse import OptionParser |
5 |
|
import DLFCN |
6 |
|
sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) |
7 |
< |
from Applications import iovInspect, iovExport, globaltag,serviceMap |
7 |
> |
from Applications import iovInspect, iovExport, globaltag,serviceMap,luminosityApp |
8 |
|
from Common import config |
9 |
< |
from pluginCondDBPyInterface import * |
9 |
> |
#from pluginCondDBPyInterface import * |
10 |
|
os.environ["QUIET_ASSERT"]='yes' |
11 |
|
class Root(object): |
12 |
|
@cherrypy.expose |
48 |
|
# here for the time being |
49 |
|
self.__config=config.Config() |
50 |
|
self.__config.from_ini(os.path.join(self.__configdir,self.__appconfigfile)) |
51 |
– |
self.__authpath=self.__config.common.auth_path |
52 |
– |
#os.environ["CORAL_AUTH_PATH"] = self.__authpath |
53 |
– |
#print "auth path ", os.environ["CORAL_AUTH_PATH"] |
54 |
– |
# this one shall be alive all the time... |
55 |
– |
#self.__cmsframe = FWIncantation |
51 |
|
cherrypy.tree.mount(iovInspect.IOV(os.path.join(self.__configdir,self.__appconfigfile)),script_name='/iov') |
52 |
|
cherrypy.tree.mount(iovExport.IOV(os.path.join(self.__configdir,self.__appconfigfile)),script_name='/exportIov') |
53 |
|
cherrypy.tree.mount(serviceMap.serviceMap(os.path.join(self.__configdir,self.__detconfigfile)),script_name='/serviceMap') |
54 |
|
cherrypy.tree.mount(globaltag.GlobalTag(os.path.join(self.__configdir,self.__appconfigfile)),script_name='/globaltag') |
55 |
+ |
cherrypy.tree.mount(luminosityApp.lumi(os.path.join(self.__configdir,self.__appconfigfile)),script_name='/lumi') |
56 |
|
cherrypy.server.quickstart() |
57 |
|
cherrypy.engine.start() |
58 |
|
|