Package Products :: Package ZenHub
[hide private]
[frames] | no frames]

Source Code for Package Products.ZenHub

 1  ############################################################################## 
 2  #  
 3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved. 
 4  #  
 5  # This content is made available according to terms specified in 
 6  # License.zenoss under the directory where your Zenoss product is installed. 
 7  #  
 8  ############################################################################## 
 9   
10   
11  """Turn ZenHub into a module""" 
12   
13  XML_RPC_PORT = 8081 
14  PB_PORT = 8789 
15  ZENHUB_ZENRENDER = "zenhubrender" 
16   
17 -def installReactor():
18 # Tries to install epoll first, then poll, and if neither are 19 # available, the default select reactor will install when 20 # twisted.internet.reactor is imported. 21 try: 22 from select import epoll 23 from twisted.internet import epollreactor 24 epollreactor.install() 25 except ImportError: 26 try: 27 from select import poll 28 from twisted.internet import pollreactor 29 pollreactor.install() 30 except ImportError: 31 pass
32