/usr/lib/python2.7/dist-packages/gi/overrides/Signon.py is in gir1.2-signon-1.0 1.10daily13.06.25-0ubuntu2.
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 | from ..overrides import override
from ..importer import modules
from gi.repository import GObject
Signon = modules['Signon']._introspection_module
__all__ = []
class GStrv(list):
__gtype__ = GObject.type_from_name('GStrv')
class AuthSession(Signon.AuthSession):
# Convert list of strings into a GStrv
def process(self, session_data, mechanism, callback, userdata):
cleaned_data = {}
for (key, value) in session_data.items():
if isinstance(value, list):
cleaned_data[key] = GStrv(value)
else:
cleaned_data[key] = value
Signon.AuthSession.process(self, cleaned_data, mechanism, callback, userdata)
AuthSession = override(AuthSession)
__all__.append('AuthSession')
|