This file is indexed.

/usr/share/pyshared/InterfaceQT4/utilIcons.py is in eficas 6.4.0-1-2.

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
# -*- coding: utf-8 -*-

from PyQt4.QtGui import QPixmap, QIcon
import os

class PixmapCache:
    """
    Class implementing a pixmap cache for icons.
    """
    def __init__(self):
        """
        Constructor
        """
        self.pixmapCache = {}


    def getPixmap(self, key):
        """
        Public method to retrieve a pixmap.
        
        @param key name of the wanted pixmap (string)
        @return the requested pixmap (QPixmap)
        """
        if (1==1):
        #try:
            key="/local/pnoyret/Install_Eficas/EficasV1/InterfaceQT/icons/"+key
            return QPixmap(key)
            #return self.pixmapCache[key]
        #except KeyError:
        else :
            self.pixmapCache[key] = QPixmap.fromMimeSource(key)
            return self.pixmapCache[key]
            
pixCache = PixmapCache()

def getPixmap(key, cache = pixCache):
    """
    Module function to retrieve a pixmap.
    
    @param key name of the wanted pixmap (string)
    @return the requested pixmap (QPixmap)
    """
    return cache.getPixmap(key)
    
def getIcon(key):
    key="/local/pnoyret/Install_Eficas/EficasV1/InterfaceQT/icons/"+key
    return QIcon(key)
    

#from PyQt4.Qt3Support import Q3MimeSourceFactory

#def initializeMimeSourceFactory():
    """
    Function to initialize the default mime source factory.
    
    """
#    defaultFactory = Q3MimeSourceFactory.defaultFactory()
#    repini=os.path.dirname(os.path.abspath(__file__))
#    defaultFactory.addFilePath(repini+"/../Editeur/icons") #CS_pbruno todo (config)