Helpviewer/CookieJar/CookieDetailsDialog.py

changeset 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
-1:000000000000 0:de9c2efb9d02
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2009 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog showing the cookie data.
8 """
9
10 from PyQt4.QtGui import QDialog
11 from PyQt4.QtCore import pyqtSlot
12
13 from Ui_CookieDetailsDialog import Ui_CookieDetailsDialog
14
15 class CookieDetailsDialog(QDialog, Ui_CookieDetailsDialog):
16 """
17 Class implementing a dialog showing the cookie data.
18 """
19 def __init__(self, parent = None):
20 """
21 Constructor
22
23 @param parent reference to the parent object (QWidget)
24 """
25 QDialog.__init__(self, parent)
26 self.setupUi(self)
27
28 def setData(self, domain, name, path, secure, expires, value):
29 """
30 Public method to set the data to be shown.
31
32 @param domain domain of the cookie (string)
33 @param name name of the cookie (string)
34 @param path path of the cookie (string)
35 @param secure flag indicating a secure cookie (boolean)
36 @param expires expiration time of the cookie (string)
37 @param value value of the cookie (string)
38 """
39 self.domainEdit.setText(domain)
40 self.nameEdit.setText(name)
41 self.pathEdit.setText(path)
42 self.secureCheckBox.setChecked(secure)
43 self.expirationEdit.setText(expires)
44 self.valueEdit.setPlainText(value)

eric ide

mercurial