def addConfig(self, configStr, configComments, configID):
    ' registers a new configuration document in the datastore\n        '
    _configStr = self.prepareStringArgument(configStr)
    _configComments = self.prepareStringArgument(configComments)
    configID[:] = b''
    cID = c_longlong(0)
    self._lib_handle.G2ConfigMgr_addConfig.argtypes = [c_char_p, c_char_p, POINTER(c_longlong)]
    self._lib_handle.G2ConfigMgr_addConfig.restype = c_int
    ret_code = self._lib_handle.G2ConfigMgr_addConfig(_configStr, _configComments, cID)
    if (ret_code == (- 1)):
        raise G2ModuleNotInitialized('G2ConfigMgr has not been succesfully initialized')
    elif (ret_code < 0):
        self._lib_handle.G2ConfigMgr_getLastException(tls_var.buf, sizeof(tls_var.buf))
        raise TranslateG2ModuleException(tls_var.buf.value)
    configID += str(cID.value).encode()
registers a new configuration document in the datastore
def addConfig(self, configStr, configComments, configID):
    ' \n        '
    _configStr = self.prepareStringArgument(configStr)
    _configComments = self.prepareStringArgument(configComments)
    configID[:] = b
    cID = c_longlong(0)
    self._lib_handle.G2ConfigMgr_addConfig.argtypes = [c_char_p, c_char_p, POINTER(c_longlong)]
    self._lib_handle.G2ConfigMgr_addConfig.restype = c_int
    ret_code = self._lib_handle.G2ConfigMgr_addConfig(_configStr, _configComments, cID)
    if (ret_code == (- 1)):
        raise G2ModuleNotInitialized('G2ConfigMgr has not been succesfully initialized')
    elif (ret_code < 0):
        self._lib_handle.G2ConfigMgr_getLastException(tls_var.buf, sizeof(tls_var.buf))
        raise TranslateG2ModuleException(tls_var.buf.value)
    configID += str(cID.value).encode()