예제 #1
0
    def __init__(self, taskUuid, folderPath, encZipPath, passwd, workingPath):
        self.taskUuid = taskUuid
        self.folderPath = folderPath
        self.encZipPath = encZipPath
        self.passwd = passwd
        self.workingPath = workingPath
        self.syncer = collectionSync.collectionSync(taskUuid, folderPath,
                                    encZipPath, passwd, workingPath)
        #Register to folder scanner

        proxy = xmlrpclib.ServerProxy(gMonitorRpcServerUrl)
        self.encZipPathMonitorUrl = proxy.register(self.encZipPath, gSyncRpcServerUrl)
        self.folderPathMonitorUrl = proxy.register(self.folderPath, gSyncRpcServerUrl)
        xmlRpcServerWithWorkerThreadBase.serverThread.__init__(self)
예제 #2
0
 def __init__(self, taskUuid, folderPath, encZipPath, passwd, workingPath):
     xmlRpcServerWithWorkerThreadBase.serverThread.__init__(self)
     self.taskUuid = taskUuid
     self.folderPath = folderPath
     self.encZipPath = encZipPath
     self.passwd = passwd
     self.workingPath = workingPath
     self.syncer = collectionSync.collectionSync(taskUuid, folderPath,
                                 encZipPath, passwd, workingPath)
     #Register to folder scanner
     monitorRpcServerUrl = 'http://localhost:8806/xmlrpc'
     syncRpcServerUrl = 'http://localhost:8807/xmlrpc'
     proxy = xmlrpclib.ServerProxy(monitorRpcServerUrl)
     self.encZipPathMonitorUrl = proxy.register(self.encZipPath, syncRpcServerUrl)
     self.folderPathMonitorUrl = proxy.register(self.folderPath, syncRpcServerUrl)