1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

r26624: libnet/python: Use standard function for constructing context, allow overriding credentials.

This commit is contained in:
Jelmer Vernooij
2007-12-28 16:25:27 -06:00
committed by Stefan Metzmacher
parent 108f6caffe
commit a5fb3caede
4 changed files with 179 additions and 61 deletions

View File

@@ -58,10 +58,11 @@ def _swig_setattr_nondynamic_method(set):
import events
libnet_context_init = _net.libnet_context_init
import param
class libnet(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
cred = _swig_property(_net.libnet_cred_get, _net.libnet_cred_set)
def __init__(self, *args, **kwargs):
_net.libnet_swiginit(self,_net.new_libnet(*args, **kwargs))
__swig_destroy__ = _net.delete_libnet