src/eric7/WebBrowser/CookieJar/CookiesExceptionsDialog.py

branch
eric7
changeset 10485
287a3ae95e00
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
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()

eric ide

mercurial