1 # This file was automatically generated by SWIG (http://www.swig.org).
4 # Don't modify this file, modify the SWIG interface instead.
8 new_instancemethod = new.instancemethod
10 _swig_property = property
12 pass # Python < 2.2 doesn't have 'property'.
13 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
14 if (name == "thisown"): return self.this.own(value)
16 if type(value).__name__ == 'PySwigObject':
17 self.__dict__[name] = value
19 method = class_type.__swig_setmethods__.get(name,None)
20 if method: return method(self,value)
21 if (not static) or hasattr(self,name):
22 self.__dict__[name] = value
24 raise AttributeError("You cannot add attributes to %s" % self)
26 def _swig_setattr(self,class_type,name,value):
27 return _swig_setattr_nondynamic(self,class_type,name,value,0)
29 def _swig_getattr(self,class_type,name):
30 if (name == "thisown"): return self.this.own()
31 method = class_type.__swig_getmethods__.get(name,None)
32 if method: return method(self)
33 raise AttributeError,name
36 try: strthis = "proxy of " + self.this.__repr__()
38 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
42 _object = types.ObjectType
44 except AttributeError:
50 def _swig_setattr_nondynamic_method(set):
51 def set_attr(self,name,value):
52 if (name == "thisown"): return self.this.own(value)
53 if hasattr(self,name) or (name == "this"):
56 raise AttributeError("You cannot add attributes to %s" % self)
64 random_password = _misc.random_password
65 ldb_set_credentials = _misc.ldb_set_credentials
66 ldb_set_session_info = _misc.ldb_set_session_info
67 ldb_set_loadparm = _misc.ldb_set_loadparm
68 samdb_set_domain_sid = _misc.samdb_set_domain_sid
69 dsdb_attach_schema_from_ldif_file = _misc.dsdb_attach_schema_from_ldif_file
70 version = _misc.version
71 dsdb_set_global_schema = _misc.dsdb_set_global_schema
72 ldb_register_samba_handlers = _misc.ldb_register_samba_handlers