This file is indexed.

/usr/share/kayali/guifactory.py is in kayali 0.3.2-0ubuntu4.

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
import logging
l = logging.getLogger(__name__)

WINDOW_SYSTEM_QT = 'QT'
WINDOW_SYSTEM_QT4 = 'QT4'
WINDOW_SYSTEM_WX = 'WX'

class GuiFactory:

    def getFactory(self,windowsystem, control):
        self.control = control
        self.windowsystem = windowsystem
        if self.windowsystem == WINDOW_SYSTEM_QT:
            try:
                from qtgui import qtfactory
            except:
                l.exception( "qt not available")

            self.factory = qtfactory.QtFactory()
        elif self.windowsystem == WINDOW_SYSTEM_QT4:
            try:
                from qt4gui import qt4factory
            except:
                l.exception( "qt4 not available")
            self.factory = qt4factory.Qt4Factory()
        else:
            try:
                from wxgui import wxfactory
            except:
                l.exception( "wxwindows not available")
            self.factory = wxfactory.wxfactory()
        return self.factory