python: Convert gop.GROUP_POLICY_OBJECT to pytalloc
authorAndrew Bartlett <abartlet@samba.org>
Tue, 24 Oct 2017 03:48:13 +0000 (16:48 +1300)
committerGarming Sam <garming@samba.org>
Mon, 20 Nov 2017 20:41:15 +0000 (21:41 +0100)
commit644bbf083bee416d85ff267c7fc2bac9401b8c2e
tree4c8b70561d4ae73175cd6a0182041b6a93f3c10d
parent85f901880391edc1a4c36572661d4a9a7547dcfd
python: Convert gop.GROUP_POLICY_OBJECT to pytalloc

This avoids PyCapsule calls not available in Python 2.6

We remove the __init__ function as it is useless, the
object is created by py_ads_get_gpo_list() which now
returns a python list rather than an iterator.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
libgpo/pygpo.c