mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
r26454: Add simple SWIG macro for wrapping talloced types.
This commit is contained in:
committed by
Stefan Metzmacher
parent
c81ead1c38
commit
760fcc8bfa
@@ -87,13 +87,13 @@ class ParamFile(object):
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args, **kwargs):
|
||||
_param.ParamFile_swiginit(self,_param.new_ParamFile(*args, **kwargs))
|
||||
__swig_destroy__ = _param.delete_ParamFile
|
||||
def __getitem__(self, name):
|
||||
ret = self.get_section(name)
|
||||
if ret is None:
|
||||
raise KeyError("No such section %s" % name)
|
||||
return ret
|
||||
|
||||
__swig_destroy__ = _param.delete_ParamFile
|
||||
ParamFile.get_section = new_instancemethod(_param.ParamFile_get_section,None,ParamFile)
|
||||
ParamFile.get = new_instancemethod(_param.ParamFile_get,None,ParamFile)
|
||||
ParamFile.set_string = new_instancemethod(_param.ParamFile_set_string,None,ParamFile)
|
||||
|
||||
Reference in New Issue
Block a user