예제 #1
0
파일: sec.py 프로젝트: trws/flux-core
 def __init__(self, handle=None):
     super(self.__class__, self).__init__(ffi, lib,
                                          handle=handle,
                                          match=ffi.typeof(
                                              lib.flux_sec_create).result,
                                          prefixes=['flux_sec_'],
                                          destructor=lib.flux_sec_destroy,)
     if handle is None:
         self.handle = lib.flux_sec_create()
예제 #2
0
파일: sec.py 프로젝트: cigolabs/flux-core
 def __init__(self, handle=None):
   if handle is None:
     self.external = False
     handle = lib.flux_sec_create(type_id)
   else:
     self.external = True
   super(self.__class__, self).__init__(ffi, lib, 
                                    handle=handle,
                                    match=ffi.typeof(lib.flux_sec_create).result,
                                    prefixes=['flux_sec_'],
                                    )
예제 #3
0
 def __init__(self, handle=None):
     super(self.__class__, self).__init__(
         ffi,
         lib,
         handle=handle,
         match=ffi.typeof(lib.flux_sec_create).result,
         prefixes=['flux_sec_'],
         destructor=lib.flux_sec_destroy,
     )
     if handle is None:
         self.handle = lib.flux_sec_create()
예제 #4
0
 def __init__(self, handle=None):
     if handle is None:
         self.external = False
         handle = lib.flux_sec_create(type_id)
     else:
         self.external = True
     super(self.__class__, self).__init__(
         ffi,
         lib,
         handle=handle,
         match=ffi.typeof(lib.flux_sec_create).result,
         prefixes=['flux_sec_'],
     )