def __init__(self, application):
        print "Initializing"
        JobSched.__init__(self)
        try:
            import imp
            config = imp.load_source('config',self.rel("config.py"))
        except:
            from collective.transcode.daemon import config
        self.config = {}
        self.config['profiles'] = eval(config.profiles)
        self.config['listen_host'] = config.listen_host
        self.config['listen_port'] = config.listen_port
        self.config['videofolder'] = config.videofolder
        self.config['secret'] = config.secret

        self.launchHttp(application)
        reactor.callInThread(self.run)
        print "Launched TranscodeDaemon scheduler thread...."
        
        # Comment out the following to enable a Twisted SSH Manhole for debugging
        """
Exemple #2
0
    def __init__(self, application):
        logging.basicConfig(level=logging.INFO)
        log.info("Initializing")
        JobSched.__init__(self)
        try:
            import imp
            config = imp.load_source('config', self.rel("config.py"))
        except:
            from collective.transcode.daemon import config
        self.config = {}
        self.config['profiles'] = eval(config.profiles)
        self.config['listen_host'] = config.listen_host
        self.config['listen_port'] = config.listen_port
        self.config['videofolder'] = config.videofolder
        self.config['secret'] = config.secret

        self.launchHttp(application)
        reactor.callInThread(self.run)
        log.info("Launched TranscodeDaemon scheduler thread....")

        # Comment out the following to enable a Twisted SSH Manhole for debugging
        """