1
=== modified file 'Makefile.am'
2
--- old/Makefile.am 2012-07-25 18:39:07 +0000
3
+++ new/Makefile.am 2011-12-21 07:46:11 +0000
5
--enable-introspection=yes
6
SUBDIRS = libsignon-glib docs tests
12
pkgconfigdir = $(libdir)/pkgconfig
13
pkgconfig_DATA = libsignon-glib.pc
16
=== modified file 'configure.ac'
17
--- old/configure.ac 2012-07-25 18:39:07 +0000
18
+++ new/configure.ac 2012-04-16 06:25:06 +0000
25
+PYGOBJECT_REQUIRED=2.90
27
+AC_ARG_ENABLE([python],
28
+ AS_HELP_STRING([--enable-python[=@<:@no/auto/yes@:>@]],[Build with python support]),
29
+ [enable_python=$enableval],
30
+ [enable_python="auto"])
32
+if test "x$enable_python" = "xauto"; then
33
+ PKG_CHECK_EXISTS([pygobject-3.0 >= $PYGOBJECT_REQUIRED],
34
+ [enable_python=yes],[enable_python=no])
37
+if test "x$enable_python" = "xyes"; then
38
+ PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
40
+ pyoverridesdir=`$PYTHON -c "import gi;print gi._overridesdir"`
41
+ AC_SUBST(pyoverridesdir)
44
+AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")
48
libsignon-glib/Makefile
51
docs/reference/Makefile
56
=== added directory 'pygobject'
57
=== added file 'pygobject/Makefile.am'
58
--- old/pygobject/Makefile.am 1970-01-01 00:00:00 +0000
59
+++ new/pygobject/Makefile.am 2011-12-21 07:46:11 +0000
61
+overridesdir = $(pyoverridesdir)
66
=== added file 'pygobject/Signon.py'
67
--- old/pygobject/Signon.py 1970-01-01 00:00:00 +0000
68
+++ new/pygobject/Signon.py 2012-01-20 10:35:45 +0000
70
+from ..overrides import override
71
+from ..importer import modules
72
+from gi.repository import GObject
74
+Signon = modules['Signon']._introspection_module
79
+ __gtype__ = GObject.type_from_name('GStrv')
81
+class AuthSession(Signon.AuthSession):
83
+ # Convert list of strings into a single string
84
+ def process(self, session_data, mechanism, callback, userdata):
86
+ for (key, value) in session_data.iteritems():
87
+ if isinstance(value, list):
88
+ cleaned_data[key] = GStrv(value)
90
+ cleaned_data[key] = value
91
+ Signon.AuthSession.process(self, cleaned_data, mechanism, callback, userdata)
93
+AuthSession = override(AuthSession)
94
+__all__.append('AuthSession')