Helpviewer/Network/FtpAccessHandler.py

changeset 3002
6ffc581f00f1
parent 2403
e3d7a861547c
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
3001:3674ff5fa8f8 3002:6ffc581f00f1
29 29
30 def createRequest(self, op, request, outgoingData=None): 30 def createRequest(self, op, request, outgoingData=None):
31 """ 31 """
32 Protected method to create a request. 32 Protected method to create a request.
33 33
34 @param op the operation to be performed (QNetworkAccessManager.Operation) 34 @param op the operation to be performed
35 (QNetworkAccessManager.Operation)
35 @param request reference to the request object (QNetworkRequest) 36 @param request reference to the request object (QNetworkRequest)
36 @param outgoingData reference to an IODevice containing data to be sent 37 @param outgoingData reference to an IODevice containing data to be sent
37 (QIODevice) 38 (QIODevice)
38 @return reference to the created reply object (QNetworkReply) 39 @return reference to the created reply object (QNetworkReply)
39 """ 40 """
46 def setAuthenticator(self, realm, authenticator): 47 def setAuthenticator(self, realm, authenticator):
47 """ 48 """
48 Public method to add or change an authenticator in our cache. 49 Public method to add or change an authenticator in our cache.
49 50
50 @param realm name of the realm the authenticator belongs to (string) 51 @param realm name of the realm the authenticator belongs to (string)
51 @param authenticator authenticator to add to the cache (QAuthenticator). 52 @param authenticator authenticator to add to the cache
52 If it is None, the entry will be deleted from the cache. 53 (QAuthenticator). If it is None, the entry will be deleted from
54 the cache.
53 """ 55 """
54 if realm: 56 if realm:
55 if authenticator: 57 if authenticator:
56 self.__authenticatorCache[realm] = authenticator 58 self.__authenticatorCache[realm] = authenticator
57 else: 59 else:

eric ide

mercurial