rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Deleting owl from list of known owls.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | def Pong(self, sPong): """Pong owl""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Deleting owl from list of known owls.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | def Request(self, sRequest): """send Request""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Deleting owl from list of known owls.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | def Answer(self, sAnswer): """send Answer""" |
script =""" <script language="JavaScript"> <!-- Hide from older browsers function changeconfig(section, option, document) { var loc = "http://my.iowl.net/command?action=updateconfig§ion=" + section + "&option=" + option var value = document.form.Wert.value loc = loc + "&value=" + value window.location.href = loc; }... | sContent = "" | def ParseConfig(self): """Read configfile and build configuration page |
pManager.manager.DebugStr('cConfigureGrabber '+ __version__ +': reading section "'+sect+'".', 4) | def ParseConfig(self): """Read configfile and build configuration page | |
pManager.manager.DebugStr('cConfigureGrabber '+ __version__ +': Option "'+opt+'", value "'+ value, 4) | def ParseConfig(self): """Read configfile and build configuration page | |
<form name="%s"> | <form name="%s" method="get" action="http://my.iowl.net/command?"> | def ParseConfig(self): """Read configfile and build configuration page |
<td><input name="Wert" size=20 maxlength=40 value="%s"></td> <td><input type="button" name="change" value="change" onClick="javascript:changeconfig(\'%s\', \'%s\', this)"></td> | <input type="hidden" name="action" value="updateconfig"> <input type="hidden" name="section" value="%s"> <input type="hidden" name="option" value="%s"> <td><input name="value" size=20 maxlength=40 value="%s"></td> <td><input type="submit" value=" Absenden "></td> | def ParseConfig(self): """Read configfile and build configuration page |
</tr>""" %(sFormName, opt, value, sect, opt) | </tr>""" %(sFormName, opt, sect, opt, value) | def ParseConfig(self): """Read configfile and build configuration page |
self.FinishAnswer(reqAttributes) | self.FinishAnswer(reqAttributes, cNetPackage) | def Answer(self, cNetPackage): """Send an Answer to it's destination owl |
def FinishAnswer(self, reqAttributes): | def FinishAnswer(self, reqAttributes, cNetPackage): | def FinishAnswer(self, reqAttributes): """Finish handling of incoming answer |
if (pManager.manager.bIsRunning == 0): | if (pManager.manager.IsRunning() == 0): | def OnTaskbarNotify(self, hwnd, msg, wparam, lparam): if lparam==win32con.WM_LBUTTONUP: pass |
self.DebugStr('pManager '+ __version__ +': Basedir is "'+self.sBaseDir+'".') | self.DebugStr('pManager '+ __version__ +': Basedir is "'+self.sBaseDir+'".', 2) | def __init__(self, sConfigFileName): """Constructor.""" |
self.DebugStr('pManager '+ __version__ +': Starting iOwl...') | self.DebugStr('pManager '+ __version__ +': Starting iOwl...', 0) | def StartOwl(self): """Start the iOwl. |
self.DebugStr('pManager '+ __version__ +': Info -- parsing config file.') | self.DebugStr('pManager '+ __version__ +': Info -- parsing config file.', 0) | def SetConfig(self): """Reads configfile and calls for each entry in each section interface.SetParam. |
self.DebugStr('pManager '+ __version__ +': Setting Options for package "'+sect+'".', 2) | def SetConfig(self): """Reads configfile and calls for each entry in each section interface.SetParam. | |
self.dPackages[sect].SetParam(opt, self.Config.get(sect,opt)) | value = self.Config.get(sect,opt) self.DebugStr('pManager '+ __version__ +': Setting Option "'+opt+'" with value "'+ value +'".', 2) self.dPackages[sect].SetParam(opt, value) | def SetConfig(self): """Reads configfile and calls for each entry in each section interface.SetParam. |
self.DebugStr('pManager '+ __version__ +': Warning: Skipping unknown section "'+sect+'" in configfile "'+self.sConfigFileName+'"') self.DebugStr('pManager '+ __version__ +': Info -- finished parsing config file.') | self.DebugStr('pManager '+ __version__ +': Warning: Skipping unknown section "'+sect+'" in configfile "'+self.sConfigFileName+'"', 0) self.DebugStr('pManager '+ __version__ +': Info -- finished parsing config file.', 0) | def SetConfig(self): """Reads configfile and calls for each entry in each section interface.SetParam. |
debuglevel -- Debug Level ("none", "console", "logfile", "both") | debugmode -- "none", "console", "logfile", "both" debuglevel -- 0 to 5 | def SetParam(self, sOption, sValue): """ Accept settings |
self.DebugStr('pManager '+ __version__ +': Warning: Trying to set unknown parameter "'+sOption+'".') | self.DebugStr('pManager '+ __version__ +': Warning: Trying to set unknown parameter "'+sOption+'".', 0) | def SetParam(self, sOption, sValue): """ Accept settings |
self.DebugStr('pManager '+ __version__ +': Setting Options for package "'+sSection+'".', 2) | def UpdateConfig(self, sSection, sOption, sValue): """Update configuration of running iOwl. | |
self.DebugStr('pManager '+ __version__ +': Updating Configfile ['+sSection+','+sOption+','+sValue+'].') | self.DebugStr('pManager '+ __version__ +': Updating Configfile ['+sSection+','+sOption+','+sValue+'].', 2) | def SaveParam(self, sSection, sOption, sValue): """Save given data in configfile |
self.DebugStr('pManager '+ __version__ +': iOwl shut down. Now exiting.') | self.DebugStr('pManager '+ __version__ +': iOwl shut down. Now exiting.', 0) | def StartPackages(self): """Activate all packages |
self.DebugStr('pManager '+ __version__ +': Setting own IP to ' + str(ownIP)+ '.') | self.DebugStr('pManager '+ __version__ +': Setting own IP to ' + str(ownIP)+ '.', 1) | def SetOwnIP(self, ownIP): """Set Own IP""" self.DebugStr('pManager '+ __version__ +': Setting own IP to ' + str(ownIP)+ '.') self.sOwnIP = ownIP |
del self.dRequests[cNetPackage.GetID()] | self.RouteLock.acquire() try: del self.dRequests[cNetPackage.GetID()] except: pass self.RouteLock.release() | def Answer(self, cNetPackage): """Send an Answer to it's destination owl |
XXX - Check for possible multithread-problems -> do i need mutex? | def CleanOldRequests(self): """Clean requests from expired entrys | |
self.ClickTitle = 'Unknown Title' | self.ClickTitle = 'No Title' | def handle(self): """Get called by cProxyCore for each request""" |
pass | return | def handle(self): """Get called by cProxyCore for each request""" |
iBufferSize = 4096 | iBufferSize = 40 | def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline() |
data = server.read(iBufferSize) | data = server.read() | def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline() |
sTitle = '' | sTitle = u'' | def ExtractTitle(self, data): """look if there's a title tag inside data |
return 'Unknown Title' | return 'No Title' def FilterUmlauts(self, s): """a quick hack to get rid of umlauts...""" dict={'':'ae', '':'oe', '':'ue', '':'ss'} for key in dict.keys(): s = s.replace(key, dict[key]) return s | def ExtractTitle(self, data): """look if there's a title tag inside data |
SocketServer.ThreadingTCPServer.handler_error(request, client_adress) | SocketServer.ThreadingTCPServer.handle_error(request, client_adress) | def handle_error(self, request, client_address): """Catch and ignore SystemExit Exception. |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Warning: Can\'t resolve entryowl %s.' %(sValue, )) | pManager.manager.DebugStr('cNetManager '+ __version__ +': Warning: Can\'t resolve entryowl %s.' %(sValue, ), 0) | def SetParam(self, sOption, sValue): """Accept Config |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Warnig: change of listenport currently only takes effect after restart of iOwl.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Warnig: change of listenport currently only takes effect after restart of iOwl.', 0) | def SetParam(self, sOption, sValue): """Accept Config |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Warning: unknown option %s' %(sOption, )) | pManager.manager.DebugStr('cNetManager '+ __version__ +': Warning: unknown option %s' %(sOption, ), 0) | def SetParam(self, sOption, sValue): """Accept Config |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Starting connection.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Starting connection.', 0) | def StartConnection(self): """Start network package |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Can\'t open owlfile.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Can\'t open owlfile.', 1) | def ReadCache(self): """Read cached neighbourowls from file""" |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Reading cached neighbourowls.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Reading cached neighbourowls.', 0) | def ReadCache(self): """Read cached neighbourowls from file""" |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Read %s neigbourowls from cache.' % str(iOwls)) | pManager.manager.DebugStr('cNetManager '+ __version__ +': Read %s neigbourowls from cache.' % str(iOwls), 1) | def ReadCache(self): """Read cached neighbourowls from file""" |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Cant open owlfile for writing.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Cant open owlfile for caching owls.', 0) | def WriteCache(self): """Write neighbourowls to file""" |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Caching neighbourowls.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Caching neighbourowls.', 0) | def WriteCache(self): """Write neighbourowls to file""" |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Saved %s neighbourowls in cache.' % str(iOwls)) | pManager.manager.DebugStr('cNetManager '+ __version__ +': Saved %s neighbourowls in cache.' % str(iOwls), 1) | def WriteCache(self): """Write neighbourowls to file""" |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Incoming Ping from %s:%s.' %(str(cPing.GetOriginator()[0]), str(cPing.GetOriginator()[1])), 2) | def HandlePing(self, sPing): """Handle incoming Ping | |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Distributing Ping.', 3) | def HandlePing(self, sPing): """Handle incoming Ping | |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Could not generate Pong.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Could not generate Pong.', 2) | def HandlePing(self, sPing): """Handle incoming Ping |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Answering with Pong.', 3) | def HandlePing(self, sPing): """Handle incoming Ping | |
pManager.manager.DebugStr('cNetManager '+ __version__ +': cOwlManager did not accept ping. Probably a vicious circle or corrupt cDOM', 2) | def HandlePing(self, sPing): """Handle incoming Ping | |
pManager.manager.DebugStr('pNetwork '+ __version__ +': Unhandled error in thread HandlePing(): Type: '+str(eType)+', value: '+str(eValue)) pManager.manager.DebugStr('pNetwork '+ __version__ +': Traceback:\n'+str(tb)) | pManager.manager.DebugStr('pNetwork '+ __version__ +': Unhandled error in thread HandlePing(): Type: '+str(eType)+', value: '+str(eValue), 2) pManager.manager.DebugStr('pNetwork '+ __version__ +': Traceback:\n'+str(tb), 2) | def HandlePing(self, sPing): """Handle incoming Ping |
pManager.manager.DebugStr('cOwlManager '+ __version__ +': request from %s:%s' %(str(OrigOwl.GetIP()), str(OrigOwl.GetPort()))) | def Distribute(self, cNetPackage): """Pass cNetPackage to all Neighbourowls. | |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Incoming Pong...') | def HandlePong(self, sPong): """Handle incoming Pong | |
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Getting Chunk '+str(iCount)) | def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline() | |
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Extracting Title!') | def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline() | |
pManager.manager.DebugStr('pGui '+ __version__ +': Shutting down.') | pManager.manager.DebugStr('pGui '+ __version__ +': Shutting down.', 1) | def Shutdown(self): """Stop working |
{'ip':self.sOrigIP, 'port':str(self.iOrigPort) | {'ip':self.sAnswIP, 'port':str(self.iAnswPort) | def GetDOM(self): """Generate cDOM from internal representation |
self.lSessions.append(self.Session) | if self.Session.GetClicksCount() > 0: self.lSessions.append(self.Session) else: pManager.manager.DebugStr('pClickstreamInterface '+ __version__ +': Old session is empty.') | def StartNewSession(self): """Starting new session.""" |
"""Store previous command. | def StoreCommand(self, sCommand, dParams): """Store previous command. | def SetParam(self, sOption, sValue): """Accept settings |
Stores previous command to redisplay the current page when switching from active to inactive and vice versa """ def StoreCommand(self, sCommand, dParams): | Stores previous command to redisplay the current page when switching from active to inactive and vice versa """ | def SetParam(self, sOption, sValue): """Accept settings |
def ReexecuteCommand(self): """Reexecute command when clicking deactivate/activate.""" sTmpPreviousCommand = self.sPreviousCommand dTmpPreviousParams = self.dPreviousParams result = self.ExecuteCommand(self.sPreviousCommand, self.dPreviousParams) self.sPreviousCommand = sTmpPreviousCommand self.dPreviousParams = dTmpPr... | def StoreCommand(self, sCommand, dParams): self.sPreviousCommand = sCommand self.dPreviousParams = dParams | |
return self.ExecuteCommand(self.sPreviousCommand, self.dPreviousParams) | return self.ReexecuteCommand() | def ExecuteCommand(self, sCommand, dParams): # execute command if sCommand == 'showhelp': self.StoreCommand(sCommand, dParams) # return help page return self.cHelpDataGrabber.GetHtml(dParams) elif sCommand == 'showabout': self.StoreCommand(sCommand, dParams) # return about page return self.cAboutDataGrabber.GetHtml(dPa... |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Warning: Can\'t resolve %s.' %(sValue, )) | pManager.manager.DebugStr('cNetManager '+ __version__ +': Warning: Can\'t resolve entryowl %s.' %(sValue, )) | def SetParam(self, sOption, sValue): """Accept Config |
tOwl = self.cOwlManager.GetSingleOwl() pManager.manager.SetOwnIP(self.GetOwnIP(tOwl[0], tOwl[1])) | pManager.manager.SetOwnIP(self.GetOwnIP()) | def StartConnection(self): """Start connection with the iOwl network |
def GetOwnIP(self, sIP, iPort): | def GetOwnIP(self): | def GetOwnIP(self, sIP, iPort): """Determine own IP |
Try to connect a socket to entryowl and call socket.getsockname() to | Try to connect a socket to www.iowl.net and call socket.getsockname() to | def GetOwnIP(self, sIP, iPort): """Determine own IP |
s.connect((sIP, iPort)) | s.connect(('www.iowl.net', 80)) | def GetOwnIP(self, sIP, iPort): """Determine own IP |
sOwnIP, iOwnPort = s.getsockname() | sOwnIP, iPort = s.getsockname() | def GetOwnIP(self, sIP, iPort): """Determine own IP |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Got '+str(len(lOwls))+' owls from website.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Got '+str(len(lOwls))+' IPs from website. Now validating...') | def GetWebOwls(self): """Connect to url and get a csv of owls |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Detected stale owl. Discarding...') | def GetWebOwls(self): """Connect to url and get a csv of owls | |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Added owl.') | def GetWebOwls(self): """Connect to url and get a csv of owls | |
self.LogFileHandle.write(message+'\n') | self.LogFileHandle.write(message + os.linesep) | def DebugStr(self, sDebugInfo, iLevel=0): """Handles Debug-Output from all classes. |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': PING for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).') pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of PING: '+sPing) | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': PING for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).', 2) pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of PING: '+sPing, 3) | def Ping(self, sPing): """Ping owl""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.', 2) | def Ping(self, sPing): """Ping owl""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': PONG for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).') pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of PONG: '+sPong) | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': PONG for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).', 2) pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of PONG: '+sPong, 3) | def Pong(self, sPong): """Pong owl""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.', 2) | def Pong(self, sPong): """Pong owl""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': REQUEST for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).') pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of REQUEST: '+sRequest) | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': REQUEST for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).', 2) pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of REQUEST: '+sRequest, 3) | def Request(self, sRequest): """send Request""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.', 2) | def Request(self, sRequest): """send Request""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': ANSWER for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).') pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of ANSWER: '+sANSWER) | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': ANSWER for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).', 2) pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of ANSWER: '+sAnswer, 3) | def Answer(self, sAnswer): """send Answer""" |
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.') | pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Cant do RPC for '+str(self.IP)+':'+str(self.iPort)+'. Discarding owl.', 2) | def Answer(self, sAnswer): """send Answer""" |
tKillUrls = '?', '@' | tKillUrls = '?', '@', '=' | def ClickIsValid(self, click): """Verify given click |
tKillTypes = '.jpg', '.gif' | tKillTypes = '.jpg', '.gif', '.css' | def ClickIsValid(self, click): """Verify given click |
pManager.manager.DebugStr('timer '+ __version__ +': Watchdog '+ str(self.id)+' resetted.') | def reset(self): """Reset thread""" pManager.manager.DebugStr('timer '+ __version__ +': Watchdog '+ str(self.id)+' resetted.') self.starttime = time.time() | |
file.close() | def Open(self, sFileName): """Load xml file into dom. | |
request = '%s %s HTTP/1.0\r\n%s\r\n%s' % (method, path, | try: request = '%s %s HTTP/1.0\r\n%s\r\n%s' % (method, path, | def ParseRequest(self): """Parse incoming request""" |
pManager.manager.DebugStr('pRecommendationInterface '+ __version__ +': Now sending single request to network. Id: '+str(sId)) sId = pNetInf.SendRequest(el) | pManager.manager.DebugStr('pRecommendationInterface '+ __version__ +': Now sending single request to network.') sId = pNetIntf.SendRequest(el) | def GenerateSingleRequest(self, sUrl): """Generate a request and send it to network. |
self.dRules[sID] = [] | self.dRules[sId] = [] | def GenerateSingleRequest(self, sUrl): """Generate a request and send it to network. |
pManager.manager.DebugStr('pRecommendationInterface '+ __version__ +': Now sending session request to network. Id: '+str(sId)) sId = pNetInf.SendRequest(el) | pManager.manager.DebugStr('pRecommendationInterface '+ __version__ +': Now sending session request to network.') sId = pNetIntf.SendRequest(el) | def GenerateSessionRequest(self): """Generate a request and send it to network. |
self.dRules[sID] = [] | self.dRules[sId] = [] | def GenerateSessionRequest(self): """Generate a request and send it to network. |
if len(seld.dRules[sId]) > 0: | if len(self.dRules[sId]) > 0: | def GetRecommendations(self, sId): """Return a list with recommendations. |
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Warning: Received NetPackage with different network version.') | pManager.manager.DebugStr('cOwlManager '+ __version__ +': Warning: Received NetPackage with different network version. Mine: '+str(self.cNetManager.sProtocol)+', other: '+str(cNetPackage.GetProtocolVersion())) | def IsValidPackage(self, cNetPackage): """Check if a network package is valid |
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Handle()') | def handle(self): """Get called by cProxyCore for each request""" | |
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Ignoring Socketerror...') | def handle(self): """Get called by cProxyCore for each request""" | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | def ValidateOwls(self): """Validate list of neighbour owls | |
self.Server = SocketServer.ThreadingTCPServer((self.sListenAt, self.iProxyPort), cProxyHandler.cProxyHandler) pManager.manager.DebugStr('pProxyCore '+ __version__ +': Listening at '+self.sListenAt+'.', 3) | def StartListen(self): """Start proxy | |
self.Server = MyThreadingTCPServer((self.sListenAt, self.iProxyPort), cProxyHandler.cProxyHandler) pManager.manager.DebugStr('pProxyCore '+ __version__ +': Listening at '+self.sListenAt+'.', 3) | def StartListen(self): """Start proxy | |
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Distributing to: '+str(distri)+'.') | pManager.manager.DebugStr('cOwlManager '+ __version__ +': Distributing to '+str(len(distri))+' owls.') | def Distribute(self, cNetPackage): """Pass cNetPackage to all Neighbourowls. |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Getting WebOwls.') | pManager.manager.DebugStr('cNetManager '+ __version__ +': Not enough owls in cache. Getting some more owls from website.') | def GetWebOwls(self): """Connect to url and get a csv of owls |
pManager.manager.DebugStr('cNetManager '+ __version__ +': WebOwls: '+str(sList)) | def GetWebOwls(self): """Connect to url and get a csv of owls | |
pManager.manager.DebugStr('cNetManager '+ __version__ +': Added owl.') | def GetWebOwls(self): """Connect to url and get a csv of owls | |
self.Server = SocketServer.ThreadingTCPServer((self.sListenAt, self.iProxyPort), cProxyHandler.cProxyHandler) | self.Server = MyThreadingTCPServer((self.sListenAt, self.iProxyPort), cProxyHandler.cProxyHandler) | def StartListen(self): """Start proxy |
pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Extracting Title.', 3) | pManager.manager.DebugStr('cProxyHandler '+ __version__ +': Extracting Title.', 5) | def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.