This file is indexed.

/usr/share/pyshared/pycocumalib/FindDialog.py is in pycocuma 0.4.5-6-7.

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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/python
#  Copyright (C) 2004  Henning Jacobs <henning@srcco.de>
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  $Id: FindDialog.py 82 2004-07-11 13:01:44Z henning $

from Tkinter import *
from InputWidgets import TextComboEdit
import Pmw
import vcard

class FindDialog(Pmw.Dialog):
    def __init__(self, master, title='Find Contact', class_=None):
        Pmw.Dialog.__init__(self, master=master, title=title,
            buttons=('Ok','Cancel'), defaultbutton='Ok',
            activatecommand=self._onactivate)   
           
        lbl = Label(self.interior(), text="Search for:")
        lbl.grid(padx=2, pady=2)

        self.findstrvar = StringVar()
        self.edtSearch = Entry(self.interior(), textvariable = self.findstrvar)
        self.edtSearch.grid(sticky=W+E,padx=2, pady=2)

        lbl = Label(self.interior(), text="in Field:")
        lbl.grid(padx=2, pady=2)

        self.selField = selField = TextComboEdit(self.interior(), entry_state=DISABLED)
        selField.setlist(vcard.FIELDNAMES)
        selField.selectitem(0)
        selField.grid(sticky=W+E, padx=2, pady=2)

        
        lbl = Label(self.interior(), text="Search Options:")
        lbl.grid(padx=2, pady=2)
        
        self.regexvar = IntVar()
        selRegex = Checkbutton(self.interior(), text="Use Regular Expressions",
                variable = self.regexvar)
        selRegex.grid(sticky=W, padx=2, pady=2)
        
        self.ignorecasevar = IntVar()
        self.ignorecasevar.set(1)
        selIgnoreCase = Checkbutton(self.interior(), text="Case Insensitive Search",
                variable = self.ignorecasevar)
        selIgnoreCase.grid(sticky=W, padx=2, pady=2)

    def _onactivate(self):
        self.edtSearch.focus_set()

    def getvalue(self):
        return map(lambda x: x.get(), 
            (self.findstrvar,
            self.selField,
            self.regexvar,
            self.ignorecasevar))

if __name__ == "__main__":
    # Unit Test:
    tk = Tk()
    dlg = FindDialog(tk)
    print dlg.activate()
    tk.destroy()