def __init__(self, framework, cookieJar):
        BaseNetworkAccessManager.__init__(self, framework)
        self.framework = framework
        if cookieJar is not None:
            self.setCookieJar(cookieJar)
            cookieJar.setParent(None)

        #        QObject.connect(self, SIGNAL('authenticationRequired(QNetworkReply, QAuthenticator)'), self.handle_authenticationRequired)
        self.proxyAuthenticationRequired.connect(self.handle_proxyAuthenticationRequired)
    def __init__(self, framework, cookieJar):
        BaseNetworkAccessManager.__init__(self, framework)
        self.framework = framework

        self.networkCache = InMemoryCache(self.framework, self)
        self.setCache(self.networkCache)
        if cookieJar is not None:
            self.setCookieJar(cookieJar)
            cookieJar.setParent(None)

        self.request_lookaside = {}
        self.Data = None
        self.cursor = None
        self.framework.subscribe_database_events(self.db_attach, self.db_detach)
    def __init__(self, framework, cookieJar):
        BaseNetworkAccessManager.__init__(self, framework)
        self.framework = framework

        # TODO: must use DB cache manager for efficiency!
        self.networkCache = InMemoryCache(self.framework, self)
        self.setCache(self.networkCache)
        if cookieJar is not None:
            self.setCookieJar(cookieJar)
            cookieJar.setParent(None)

        self.originalRequestIds = []

        self.Data = None
        self.cursor = None
        self.framework.subscribe_database_events(self.db_attach, self.db_detach)
Esempio n. 4
0
    def __init__(self, framework, cookieJar):
        BaseNetworkAccessManager.__init__(self, framework)
        self.framework = framework

        # TODO: must use DB cache manager for efficiency!
        self.networkCache = InMemoryCache(self.framework, self)
        self.setCache(self.networkCache)
        if cookieJar is not None:
            self.setCookieJar(cookieJar)
            cookieJar.setParent(None)

        self.originalRequestIds = []

        self.Data = None
        self.cursor = None
        self.framework.subscribe_database_events(self.db_attach,
                                                 self.db_detach)
    def __init__(self, framework, cookieJar):
        BaseNetworkAccessManager.__init__(self, framework)
        self.framework = framework

        QObject.connect(self, SIGNAL('finished(QNetworkReply *)'), self.handle_finished)

        # TODO: integrate cache with DB where appropriate !
#        self.networkCache = NetworkCacheLogger(self.framework, InMemoryCache(self.framework, self), self)
        self.networkCache = InMemoryCache(self.framework, self)
        self.setCache(self.networkCache)

        if cookieJar is not None:
            self.setCookieJar(cookieJar)
            cookieJar.setParent(None)

        self.__blackholed = True
        self.__has_setNetworkAccessible = hasattr(QtNetwork.QNetworkAccessManager, 'setNetworkAccessible')

        self.Data = None
        self.cursor = None
        self.framework.subscribe_database_events(self.db_attach, self.db_detach)
        self.framework.subscribe_raft_config_updated(self.handle_raft_config_updated)