This file is indexed.

/usr/lib/python2.7/dist-packages/PythonCard/templates/dialogs/loginDialog.py is in python-pythoncard 0.8.2-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
__version__ = "$Revision: 1.2 $"
__date__ = "$Date: 2004/08/12 19:12:39 $"
"""

from PythonCard import model

class LoginDialog(model.CustomDialog):
    def __init__(self, parent, host="127.0.0.1", port=80, username="guest", password="guest"):
        model.CustomDialog.__init__(self, parent)
        
        self.components.fldHost.text = host
        self.components.fldPort.text = str(port)
        self.components.fldUsername.text = username
        self.components.fldPassword.text = password

#def myDialog(parent, txt):
def loginDialog(parent, host="127.0.0.1", port=80, username="guest", password="guest"):
    dlg = LoginDialog(parent, host, port, username, password)
    result = dlg.showModal()
    result.host = dlg.components.fldHost.text
    result.port = int(dlg.components.fldPort.text)
    result.username = dlg.components.fldUsername.text
    result.password = dlg.components.fldPassword.text
    dlg.destroy()
    return result