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

python: Reenable modules for libcli_nbt and libcli_smb.

This commit is contained in:
Jelmer Vernooij
2008-01-20 16:24:11 +01:00
parent 583ea85ae0
commit 4fa8a2789c
7 changed files with 318 additions and 447 deletions

View File

@@ -2,7 +2,6 @@
# Version 1.3.33
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _libcli_smb
import new
@@ -48,6 +47,16 @@ except AttributeError:
del types
def _swig_setattr_nondynamic_method(set):
def set_attr(self,name,value):
if (name == "thisown"): return self.this.own(value)
if hasattr(self,name) or (name == "this"):
set(self,name,value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
return set_attr
import events
smbcli_sock_connect_byname = _libcli_smb.smbcli_sock_connect_byname
smbcli_sock_dead = _libcli_smb.smbcli_sock_dead