Sat, 01 Oct 2011 17:20:29 +0200
Fixed an issue in the install and uninstall scripts.
(transplanted from 8c9af7608afaa98608e72a74d0485197dd0503c4)
# -*- coding: utf-8 -*- # Copyright (c) 2009 - 2011 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing a disk cache respecting privacy. """ from PyQt4.QtWebKit import QWebSettings from PyQt4.QtNetwork import QNetworkDiskCache class NetworkDiskCache(QNetworkDiskCache): """ Class implementing a disk cache respecting privacy. """ def prepare(self, metaData): """ Public method to prepare the disk cache file. @param metaData meta data for a URL (QNetworkCacheMetaData) @return reference to the IO device (QIODevice) """ if QWebSettings.globalSettings().testAttribute( QWebSettings.PrivateBrowsingEnabled): return None return QNetworkDiskCache.prepare(self, metaData)