def _windUp(self): self.qeTestModule = self._dbutil.getAppInfo('miniBrQEModule') from SambaTask import childTask task = childTask('addMiniBrQETestModule', 1) if os.name=="nt": commonProgramFilesPath = os.getenv("CommonProgramFiles") dest = os.path.abspath(os.path.join(commonProgramFilesPath, "Adobe/CS5ServiceManager\extensions\AdobeMiniBridge\modules")) else: dest = "TBD" if not os.path.exists(dest): #raise "The path %s is not existed" % dest os.makedirs(dest) task.addPara('sambaDomain', unicode(self._commonDomain, 'utf-8')) task.addPara('sambaUser', unicode(self._commonUser, 'utf-8')) task.addPara('sambaPsw', unicode(self._commonPassword, 'utf-8')) #task.targetFolder = dest task.addPara('Repository', dest) task.addPara('FolderPath', unicode(self.qeTestModule, 'utf-8')) task.run()
return True def _windUp(self): self.qeTestModule = self._dbutil.getAppInfo('miniBrQEModule') from SambaTask import childTask task = childTask('addMiniBrQETestModule', 1) if os.name=="nt": commonProgramFilesPath = os.getenv("CommonProgramFiles") dest = os.path.abspath(os.path.join(commonProgramFilesPath, "Adobe/CS5ServiceManager\extensions\AdobeMiniBridge\modules")) else: dest = "TBD" if not os.path.exists(dest): #raise "The path %s is not existed" % dest os.makedirs(dest) task.addPara('sambaDomain', unicode(self._commonDomain, 'utf-8')) task.addPara('sambaUser', unicode(self._commonUser, 'utf-8')) task.addPara('sambaPsw', unicode(self._commonPassword, 'utf-8')) #task.targetFolder = dest task.addPara('Repository', dest) task.addPara('FolderPath', unicode(self.qeTestModule, 'utf-8')) task.run() if __name__ == '__main__': o=childTask('MiniBrInstall', 1) o._windUp()
adobeCode = None for line in resFile: if re.search("\"AdobeCode\">{", line): #(f1,f2) = line.split('{') #(adobeCode,f4) = f2.split('}') adobeCode = re.sub(r'.*\"AdobeCode\">\s*\{([\w+|-]+)}.*', r'\1', line).rstrip() break; if not adobeCode: continue deploymentFileContent = re.sub(r'(.*)<Payload adobeCode=\"{' + adobeCode + '}\">\s*<Action>install</Action>\s*</Payload>(.*)', r'\1\2', deploymentFileContent) self._writeDeploymentXML(newDeploymentFile, deploymentFileContent) return newDeploymentFile def _windUp(self): #Install PS Plug-In super(childTask, self)._windUp() ##################This section is mainly for debug -- Begin ############################# if __name__ == '__main__': task = childTask('SuiteInstall', 1) task.addPara('installerType', 'RIBS') task.addPara('appName', 'Master Collection') task.addPara('appVer', 'CS6') task.addPara('appLang', 'en_US') task.addPara('appCertLevel', 'Not Tested') task.run() ##################This section is mainly for debug -- End #############################