def __init__(self, filename): log.debug(self.__class__.__name__ + " initialized") self.filename = filename self.reportText = None Action.__init__(self)
def __init__(self, zipFilename, location): log.debug(self.__class__.__name__ + " initialized") self.zipFilename = zipFilename self.location = location Action.__init__(self)
def __init__(self, scriptFilename, connectionString): log.debug(self.__class__.__name__ + " initialized") self.scriptFilename = scriptFilename self.connectionString = connectionString Action.__init__(self)
def __init__(self, src, dst): log.debug(self.__class__.__name__ + " initialized") self.src = src self.dst = dst Action.__init__(self)
def __init__(self, doReport, undoReport): log.debug(self.__class__.__name__ + " initialized") self.doReport = doReport self.undoReport = undoReport self.reportTxt = "" Action.__init__(self)
def __init__(self, doCommand, undoCommand): log.debug(self.__class__.__name__ + " initialized") self.doCommand = doCommand self.undoCommand = undoCommand Action.__init__(self)
def __init__(self, compressedFilename, compressionType, location): log.debug(self.__class__.__name__ + " initialized") self.compressedFilename = compressedFilename self.compressionType = compressionType self.location = location Action.__init__(self)
def __init__(self, path): log.debug(self.__class__.__name__ + " initialized") self.path = path self.tempLocation = generateRandomDirectoryUnderPath(scriptGlobals.workingDir) createDirectoriesRecursively(self.tempLocation) Action.__init__(self)
def __init__(self, moduleName, valueFilename, templateFilename): log.debug(self.__class__.__name__ + " initialized") self.moduleName = moduleName self.valueFilename = valueFilename self.templateFilename = templateFilename Action.__init__(self)
def __init__(self, scriptText, connectionString, doCommit, headersOff): log.debug(self.__class__.__name__ + " initialized") self.scriptText = scriptText self.connectionString = connectionString self.doCommit = doCommit self.headersOff = headersOff Action.__init__(self)
def __init__(self, path, mode): log.debug(self.__class__.__name__ + " initialized") self.path = path self.doMode = mode self.undoMode = getPathPermissions(path) Action.__init__(self)
def __init__(self, script, username, password, connectionString): log.debug(self.__class__.__name__ + " initialized") self.script = script self.username = username self.password = password self.connectionString = connectionString Action.__init__(self)
def __init__(self, path, uid, gid): log.debug(self.__class__.__name__ + " initialized") self.path = path self.uid = uid self.gid = gid self.undoStatObject = os.stat(path) Action.__init__(self)
def __init__(self, lineToFind, lineToAppend, fileName, tmpFilename, appendStyle): log.debug(self.__class__.__name__ + " initialized") self.lineToFind = lineToFind self.lineToAppend = lineToAppend self.fileName = fileName self.tmpFilename = tmpFilename self.appendStyle = appendStyle Action.__init__(self)
def __init__(self, sender, receivers, subject, message, smtpServer, smtpPort): log.debug(self.__class__.__name__ + " initialized") self.sender = sender self.receivers = receivers self.subject = subject self.message = message self.smtpServer = smtpServer self.smtpPort = smtpPort Action.__init__(self)
def __init__(self, src, dst): log.debug(self.__class__.__name__ + " initialized") self.src = src self.dst = dst self.srcDirname = os.path.dirname(src) self.dstDirname = os.path.dirname(dst) self.srcBasename = os.path.basename(src) self.dstBasename = os.path.basename(dst) self.isSrcDir = os.path.isdir(src) self.isDstDir = os.path.isdir(dst) self.isSrcExistent = os.path.exists(src) self.isDstExistent = os.path.exists(dst) Action.__init__(self)
def __init__(self, src, dst): log.debug(self.__class__.__name__ + " initialized") self.src = src self.dst = dst self.srcDirname = os.path.dirname(src) self.dstDirname = os.path.dirname(dst) self.srcBasename = os.path.basename(src) self.dstBasename = os.path.basename(dst) self.isSrcFile = os.path.isfile(src) self.isDstFile = os.path.isfile(dst) Action.__init__(self)
def action(self, action): return Action(self, action)
def __init__(self, path): log.debug(self.__class__.__name__ + " initialized") self.path = path Action.__init__(self)
def __init__(self, cronJobLine): log.debug(self.__class__.__name__ + " initialized") self.cronJobLine = cronJobLine Action.__init__(self)
from actions.Action import Action parser = Action.actionParser() items = parser.parse(filename="config/Actions.json") print(items)
def start(self): self.availableActions = Action.actionParser().parse( filename="config/Action_elementari_2.json") self.currentActionIndex = -1 self.nextAction()