parameters: (self,config_file=None,json_text=None)
docstring: Initialize the pool from either CppCMS configuration file or directly from JSON text
docstring_summary: Initialize the pool from either CppCMS configuration file or directly from JSON text
docstring_tokens: Initialize the pool from either CppCMS configuration file or directly from JSON text
function: def __init__(self,config_file=None,json_text=None):
          Loader.load()
          """Initialize the pool from either CppCMS configuration file or directly from JSON text"""
          if config_file == None and json_text == None:
              raise ValueError('either config_file or json_text should be provided')
          if config_file != None and json_text != None:
              raise ValueError('Both config_file are json_text specified')
          self.d=Loader.capi.cppcms_capi_session_pool_new()
          if config_file!=None:
              Loader.capi.cppcms_capi_session_pool_init(self.d,config_file)
          else:
              Loader.capi.cppcms_capi_session_pool_init_from_json(self.d,json_text)
          try:
              self.check()
          except:
              Loader.capi.cppcms_capi_session_pool_delete(self.d)
              self.d=None
              raise
function_tokens: def __init__ ( self , config_file = None , json_text = None ) : Loader . load ( ) if config_file == None and json_text == None : raise ValueError ( 'either config_file or json_text should be provided' ) if config_file != None and json_text != None : raise ValueError ( 'Both config_file are json_text specified' ) self . d = Loader . capi . cppcms_capi_session_pool_new ( ) if config_file != None : Loader . capi . cppcms_capi_session_pool_init ( self . d , config_file ) else : Loader . capi . cppcms_capi_session_pool_init_from_json ( self . d , json_text ) try : self . check ( ) except : Loader . capi . cppcms_capi_session_pool_delete ( self . d ) self . d = None raise