def cookiesForUrl(self, url): """ Public method to get the cookies for a URL. @param url URL to get cookies for (QUrl) @return list of cookies (list of QNetworkCookie) """ if not self.__loaded: self.load() globalSettings = QWebSettings.globalSettings() if globalSettings.testAttribute(QWebSettings.PrivateBrowsingEnabled): return [] return QNetworkCookieJar.cookiesForUrl(self, url)
def cookiesForUrl(self, url): return QNetworkCookieJar.cookiesForUrl(self, url)
def cookiesForUrl(self, qurl): cookies = QNetworkCookieJar.cookiesForUrl(self, qurl) #for i in cookies: # info = get_cookie_info(i) # print "------------>> %(domain)s " % info return cookies