Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(26)  |  Derive(0)  |  Import(0)

src/b/a/BaiduYunPanPython-HEAD/lib/common/UServer.py   BaiduYunPanPython(Download)
    def startHandler(self, param):
        """start handler for actors"""
        logging.debug('[%s]: startHandler with parm %s', self.getName(), param);
 
        if param['name']:
            for w in watchpaths:
                self.watchHandler({'path': w, 'action': 'add'})
                logging.debug('[%s]: add watch path %s from configuration file', self.getName(), w)
 
        elif name == 'cloud':
            self.__startActors.append(self.cActor)
        else:
            logging.error('[%s]: startHandler with name %s error', self.getName(), param['name'])
            res = E_INVILD_PARAM
 
        return res, None
 
    def stopHandler(self, param):
        """stop handler for actors"""
        logging.debug('[%s]: stopHandler with parm %s', self.getName(), param);
                res = rmsg.body['result']
        else:
            logging.error('[%s]: stopHandler with name %s error', self.getName(), param['name'])
            res = E_INVILD_PARAM
 

src/b/a/BaiduYunPanPython-HEAD/lib/common/UCloudActor.py   BaiduYunPanPython(Download)
    def handleFileCreate(self, msg):
        """docstring for handleFileDelete"""
        logging.debug('[%s]: handleFileCreate: %s, watch dir %s', self.getName(), msg.body['path'], msg.body['watch_dir'])
 
        res = E_API_ERR
    def handleFileDelete(self, msg):
        """docstring for handleFileDelete"""
        logging.debug('[%s]: handleFileDelete: %s, watch dir %s', self.getName(), msg.body['path'], msg.body['watch_dir'])
 
        res = E_API_ERR
    def handleFileModify(self, msg):
        """docstring for handleFileModify"""
        logging.debug('[%s]: handleFileModify: %s, watch dir %s', self.getName(), msg.body['path'], msg.body['watch_dir'])
 
        res = E_API_ERR
    def handleFileMkdir(self, msg):
        """docstring for handleFileMkdir"""
        logging.debug('[%s]: handleFileMkdir: %s', self.getName(), msg.body['dir_path'])
        pass
 
    def handleFileList(self, msg):
        """docstring for handleFileList"""
        logging.debug('[%s]: handleFileList: %s', self.getName(), msg.body['path'])
        res = E_API_ERR
        d = ''

src/b/a/BaiduYunPanPython-HEAD/lib/common/UFSMonitor.py   BaiduYunPanPython(Download)
    def addWatch(self, path, mask=0):
        """add watch path"""
        #logging.debug('[%s]: add watch path %s mask %d', self.getName(), path, mask)
        logging.debug('[%s]: add watch path', self.getName())
 
    def rmWatch(self, path):
        """remove watch path"""
        logging.debug('[%s]: remove watch path %s', self.getName(), path)
 
        logging.debug('[%s]: notify file change: action=>%s, watch_dir=>%s, path=>%s, src_path=>%s, isdir=>%s',
                        self.getName(), ACTIONS_NAMES[action], watch_dir, path, src_path, isdir)
        msg.body = {'path': path, 'action': action, 'src_path': src_path, 'watch_dir': watch_dir, 'isdir': isdir}