This file is indexed.

/usr/lib/python2.7/dist-packages/PythonCard/tools/experimentalResourceEditor/modules/newComponentDialog.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2004/10/24 19:21:46 $"
"""

from PythonCard import model

class NewComponentDialog(model.CustomDialog):
    def __init__(self, aBg, original, attributes, offsets, title):
        model.CustomDialog.__init__(self, aBg)
        
        self.parent = aBg
        
        self.title = title
        if title.startswith("New"):
            add = ""
        else:
            add = "Copy"
        self.components.fldName.text = original['name'] + add
        if "label" in attributes:
            self.components.lblLabelOrText.text = "Label:"
            if "label" in original.keys():
                self.components.fldLabelOrText.text = original['label'] + add
            else:
                self.components.fldLabelOrText.text = original['name'] + add
        elif "text" in attributes:
            self.components.lblLabelOrText.text = "Text:"
            if "text" in original.keys():
                self.components.fldLabelOrText.text = original['text'] + add
            else:
                self.components.fldLabelOrText.text = original['name'] + add
        else:
            self.components.lblLabelOrText.visible = False
            self.components.fldLabelOrText.visible = False
            self.components.fldLabelOrText.enabled = False
            
        self.components.chkHorizontal.visible = offsets
        self.components.chkVertical.visible = offsets
    
def newComponentDialog(aBg, original, attributes, offsets, title):
    dlg = NewComponentDialog(aBg, original, attributes, offsets, title)
    result = dlg.showModal()
    if result.accepted:
        result.name = dlg.components.fldName.text
        result.labelortext = dlg.components.fldLabelOrText.text
        result.horizontal = dlg.components.chkHorizontal.checked
        result.vertical = dlg.components.chkVertical.checked
    dlg.destroy()
    return result