This file is indexed.

/usr/share/pyshared/mumble/mctl.py is in python-django-mumble 2.13-1.

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
# -*- coding: utf-8 -*-
# kate: space-indent on; indent-width 4; replace-tabs on;

"""
 *  Copyright © 2009, withgod                   <withgod@sourceforge.net>
 *         2009-2010, Michael "Svedrin" Ziegler <diese-addy@funzt-halt.net>
 *
 *  Mumble-Django 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.
 *
 *  This package is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
"""

import re

class MumbleCtlBase(object):
    """ This class defines the base interface that the Mumble model expects. """

    cache = {}

    @staticmethod
    def newInstance( connstring, slicefile=None, icesecret=None ):
        """ Create a new CTL object for the given connstring.

            Optional parameters are the path to the slice file and the
            Ice secret necessary to authenticate to Murmur.

            The path can be omitted only if using DBus or running Murmur
            1.2.3 or later, which exports a getSlice method to retrieve
            the Slice from.
        """

        # check cache
        if connstring in MumbleCtlBase.cache:
            return MumbleCtlBase.cache[connstring]

        # connstring defines whether to connect via ICE or DBus.
        # Dbus service names: some.words.divided.by.periods
        # ICE specs are WAY more complex, so if DBus doesn't match, use ICE.
        rd = re.compile( r'^(\w+\.)*\w+$' )

        if rd.match( connstring ):
            from MumbleCtlDbus import MumbleCtlDbus
            ctl = MumbleCtlDbus( connstring )
        else:
            from MumbleCtlIce import MumbleCtlIce
            ctl = MumbleCtlIce( connstring, slicefile, icesecret )

        MumbleCtlBase.cache[connstring] = ctl
        return ctl

    @staticmethod
    def clearCache():
        MumbleCtlBase.cache = {}