rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
def __init__(self, banTime, verbose = False):
def __init__(self, banTime, logSys):
def __init__(self, banTime, verbose = False): self.banTime = banTime self.verbose = verbose
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
self.verbose = verbose
self.logSys = logSys
def __init__(self, banTime, verbose = False): self.banTime = banTime self.verbose = verbose
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
def addBanIP(self, ip):
def addBanIP(self, ip, debug):
def addBanIP(self, ip): if not self.inBanList(ip): self.banList[ip] = time.time() self.executeCmd(self.banIP(ip)) else: if self.verbose: print ip, "already in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
self.executeCmd(self.banIP(ip))
self.executeCmd(self.banIP(ip), debug)
def addBanIP(self, ip): if not self.inBanList(ip): self.banList[ip] = time.time() self.executeCmd(self.banIP(ip)) else: if self.verbose: print ip, "already in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
if self.verbose: print ip, "already in ban list"
self.logSys.info(ip+" already in ban list")
def addBanIP(self, ip): if not self.inBanList(ip): self.banList[ip] = time.time() self.executeCmd(self.banIP(ip)) else: if self.verbose: print ip, "already in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
def delBanIP(self, ip):
def delBanIP(self, ip, debug):
def delBanIP(self, ip): if self.inBanList(ip): del self.banList[ip] self.executeCmd(self.unBanIP(ip)) else: if self.verbose: print ip, "not in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
self.executeCmd(self.unBanIP(ip))
self.executeCmd(self.unBanIP(ip), debug)
def delBanIP(self, ip): if self.inBanList(ip): del self.banList[ip] self.executeCmd(self.unBanIP(ip)) else: if self.verbose: print ip, "not in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
if self.verbose: print ip, "not in ban list"
self.logSys.info(ip+" not in ban list")
def delBanIP(self, ip): if self.inBanList(ip): del self.banList[ip] self.executeCmd(self.unBanIP(ip)) else: if self.verbose: print ip, "not in ban list"
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
def checkForUnBan(self):
def checkForUnBan(self, debug):
def checkForUnBan(self): """ Check for user to remove from ban list. """ banListTemp = self.banList.copy() iterBanList = banListTemp.iteritems() for i in range(len(self.banList)): element = iterBanList.next() ip = element[0] btime = element[1] if btime < time.time()-self.banTime: self.delBanIP(ip) if self.verbose: prin...
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
self.delBanIP(ip) if self.verbose: print '`->', time.time()
self.delBanIP(ip, debug)
def checkForUnBan(self): """ Check for user to remove from ban list. """ banListTemp = self.banList.copy() iterBanList = banListTemp.iteritems() for i in range(len(self.banList)): element = iterBanList.next() ip = element[0] btime = element[1] if btime < time.time()-self.banTime: self.delBanIP(ip) if self.verbose: prin...
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
def flushBanList(self):
def flushBanList(self, debug):
def flushBanList(self): iterBanList = self.banList.iteritems() for i in range(len(self.banList)): element = iterBanList.next() ip = element[0] self.delBanIP(ip)
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
self.delBanIP(ip)
self.delBanIP(ip, debug)
def flushBanList(self): iterBanList = self.banList.iteritems() for i in range(len(self.banList)): element = iterBanList.next() ip = element[0] self.delBanIP(ip)
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
def executeCmd(self, cmd): if self.verbose: print cmd return
def executeCmd(self, cmd, debug): self.logSys.debug(cmd) if not debug: return os.system(cmd) else: return None
def executeCmd(self, cmd): if self.verbose: print cmd return #os.system(cmd)
c286d568555896e33cade457d870630e35ea16c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c286d568555896e33cade457d870630e35ea16c4/firewall.py
fileHandler = open(lockfile, mode='w') pid = os.getpid() fileHandler.write(`pid`+'\n') fileHandler.close() logSys.debug("Created PID lock ("+`pid`+") in "+lockfile)
def checkForPID(lockfile): """ Checks for running Fail2Ban. Returns the current PID if Fail2Ban is running or False if no instance found. """ try: fileHandler = open(lockfile) pid = fileHandler.readline() return pid except IOError: fileHandler = open(lockfile, mode='w') pid = os.getpid() fileHandler.write(`pid`+'\n') ...
3d9318ad3e1882a02b9345dcae1459934585b793 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/3d9318ad3e1882a02b9345dcae1459934585b793/fail2ban.py
return None
return []
def textToDns(text): """ Search for possible DNS in an arbitrary text. """ match = re.findall("\w*\.\w*\.\w*", text) if match: return match else: return None
36571c2ba9cd7e75c39df53215f6ed61e4250898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/36571c2ba9cd7e75c39df53215f6ed61e4250898/dns.py
return None
return []
def searchIP(text): """ Search if an IP address if directly available and return it. """ match = re.findall("(?:\d{1,3}\.){3}\d{1,3}", text) if match: return match else: return None
36571c2ba9cd7e75c39df53215f6ed61e4250898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/36571c2ba9cd7e75c39df53215f6ed61e4250898/dns.py
if plainIP: for element in plainIP: ipList.append(element)
for element in plainIP: ipList.append(element)
def textToIp(text): """ Return the IP of DNS found in a given text. """ ipList = list() # Search for plain IP plainIP = searchIP(text) if plainIP: for element in plainIP: ipList.append(element) else: # Try to get IP from possible DNS dnsList = textToDns(text) for element in dnsList: dns = dnsToIp(element) for e in dns:...
36571c2ba9cd7e75c39df53215f6ed61e4250898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/36571c2ba9cd7e75c39df53215f6ed61e4250898/dns.py
match = re.findall("\w*\.\w*\.\w*", text)
match = re.findall("\S*\.\w*\.\w*", text)
def textToDns(text): """ Search for possible DNS in an arbitrary text. """ match = re.findall("\w*\.\w*\.\w*", text) if match: return match else: return []
a4ff90cd0a1e0ed90d343b7fd09c39d06dc9e06b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/a4ff90cd0a1e0ed90d343b7fd09c39d06dc9e06b/dns.py
def read(self, filename):
def read(self, FILENAME):
def read(self, filename): global basedir basename = basedir + filename logSys.debug("Reading " + basename) bConf = basename + ".conf" bLocal = basename + ".local" if os.path.exists(bConf) or os.path.exists(bLocal): SafeConfigParser.read(self, [bConf, bLocal]) return True else: logSys.error(bConf + " and " + bLocal + " ...
91b1053c01ba27a6986de0f40109b631df1af15d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/91b1053c01ba27a6986de0f40109b631df1af15d/configreader.py
self.logSys.debug("Log rotation detected")
self.logSys.debug("Log rotation detected for " + self.logPath)
def setFilePos(self, file): """ Sets the file position. We must take care of log file rotation and reset the position to 0 in that case. Use the log message timestamp in order to detect this. """ line = file.readline() if self.lastDate < self.getTime(line): self.logSys.debug("Date " + `self.lastDate` + " is " + "smalle...
6f6742266c57d0ad83146b06b3e39c6964091d20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/6f6742266c57d0ad83146b06b3e39c6964091d20/logreader.py
self.logSys.debug("Setting file position to " + `self.lastPos`)
self.logSys.debug("Setting file position to " + `self.lastPos` + " for " + self.logPath)
def setFilePos(self, file): """ Sets the file position. We must take care of log file rotation and reset the position to 0 in that case. Use the log message timestamp in order to detect this. """ line = file.readline() if self.lastDate < self.getTime(line): self.logSys.debug("Date " + `self.lastDate` + " is " + "smalle...
6f6742266c57d0ad83146b06b3e39c6964091d20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/6f6742266c57d0ad83146b06b3e39c6964091d20/logreader.py
iterBanList = self.banList.iteritems()
banListTemp = self.banList.copy() iterBanList = banListTemp.iteritems()
def flushBanList(self, debug): """ Flushes the ban list and of course the firewall rules. Called when fail2ban exits. """ iterBanList = self.banList.iteritems() for i in range(len(self.banList)): element = iterBanList.next() ip = element[0] self.delBanIP(ip, debug)
e339a487519f1e0a8fff9648ef1763df8905502a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/e339a487519f1e0a8fff9648ef1763df8905502a/firewall.py
logSys.warn("[%s] Ban %s" % self.jail.getName(), aInfo["ip"])
logSys.warn("[%s] Ban %s" % (self.jail.getName(), aInfo["ip"]))
def __checkBan(self): ticket = self.jail.getFailTicket() if ticket != False: aInfo = dict() bTicket = BanManager.createBanTicket(ticket) aInfo["ip"] = bTicket.getIP() aInfo["failures"] = bTicket.getAttempt() logSys.warn("[%s] Ban %s" % self.jail.getName(), aInfo["ip"]) for action in self.__actions: action.execActionBan...
85293c63e419c4477454e8952242dd34c6bb7fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/85293c63e419c4477454e8952242dd34c6bb7fb8/actions.py
logSys.warn("[%s] Unban %s" % self.jail.getName(), aInfo["ip"])
logSys.warn("[%s] Unban %s" % (self.jail.getName(), aInfo["ip"]))
def __checkUnBan(self): for ticket in self.__banManager.unBanList(time.time()): aInfo = dict() aInfo["ip"] = ticket.getIP() logSys.warn("[%s] Unban %s" % self.jail.getName(), aInfo["ip"]) for action in self.__actions: action.execActionUnban(aInfo)
85293c63e419c4477454e8952242dd34c6bb7fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/85293c63e419c4477454e8952242dd34c6bb7fb8/actions.py
logSys.warn("[%s] Unban %s" % self.jail.getName(), aInfo["ip"])
logSys.warn("[%s] Unban %s" % (self.jail.getName(), aInfo["ip"]))
def __flushBan(self): logSys.debug("Flush ban list") for ticket in self.__banManager.flushBanList(): aInfo = dict() aInfo["ip"] = ticket.getIP() logSys.warn("[%s] Unban %s" % self.jail.getName(), aInfo["ip"]) for action in self.__actions: action.execActionUnban(aInfo)
85293c63e419c4477454e8952242dd34c6bb7fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/85293c63e419c4477454e8952242dd34c6bb7fb8/actions.py
print lastDate print lineDate
def __setFilePos(self): line = self.__crtHandler.readline() lastDate = self.__lastDate[self.__crtFilename] lineDate = self.dateDetector.getUnixTime(line) print lastDate print lineDate if lastDate < lineDate: logSys.debug("Date " + `lastDate` + " is smaller than " + `lineDate`) logSys.debug("Log rotation detected for " ...
2c737f77f15f54341f21bde3c83a4b5d13ad0a8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/2c737f77f15f54341f21bde3c83a4b5d13ad0a8f/filter.py
print "fail2ban [-h][-v][-b]"
print "fail2ban [-h][-v][-b][-d][-f <pwdfail file>][-l <log file>]"
def usage(): print "fail2ban [-h][-v][-b]" sys.exit(0)
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
os.chdir("/")
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
os.open("/tmp/fail2ban.log", os.O_CREAT|os.O_APPEND|os.O_RDWR) os.open("/tmp/fail2ban.log", os.O_CREAT|os.O_APPEND|os.O_RDWR)
os.open("/dev/null", os.O_RDWR) os.open("/dev/null", os.O_RDWR)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
optList, args = getopt.getopt(sys.argv[1:], 'hvb')
optList, args = getopt.getopt(sys.argv[1:], 'hvbdf:l:')
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
verbose = False
debug = False logFilePath = "/var/log/pwdfail/current"
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
verbose = True
logSys.set_loglevel(log4py.LOGLEVEL_VERBOSE)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
print "Unable to start daemon"
logSys.error("Unable to start daemon")
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
print "You must be root."
logSys.error("You must be root") if not debug: sys.exit(-1)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
fireWall = Iptables(600, verbose = verbose) logFile = Metalog("./log-test/test", 600, verbose = verbose)
fireWall = Iptables(600, logSys) logFile = Metalog(logFilePath, logSys, 600)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
fireWall.checkForUnBan()
fireWall.checkForUnBan(debug)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
fireWall.addBanIP(element[0])
fireWall.addBanIP(element[0], debug)
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
print 'Restoring iptables...' fireWall.flushBanList() print 'Exiting...'
logSys.info("Restoring iptables...") fireWall.flushBanList(debug) logSys.info("Exiting...")
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
8eb470019c3884af2f9196a149974f0fd91270e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/8eb470019c3884af2f9196a149974f0fd91270e1/fail2ban.py
print " -d start in debug mode"
def dispUsage(): """ Prints Fail2Ban command line options and exits """ print "Usage: "+sys.argv[0]+" [OPTIONS]" print print "Fail2Ban v"+version+" reads log file that contains password failure report" print "and bans the corresponding IP addresses using firewall rules." print print " -b start in background" p...
1044b82e128fefa83c480587a01fe49498b2350b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/1044b82e128fefa83c480587a01fe49498b2350b/fail2ban.py
self.ssock.setblocking(True)
self.ssock.settimeout(1)
def initialize(self, force = False): # Remove socket if os.path.exists(SSocket.SOCKET_FILE): logSys.error("Fail2ban seems to be already running") if force: logSys.warn("Forcing execution of the server") os.remove(SSocket.SOCKET_FILE) else: raise SSocketErrorException("Server already running") # Create an INET, STREAMin...
068dea8971ac2f35cc25e9e50e49b6a39eae653f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/068dea8971ac2f35cc25e9e50e49b6a39eae653f/ssocket.py
(csock, address) = self.ssock.accept() thread = SocketWorker(csock, self.transmit) thread.start()
try: (csock, address) = self.ssock.accept() thread = SocketWorker(csock, self.transmit) thread.start() except socket.timeout: pass
def run(self): self.isRunning = True while self.isRunning: # TODO Fix shutdown. A new request is required because accept() # is blocking. (csock, address) = self.ssock.accept() thread = SocketWorker(csock, self.transmit) thread.start() self.ssock.close() # Remove socket if os.path.exists(SSocket.SOCKET_FILE): logSys.de...
068dea8971ac2f35cc25e9e50e49b6a39eae653f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/068dea8971ac2f35cc25e9e50e49b6a39eae653f/ssocket.py
print DNSUtils.ipCRE
def searchIP(text): """ Search if an IP address if directly available and return it. """ print DNSUtils.ipCRE match = DNSUtils.ipCRE.match(text) if match: return match else: return None
1fd2071cd8e7157cb7b04ef06da165d304cfcad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/1fd2071cd8e7157cb7b04ef06da165d304cfcad5/filter.py
if isValidIP(element): ipList.append(element)
plainIPStr = plainIP.group(0) if DNSUtils.isValidIP(plainIPStr): ipList.append(plainIPStr)
def textToIp(text): """ Return the IP of DNS found in a given text. """ ipList = list() # Search for plain IP plainIP = DNSUtils.searchIP(text) if not plainIP == None: if isValidIP(element): ipList.append(element) if not ipList: # Try to get IP from possible DNS dnsList = DNSUtils.textToDns(text) if not dnsList == None...
1fd2071cd8e7157cb7b04ef06da165d304cfcad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/1fd2071cd8e7157cb7b04ef06da165d304cfcad5/filter.py
dnsList = DNSUtils.textToDns(text) if not dnsList == None: dns = DNSUtils.dnsToIp(element) for e in dns:
dns = DNSUtils.textToDns(text) if not dns == None: ip = DNSUtils.dnsToIp(dns.group(0)) for e in ip:
def textToIp(text): """ Return the IP of DNS found in a given text. """ ipList = list() # Search for plain IP plainIP = DNSUtils.searchIP(text) if not plainIP == None: if isValidIP(element): ipList.append(element) if not ipList: # Try to get IP from possible DNS dnsList = DNSUtils.textToDns(text) if not dnsList == None...
1fd2071cd8e7157cb7b04ef06da165d304cfcad5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/1fd2071cd8e7157cb7b04ef06da165d304cfcad5/filter.py
match = re.findall("\S*\.\w*\.\w*", text)
match = re.findall("(?:(?:\w|-)+\.){2,}\w+", text)
def textToDns(text): """ Search for possible DNS in an arbitrary text. """ match = re.findall("\S*\.\w*\.\w*", text) if match: return match else: return []
51f1dcee55cf2d48bdea05435cd042c888028400 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/51f1dcee55cf2d48bdea05435cd042c888028400/dns.py
if element[1][0] >= retryAllowed:
if element[1][0] >= conf["maxretry"]:
def createDaemon(): """Detach a process from the controlling terminal and run it in the background as a daemon. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 """ try: # Fork a child process so the parent can exit. This will return control # to the command line or shell. This is required so that the...
c7513aba776e81737efbadc07e1f086ace07332e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c7513aba776e81737efbadc07e1f086ace07332e/fail2ban.py
return os.kill(pid, 2)
try: return os.kill(pid, 2) except OSError: logSys.error("Can not kill process " + `pid` + ". Please check that " + "Fail2Ban is not running and remove the file " + "'/tmp/fail2ban.pid'")
def killPID(pid): """ Kills the process with the given PID using the INT signal (same effect as <ctrl>+<c>). """ return os.kill(pid, 2)
77dc3e426117c05e12a8277a176e22af1426ba00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/77dc3e426117c05e12a8277a176e22af1426ba00/fail2ban.py
def __init__(self, interface, *attributes) : self.interface = interface self.attributes = attributes
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def __init__(self, interface, *attributes) : self.interface = interface self.attributes = attributes
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def __init__(self, interface, *attributes) : self.interface = interface self.attributes = attributes
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def __init__(self, object, *descriptions) : """ Init with a list of modification descriptions. >>> from zope.interface import implements, Interface, Attribute >>> class ISample(Interface) : ... field = Attribute("A test field") >>> class Sample(object) : ... implements(ISample) >>> obj = Sample() >>> obj.fiel...
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def __init__(self, object, *descriptions) : """ Init with a list of modification descriptions. >>> from zope.interface import implements, Interface, Attribute >>> class ISample(Interface) : ... field = Attribute("A test field") >>> class Sample(object) : ... implements(ISample) >>> obj = Sample() >>> obj.fiel...
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def __init__(self, object, *descriptions) : """ Init with a list of modification descriptions. >>> from zope.interface import implements, Interface, Attribute >>> class ISample(Interface) : ... field = Attribute("A test field") >>> class Sample(object) : ... implements(ISample) >>> obj = Sample() >>> obj.fiel...
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
super(ObjectModifiedEvent, self).__init__(object)
super(ObjectModifiedEvent, self).__init__(object)
def __init__(self, object, *descriptions) : """ Init with a list of modification descriptions. >>> from zope.interface import implements, Interface, Attribute >>> class ISample(Interface) : ... field = Attribute("A test field") >>> class Sample(object) : ... implements(ISample) >>> obj = Sample() >>> obj.fiel...
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def __init__(self, object, *descriptions) : """ Init with a list of modification descriptions. >>> from zope.interface import implements, Interface, Attribute >>> class ISample(Interface) : ... field = Attribute("A test field") >>> class Sample(object) : ... implements(ISample) >>> obj = Sample() >>> obj.fiel...
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
def test_annotations(): """Broken objects may have attribute annotations If they do, we can access them:: >>> from zope.app.broken.broken import Broken >>> b = Broken() >>> b.__setstate__({'__annotations__': {'foo.bar': 42}}) >>> b['foo.bar'] 42 >>> b.get('foo.bar') 42 Missing keys are handled as expected: >>> b['f...
172f66f4e2124e9a53941d9451a8f270eee47a07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9538/172f66f4e2124e9a53941d9451a8f270eee47a07/tests.py
_checkLoadAttr(self, 'schema')
self._checkLoadAttr('schema')
def beforeChange_schema(self): """Load the values of fields from according to fields_map if present. Each key in fields_map is a field in the old schema and each value is a field in the new schema. If fields_map isn't a mapping, each filed in the old schema will be migrated into the new schema. Obeys field modes for ...
29f608a66186912fdfcc62fb4a54e18604734ee5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11946/29f608a66186912fdfcc62fb4a54e18604734ee5/archetypes.py
self.old._v_is_cp = is_cp
self.new._v_is_cp = is_cp
def migrate_references(self): """Migrate references annotation.""" # Restor the references annotation if hasattr(self, REFERENCE_ANNOTATION): at_references = getattr(self, REFERENCE_ANNOTATION) setattr(self.new, REFERENCE_ANNOTATION, at_references) # Run the reference manage_afterAdd to transition all copied # referenc...
531c7221b337eb84d54242448030a9c4585d2fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11946/531c7221b337eb84d54242448030a9c4585d2fd1/archetypes.py
del self.old._v_is_cp
del self.new._v_is_cp
def migrate_references(self): """Migrate references annotation.""" # Restor the references annotation if hasattr(self, REFERENCE_ANNOTATION): at_references = getattr(self, REFERENCE_ANNOTATION) setattr(self.new, REFERENCE_ANNOTATION, at_references) # Run the reference manage_afterAdd to transition all copied # referenc...
531c7221b337eb84d54242448030a9c4585d2fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11946/531c7221b337eb84d54242448030a9c4585d2fd1/archetypes.py
def get_ole_storages(filename): STORAGES = {}
def get_ole_streams(filename): STREAMS = {}
def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se...
50506ab4ab0f3db0f5f4c8eea2882e767c8a6430 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/50506ab4ab0f3db0f5f4c8eea2882e767c8a6430/compdoc-dumper.py
STORAGES[name] = stream_data
STREAMS[name] = stream_data
def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se...
50506ab4ab0f3db0f5f4c8eea2882e767c8a6430 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/50506ab4ab0f3db0f5f4c8eea2882e767c8a6430/compdoc-dumper.py
return STORAGES
return STREAMS
def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se...
50506ab4ab0f3db0f5f4c8eea2882e767c8a6430 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/50506ab4ab0f3db0f5f4c8eea2882e767c8a6430/compdoc-dumper.py
def get_ole_storages(filename): STORAGES = {}
def get_ole_streams(filename): STREAMS = {}
def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se...
604b7d991025ea2b02ef62785f1b5964f6911ac0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/604b7d991025ea2b02ef62785f1b5964f6911ac0/compdoc-dumper.py
STORAGES[name] = stream_data
STREAMS[name] = stream_data
def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se...
604b7d991025ea2b02ef62785f1b5964f6911ac0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/604b7d991025ea2b02ef62785f1b5964f6911ac0/compdoc-dumper.py
return STORAGES
return STREAMS
def get_ole_storages(filename): STORAGES = {} doc = file(filename, 'rb').read() header, data = doc[0:512], doc[512:] del doc doc_magic = header[0:8] file_uid = header[8:24] rev_num = header[24:26] ver_num = header[26:28] byte_order = header[28:30] log_se...
604b7d991025ea2b02ef62785f1b5964f6911ac0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11459/604b7d991025ea2b02ef62785f1b5964f6911ac0/compdoc-dumper.py
def kill(pid, sig): """Send the signal sig to the remote process. """ # open the remote process # XXX why we need PROCESS_VM_OPERATION? flags = PROCESS_CREATE_THREAD | PROCESS_VM_OPERATION hProcess = OpenProcess(flags, False, pid) # obtain the address of the raise method in the MSVCR71 module pfn = GetRemoteProcAddre...
0b9e32a04a0f819c093730f81483452338f310b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2218/0b9e32a04a0f819c093730f81483452338f310b7/pykill32.py
rlib_add_datasource_postgre = _rlib.rlib_add_datasource_postgre
rlib_add_datasource_postgres = _rlib.rlib_add_datasource_postgres
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
3f55c03840207c00453d533c38114df0b9008096 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/3f55c03840207c00453d533c38114df0b9008096/rlib.py
rlib_set_database_encoding = _librlib.rlib_set_database_encoding
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
7b56c048b782b32a6b49f4641de695a91d594c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/7b56c048b782b32a6b49f4641de695a91d594c87/librlib.py
rlib_set_parameter_encoding = _librlib.rlib_set_parameter_encoding rlib_set_encodings = _librlib.rlib_set_encodings
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
7b56c048b782b32a6b49f4641de695a91d594c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/7b56c048b782b32a6b49f4641de695a91d594c87/librlib.py
rlib_init = _librlib.rlib_init
rlib_init = _rlib.rlib_init
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_datasource_mysql = _librlib.rlib_add_datasource_mysql
rlib_add_datasource_mysql = _rlib.rlib_add_datasource_mysql
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_datasource_postgre = _librlib.rlib_add_datasource_postgre
rlib_add_datasource_postgre = _rlib.rlib_add_datasource_postgre
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_datasource_odbc = _librlib.rlib_add_datasource_odbc
rlib_add_datasource_odbc = _rlib.rlib_add_datasource_odbc
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_datasource_xml = _librlib.rlib_add_datasource_xml
rlib_add_datasource_xml = _rlib.rlib_add_datasource_xml
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_query_as = _librlib.rlib_add_query_as
rlib_add_query_as = _rlib.rlib_add_query_as
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_report = _librlib.rlib_add_report
rlib_add_report = _rlib.rlib_add_report
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_report_from_buffer = _librlib.rlib_add_report_from_buffer
rlib_add_report_from_buffer = _rlib.rlib_add_report_from_buffer
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_execute = _librlib.rlib_execute
rlib_execute = _rlib.rlib_execute
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_get_content_type_as_text = _librlib.rlib_get_content_type_as_text
rlib_get_content_type_as_text = _rlib.rlib_get_content_type_as_text
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_spool = _librlib.rlib_spool
rlib_spool = _rlib.rlib_spool
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_set_output_format = _librlib.rlib_set_output_format
rlib_set_output_format = _rlib.rlib_set_output_format
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_resultset_follower_n_to_1 = _librlib.rlib_add_resultset_follower_n_to_1
rlib_add_resultset_follower_n_to_1 = _rlib.rlib_add_resultset_follower_n_to_1
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_resultset_follower = _librlib.rlib_add_resultset_follower
rlib_add_resultset_follower = _rlib.rlib_add_resultset_follower
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_set_output_format_from_text = _librlib.rlib_set_output_format_from_text
rlib_set_output_format_from_text = _rlib.rlib_set_output_format_from_text
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_get_output = _librlib.rlib_get_output
rlib_get_output = _rlib.rlib_get_output
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_get_output_length = _librlib.rlib_get_output_length
rlib_get_output_length = _rlib.rlib_get_output_length
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_signal_connect = _librlib.rlib_signal_connect
rlib_signal_connect = _rlib.rlib_signal_connect
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_signal_connect_string = _librlib.rlib_signal_connect_string
rlib_signal_connect_string = _rlib.rlib_signal_connect_string
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_query_refresh = _librlib.rlib_query_refresh
rlib_query_refresh = _rlib.rlib_query_refresh
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_add_parameter = _librlib.rlib_add_parameter
rlib_add_parameter = _rlib.rlib_add_parameter
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_set_locale = _librlib.rlib_set_locale
rlib_set_locale = _rlib.rlib_set_locale
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_set_output_parameter = _librlib.rlib_set_output_parameter
rlib_set_output_parameter = _rlib.rlib_set_output_parameter
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_set_output_encoding = _librlib.rlib_set_output_encoding
rlib_set_output_encoding = _rlib.rlib_set_output_encoding
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_set_datasource_encoding = _librlib.rlib_set_datasource_encoding
rlib_set_datasource_encoding = _rlib.rlib_set_datasource_encoding
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_free = _librlib.rlib_free
rlib_free = _rlib.rlib_free
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_version = _librlib.rlib_version
rlib_version = _rlib.rlib_version
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_graph_add_bg_region = _librlib.rlib_graph_add_bg_region
rlib_graph_add_bg_region = _rlib.rlib_graph_add_bg_region
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
rlib_graph_clear_bg_region = _librlib.rlib_graph_clear_bg_region
rlib_graph_clear_bg_region = _rlib.rlib_graph_clear_bg_region
def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name
5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py
def __convertPropertyValueList( self, aValueList ): aList = list()
cfc1bbc79633e26076852490cc272f39e269e63f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/cfc1bbc79633e26076852490cc272f39e269e63f/Session.py
if aSystemFullID[SYSTEMPATH] == '/':
if aSystemFullID[SYSTEMPATH] == '':
def createSystemPathFromFullID( aSystemFullID ): if aSystemFullID[SYSTEMPATH] == '/': if aSystemFullID[ID] == '/': aNewSystemPath = '/' else: aNewSystemPath = '/' + aSystemFullID[ID] else: aNewSystemPath = aSystemFullID[SYSTEMPATH] + '/' +\ aSystemFullID[ID] return aNewSystemPath
6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/6b30f7dc6ef4cfaea084d0ba92002c4bbaecb83d/ecssupport.py