Helpviewer/FlashCookieManager/FlashCookieManagerDialog.py

changeset 4370
54dbb658f9e6
parent 4363
c00061f670c7
child 4541
e8ddd9d76414
equal deleted inserted replaced
4369:4ef6ecc62a9d 4370:54dbb658f9e6
82 self.__addWhitelist(origin) 82 self.__addWhitelist(origin)
83 83
84 def __addWhitelist(self, origin): 84 def __addWhitelist(self, origin):
85 """ 85 """
86 Private method to add a cookie origin to the whitelist. 86 Private method to add a cookie origin to the whitelist.
87
88 @param origin origin to be added to the list
89 @type str
87 """ 90 """
88 if not origin: 91 if not origin:
89 return 92 return
90 93
91 if len(self.blackList.findItems(origin, Qt.MatchFixedString)) > 0: 94 if len(self.blackList.findItems(origin, Qt.MatchFixedString)) > 0:
123 self.__addBlacklist(origin) 126 self.__addBlacklist(origin)
124 127
125 def __addBlacklist(self, origin): 128 def __addBlacklist(self, origin):
126 """ 129 """
127 Private method to add a cookie origin to the blacklist. 130 Private method to add a cookie origin to the blacklist.
131
132 @param origin origin to be added to the list
133 @type str
128 """ 134 """
129 if not origin: 135 if not origin:
130 return 136 return
131 137
132 if len(self.whiteList.findItems(origin, Qt.MatchFixedString)) > 0: 138 if len(self.whiteList.findItems(origin, Qt.MatchFixedString)) > 0:
349 355
350 itm = QTreeWidgetItem(newParent) 356 itm = QTreeWidgetItem(newParent)
351 357
352 suffix = "" 358 suffix = ""
353 if cookie.path.startswith( 359 if cookie.path.startswith(
354 self.__manager.flashPlayerDataPath() + 360 self.__manager.flashPlayerDataPath() +
355 "/macromedia.com/support/flashplayer/sys"): 361 "/macromedia.com/support/flashplayer/sys"):
356 suffix = self.tr(" (settings)") 362 suffix = self.tr(" (settings)")
357 363
358 if cookie.path + "/" + cookie.name in \ 364 if cookie.path + "/" + cookie.name in \
359 self.__manager.newCookiesList(): 365 self.__manager.newCookiesList():

eric ide

mercurial