# Path: canary/qx_defs.py
# class CanaryPublisher (SessionPublisher):
# 
#     def __init__ (self, *args, **kwargs):
#         self.logger = logging.getLogger(str(self.__class__))
#         try:
#             self.context = kwargs['context']
#             self.logger.info('Found context')
#         except KeyError:
#             self.context = canary.context.Context()
#             self.logger.info('Started new context')
#             
#         self.config = self.context.config
#         
#         SessionPublisher.__init__(self, root_namespace='canary.ui', 
#             session_mgr=SqlSessionManager(self.context), config=self.config)
# 
#         self.setup_logs()


import os
from quixote import enable_ptl
from scgi.quixote_handler import QuixoteHandler, main
from canary.qx_defs import CanaryPublisher
#!/usr/bin/env python



enable_ptl()
os.environ['GCJ_PROPERTIES'] = "disableLuceneLocks=true"



class CanaryHandler (QuixoteHandler):


# Path: canary/qx_defs.py
# class CanaryPublisher (SessionPublisher):
# 
#     def __init__ (self, *args, **kwargs):
#         self.logger = logging.getLogger(str(self.__class__))
#         try:
#             self.context = kwargs['context']
#             self.logger.info('Found context')
#         except KeyError:
#             self.context = canary.context.Context()
#             self.logger.info('Started new context')
#             
#         self.config = self.context.config
#         
#         SessionPublisher.__init__(self, root_namespace='canary.ui', 
#             session_mgr=SqlSessionManager(self.context), config=self.config)
# 
#         self.setup_logs()


# Path: bin/scgi_handler.py
import os
from quixote import enable_ptl
from scgi.quixote_handler import QuixoteHandler, main
from canary.qx_defs import CanaryPublisher

#!/usr/bin/env python



enable_ptl()
os.environ['GCJ_PROPERTIES'] = "disableLuceneLocks=true"



class CanaryHandler (QuixoteHandler):


    publisher_class = CanaryPublisher