Helpviewer/CookieJar/CookiesExceptionsDialog.py

changeset 4843
c43d8f32e100
parent 4631
5c1a96925da4
child 5389
9b1c800daff3
equal deleted inserted replaced
4841:fd8b88eb96c7 4843:c43d8f32e100
94 """ 94 """
95 Private slot to block cookies of a domain. 95 Private slot to block cookies of a domain.
96 """ 96 """
97 from .CookieJar import CookieJar 97 from .CookieJar import CookieJar
98 self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Block) 98 self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Block)
99 self.domainEdit.clear()
99 100
100 @pyqtSlot() 101 @pyqtSlot()
101 def on_allowForSessionButton_clicked(self): 102 def on_allowForSessionButton_clicked(self):
102 """ 103 """
103 Private slot to allow cookies of a domain for the current session only. 104 Private slot to allow cookies of a domain for the current session only.
104 """ 105 """
105 from .CookieJar import CookieJar 106 from .CookieJar import CookieJar
106 self.__exceptionsModel.addRule(self.domainEdit.text(), 107 self.__exceptionsModel.addRule(self.domainEdit.text(),
107 CookieJar.AllowForSession) 108 CookieJar.AllowForSession)
109 self.domainEdit.clear()
108 110
109 @pyqtSlot() 111 @pyqtSlot()
110 def on_allowButton_clicked(self): 112 def on_allowButton_clicked(self):
111 """ 113 """
112 Private slot to allow cookies of a domain. 114 Private slot to allow cookies of a domain.
113 """ 115 """
114 from .CookieJar import CookieJar 116 from .CookieJar import CookieJar
115 self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Allow) 117 self.__exceptionsModel.addRule(self.domainEdit.text(), CookieJar.Allow)
118 self.domainEdit.clear()

eric ide

mercurial