src/eric7/WebBrowser/CookieJar/CookieJar.py

branch
eric7
changeset 10436
f6881d10e995
parent 10069
435cc5875135
child 10439
21c28b0f9e41
diff -r c712d09cc839 -r f6881d10e995 src/eric7/WebBrowser/CookieJar/CookieJar.py
--- a/src/eric7/WebBrowser/CookieJar/CookieJar.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/CookieJar/CookieJar.py	Fri Dec 22 17:24:07 2023 +0100
@@ -44,7 +44,8 @@
         """
         Constructor
 
-        @param parent reference to the parent object (QObject)
+        @param parent reference to the parent object
+        @type QObject
         """
         super().__init__(parent)
 
@@ -268,6 +269,7 @@
         Public method to get the accept policy.
 
         @return current accept policy
+        @rtype int
         """
         if not self.__loaded:
             self.__load()
@@ -279,6 +281,7 @@
         Public method to set the accept policy.
 
         @param policy accept policy to be set
+        @type int
         """
         if not self.__loaded:
             self.__load()
@@ -296,6 +299,7 @@
         Public method to get the keep policy.
 
         @return keep policy
+        @rtype int
         """
         if not self.__loaded:
             self.__load()
@@ -307,6 +311,7 @@
         Public method to set the keep policy.
 
         @param policy keep policy to be set
+        @type int
         """
         if not self.__loaded:
             self.__load()
@@ -323,7 +328,8 @@
         """
         Public method to return the list of blocked domains.
 
-        @return list of blocked domains (list of strings)
+        @return list of blocked domains
+        @rtype list of str
         """
         if not self.__loaded:
             self.__load()
@@ -334,7 +340,8 @@
         """
         Public method to return the list of allowed domains.
 
-        @return list of allowed domains (list of strings)
+        @return list of allowed domains
+        @rtype list of str
         """
         if not self.__loaded:
             self.__load()
@@ -345,7 +352,8 @@
         """
         Public method to return the list of allowed session cookie domains.
 
-        @return list of allowed session cookie domains (list of strings)
+        @return list of allowed session cookie domains
+        @rtype list of str
         """
         if not self.__loaded:
             self.__load()
@@ -356,7 +364,8 @@
         """
         Public method to set the list of blocked domains.
 
-        @param list_ list of blocked domains (list of strings)
+        @param list_ list of blocked domains
+        @type list of str
         """
         if not self.__loaded:
             self.__load()
@@ -369,7 +378,8 @@
         """
         Public method to set the list of allowed domains.
 
-        @param list_ list of allowed domains (list of strings)
+        @param list_ list of allowed domains
+        @type list of str
         """
         if not self.__loaded:
             self.__load()
@@ -382,7 +392,8 @@
         """
         Public method to set the list of allowed session cookie domains.
 
-        @param list_ list of allowed session cookie domains (list of strings)
+        @param list_ list of allowed session cookie domains
+        @type list of str
         """
         if not self.__loaded:
             self.__load()
@@ -395,7 +406,8 @@
         """
         Public method to get the filter tracking cookies flag.
 
-        @return filter tracking cookies flag (boolean)
+        @return filter tracking cookies flag
+        @rtype bool
         """
         return self.__filterTrackingCookies
 
@@ -403,7 +415,8 @@
         """
         Public method to set the filter tracking cookies flag.
 
-        @param filterTrackingCookies filter tracking cookies flag (boolean)
+        @param filterTrackingCookies filter tracking cookies flag
+        @type bool
         """
         if filterTrackingCookies == self.__filterTrackingCookies:
             return
@@ -416,9 +429,12 @@
         Private method to check, if either the rule matches the domain exactly
         or the domain ends with ".rule".
 
-        @param rules list of rules (list of strings)
-        @param domain domain name to check (string)
-        @return flag indicating a match (boolean)
+        @param rules list of rules
+        @type list of str
+        @param domain domain name to check
+        @type str
+        @return flag indicating a match
+        @rtype bool
         """
         for rule in rules:
             if rule.startswith("."):
@@ -472,7 +488,8 @@
         """
         Public method to get the cookies of the cookie jar.
 
-        @return list of all cookies (list of QNetworkCookie)
+        @return list of all cookies
+        @rtype list of QNetworkCookie
         """
         if not self.__loaded:
             self.__load()

eric ide

mercurial