diff -r ad7a6d699a0d -r 287a3ae95e00 src/eric7/WebBrowser/CookieJar/CookiesExceptionsDialog.py --- a/src/eric7/WebBrowser/CookieJar/CookiesExceptionsDialog.py Sun Jan 07 11:42:41 2024 +0100 +++ b/src/eric7/WebBrowser/CookieJar/CookiesExceptionsDialog.py Sun Jan 07 12:40:00 2024 +0100 @@ -91,9 +91,11 @@ """ Private slot to block cookies of a domain. """ - from .CookieJar import CookieJar + from .CookieJar import CookieExceptionRuleType - self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Block) + self.__exceptionsModel.addRule( + self.domainEdit.text(), CookieExceptionRuleType.Block + ) self.domainEdit.clear() @pyqtSlot() @@ -101,10 +103,10 @@ """ Private slot to allow cookies of a domain for the current session only. """ - from .CookieJar import CookieJar + from .CookieJar import CookieExceptionRuleType self.__exceptionsModel.addRule( - self.domainEdit.text(), CookieJar.AllowForSession + self.domainEdit.text(), CookieExceptionRuleType.AllowForSession ) self.domainEdit.clear() @@ -113,7 +115,9 @@ """ Private slot to allow cookies of a domain. """ - from .CookieJar import CookieJar + from .CookieJar import CookieExceptionRuleType - self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Allow) + self.__exceptionsModel.addRule( + self.domainEdit.text(), CookieExceptionRuleType.Allow + ) self.domainEdit.clear()