diff --git a/doc/client.rst b/doc/client.rst index 15520dc..fa7d1a9 100644 --- a/doc/client.rst +++ b/doc/client.rst @@ -308,7 +308,8 @@ Configuration of a connection ============================= Upon construction, a :class:`Connection` object may be configured -in various ways by passing a ``config`` parameter. +in various ways by passing a ``config`` parameter. These configuration +options are valid for all RFC function module calls: >>> conn = Connection(config = {'keyword': value, ...}, **params) diff --git a/doc/conf.py b/doc/conf.py index dc109fd..db6130f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -11,7 +11,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import os, pyrfc # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -26,6 +26,7 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ + "sphinx.ext.napoleon", "sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.todo", @@ -52,10 +53,8 @@ # |version| and |release|, also used in various other places throughout the # built documents. # -# CUSTOM: read the version from the file VERSION of the project root -version_filename = os.path.join(os.path.dirname(__file__), "..", "VERSION") -release = open(version_filename).read().strip() -version = ".".join(release.split(".")[:2]) +# CUSTOM: read the version from the installed pyrfc build +release = version = pyrfc.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -121,7 +120,13 @@ def process_docstring(app, what, name, obj, options, lines): lines.append( u"For details see :ref:`client-connectionconfig-returnimportparams`." ) - + elif name == "pyrfc.Connection.config.dtime": + lines.append( + u"If True, :meth:`~Connection.call` also returns ABAP DATE and TIME fields as Python datetime objects." + ) + lines.append( + u"For details see :ref:`client-connectionconfig-dtime`." + ) def setup(app): # Setting a hook for processing docstrings diff --git a/doc/pyrfc.rst b/doc/pyrfc.rst index c96e83d..14f47ed 100644 --- a/doc/pyrfc.rst +++ b/doc/pyrfc.rst @@ -19,6 +19,20 @@ The :mod:`pyrfc` package. .. toctree:: :maxdepth: 2 +.. _pyrfcapi: + +====================== +PyRFC module functions +====================== + +.. autofunction:: get_nwrfclib_version +.. autofunction:: set_ini_file_directory(path_name) +.. autofunction:: reload_ini_file +.. autofunction:: language_iso_to_sap(lang_iso) +.. autofunction:: language_sap_to_iso(lang_sap) +.. autofunction:: set_cryptolib_path(path_name) +.. autofunction:: set_locale_radix(value=None) + .. _apiconn: ========== @@ -27,24 +41,57 @@ Connection .. autoclass:: Connection + .. autoattribute:: alive + .. autoattribute:: handle .. autoattribute:: options + .. automethod:: get_connection_attributes() + .. automethod:: open() + .. automethod:: reopen() .. automethod:: call(func_name, options, params) .. automethod:: close() + .. automethod:: cancel() + .. automethod:: free() + .. automethod:: ping() + .. automethod:: reset_server_context() + .. automethod:: initialize_unit([background=True]) + .. automethod:: fill_and_submit_unit(unit, calls[, queue_names=None[, attributes=None]]) .. automethod:: confirm_unit(unit) .. automethod:: destroy_unit(unit) - .. automethod:: fill_and_submit_unit(unit, calls[, queue_names=None[, attributes=None]]) - .. automethod:: get_connection_attributes() - .. automethod:: get_function_description(func_name) .. automethod:: get_unit_state(unit) - .. automethod:: initialize_unit([background=True]) - .. automethod:: ping() - .. automethod:: reset_server_context() + .. automethod:: get_function_description(func_name) + .. automethod:: type_desc_get(type_name) + .. automethod:: type_desc_remove(type_name) + .. automethod:: func_desc_remove(func_name) + +.. _apiserver: + +========== +Server +========== + +.. autoclass:: Server + + .. automethod:: bgrfc_init(sysId, bgRfcFunction) + .. automethod:: add_function(func_name, callback) + .. automethod:: serve() + .. automethod:: start() + .. automethod:: stop() + .. automethod:: close() + .. automethod:: get_server_attributes() + +.. _apiconnectionparams: + +===================== +Connection Parameters +===================== + +.. autoclass:: ConnectionParameters .. _apifuncdesc: -=================== -FunctionDescription -=================== +==================== +Function Description +==================== .. note:: @@ -57,12 +104,28 @@ FunctionDescription .. _apitypedesc: =================== -TypeDescription +Type Description =================== .. autoclass:: TypeDescription .. automethod:: add_field(name, field_type, nuc_length, uc_length, nuc_offset, uc_offset[, decimals=0[, type_description=None]]) +.. _apithrououghput: + +========== +Throughput +========== + +.. autoclass:: Throughput + + .. autoattribute:: _handle + .. autoattribute:: connections + .. autoattribute:: stats + .. automethod:: setOnConnection() + .. automethod:: getFromConnection() + .. automethod:: removeFromConnection() + .. automethod:: reset() + .. _apierr: ====== diff --git a/src/pyrfc/_cyrfc.cpp b/src/pyrfc/_cyrfc.cpp index 432948d..96ea358 100644 --- a/src/pyrfc/_cyrfc.cpp +++ b/src/pyrfc/_cyrfc.cpp @@ -1099,8 +1099,8 @@ struct __pyx_opt_args_5pyrfc_6_cyrfc_wrapString { * * * cdef class ConnectionParameters: # <<<<<<<<<<<<<< - * cdef unsigned _params_count - * cdef RFC_CONNECTION_PARAMETER *_params + * """Connection parameters instance in SAP unicode format + * */ struct __pyx_obj_5pyrfc_6_cyrfc_ConnectionParameters { PyObject_HEAD @@ -1147,7 +1147,7 @@ struct __pyx_obj_5pyrfc_6_cyrfc_ServerConnection { }; -/* "src/pyrfc/server.pyx":252 +/* "src/pyrfc/server.pyx":242 * * * cdef class Server: # <<<<<<<<<<<<<< @@ -1266,7 +1266,7 @@ struct __pyx_vtabstruct_5pyrfc_6_cyrfc_ServerConnection { static struct __pyx_vtabstruct_5pyrfc_6_cyrfc_ServerConnection *__pyx_vtabptr_5pyrfc_6_cyrfc_ServerConnection; -/* "src/pyrfc/server.pyx":252 +/* "src/pyrfc/server.pyx":242 * * * cdef class Server: # <<<<<<<<<<<<<< @@ -2304,7 +2304,7 @@ static const char __pyx_k__37[] = "["; static const char __pyx_k__38[] = " '"; static const char __pyx_k__41[] = "'."; static const char __pyx_k__42[] = ")."; -static const char __pyx_k__53[] = "*"; +static const char __pyx_k__52[] = "*"; static const char __pyx_k_add[] = "add"; static const char __pyx_k_day[] = "day"; static const char __pyx_k_del[] = "__del__"; @@ -2371,10 +2371,7 @@ static const char __pyx_k_sysid[] = "sysid"; static const char __pyx_k_throw[] = "throw"; static const char __pyx_k_trace[] = "trace"; static const char __pyx_k_upper[] = "upper"; -static const char __pyx_k_utf_8[] = "utf-8"; static const char __pyx_k_value[] = "value"; -static const char __pyx_k_wfile[] = "wfile"; -static const char __pyx_k_write[] = "write"; static const char __pyx_k_Server[] = "Server"; static const char __pyx_k_Thread[] = "Thread"; static const char __pyx_k_Values[] = "\n Values: "; @@ -2384,7 +2381,6 @@ static const char __pyx_k_client[] = "client"; static const char __pyx_k_commit[] = "commit"; static const char __pyx_k_config[] = "config"; static const char __pyx_k_decode[] = "decode"; -static const char __pyx_k_do_GET[] = "do_GET"; static const char __pyx_k_encode[] = "encode"; static const char __pyx_k_fields[] = "fields"; static const char __pyx_k_format[] = "format"; @@ -2412,6 +2408,7 @@ static const char __pyx_k_rsplit[] = "rsplit"; static const char __pyx_k_rstrip[] = "rstrip"; static const char __pyx_k_second[] = "second"; static const char __pyx_k_server[] = "server"; +static const char __pyx_k_socket[] = "socket"; static const char __pyx_k_t_code[] = "t_code"; static const char __pyx_k_target[] = "target"; static const char __pyx_k_update[] = "update"; @@ -2489,7 +2486,6 @@ static const char __pyx_k_reduce_ex[] = "__reduce_ex__"; static const char __pyx_k_sat_trace[] = "sat_trace"; static const char __pyx_k_sentBytes[] = "sentBytes"; static const char __pyx_k_sysNumber[] = "sysNumber"; -static const char __pyx_k_text_html[] = "text/html"; static const char __pyx_k_threading[] = "threading"; static const char __pyx_k_totalTime[] = "totalTime"; static const char __pyx_k_traceback[] = "traceback"; @@ -2525,11 +2521,9 @@ static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__"; static const char __pyx_k_queue_name[] = "queue_name"; static const char __pyx_k_serverName[] = "serverName"; static const char __pyx_k_server_log[] = "_server_log"; -static const char __pyx_k_tcp_socket[] = "tcp socket"; static const char __pyx_k_throughput[] = "throughput"; static const char __pyx_k_uclang_iso[] = "uclang_iso"; static const char __pyx_k_uclang_sap[] = "uclang_sap"; -static const char __pyx_k_BasicServer[] = "BasicServer"; static const char __pyx_k_MASK_RSTRIP[] = "_MASK_RSTRIP"; static const char __pyx_k_RFCTYPE_BCD[] = "RFCTYPE_BCD"; static const char __pyx_k_RFCTYPE_INT[] = "RFCTYPE_INT"; @@ -2538,10 +2532,9 @@ static const char __pyx_k_Request_for[] = "Request for '"; static const char __pyx_k_active_unit[] = "active_unit"; static const char __pyx_k_chars_found[] = " chars, found "; static const char __pyx_k_connections[] = "connections"; -static const char __pyx_k_end_headers[] = "end_headers"; static const char __pyx_k_enum_values[] = "enum_values"; static const char __pyx_k_get_unit_id[] = "_get_unit_id"; -static const char __pyx_k_http_server[] = "http.server"; +static const char __pyx_k_gethostname[] = "gethostname"; static const char __pyx_k_is_stateful[] = "is_stateful"; static const char __pyx_k_isoLanguage[] = "isoLanguage"; static const char __pyx_k_log_message[] = "log_message"; @@ -2551,9 +2544,7 @@ static const char __pyx_k_partnerIPv6[] = "partnerIPv6"; static const char __pyx_k_partnerType[] = "partnerType"; static const char __pyx_k_queue_names[] = "queue_names"; static const char __pyx_k_rolled_back[] = "rolled_back"; -static const char __pyx_k_send_header[] = "send_header"; static const char __pyx_k_synchronous[] = "synchronous"; -static const char __pyx_k_Content_type[] = "Content-type"; static const char __pyx_k_LOCALE_RADIX[] = "_LOCALE_RADIX"; static const char __pyx_k_RFCTYPE_BYTE[] = "RFCTYPE_BYTE"; static const char __pyx_k_RFCTYPE_CDAY[] = "RFCTYPE_CDAY"; @@ -2580,7 +2571,6 @@ static const char __pyx_k_sapnwrfc_ini[] = "sapnwrfc.ini"; static const char __pyx_k_sending_date[] = "sending_date"; static const char __pyx_k_sending_time[] = "sending_time"; static const char __pyx_k_server_log_2[] = "server_log"; -static const char __pyx_k_set_response[] = "_set_response"; static const char __pyx_k_staticmethod[] = "staticmethod"; static const char __pyx_k_string_to_py[] = "string_to_py"; static const char __pyx_k_unit_history[] = "unit_history"; @@ -2600,7 +2590,6 @@ static const char __pyx_k_numberOfCalls[] = "numberOfCalls"; static const char __pyx_k_peakBusyCount[] = "peakBusyCount"; static const char __pyx_k_receivedBytes[] = "receivedBytes"; static const char __pyx_k_reduce_cython[] = "__reduce_cython__"; -static const char __pyx_k_send_response[] = "send_response"; static const char __pyx_k_server_params[] = "server_params"; static const char __pyx_k_transactional[] = "transactional"; static const char __pyx_k_RFCTYPE_DECF16[] = "RFCTYPE_DECF16"; @@ -2659,7 +2648,6 @@ static const char __pyx_k_has_invalid_state[] = " has invalid state '"; static const char __pyx_k_registrationCount[] = "registrationCount"; static const char __pyx_k_request_context_2[] = "\nrequest_context: "; static const char __pyx_k_serializationTime[] = "serializationTime"; -static const char __pyx_k_BasicServer_do_GET[] = "BasicServer.do_GET"; static const char __pyx_k_CommunicationError[] = "CommunicationError"; static const char __pyx_k_RFCTYPE_ABAPOBJECT[] = "RFCTYPE_ABAPOBJECT"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; @@ -2667,7 +2655,6 @@ static const char __pyx_k_default_auth_check[] = "default_auth_check"; static const char __pyx_k_get_transaction_id[] = "_get_transaction_id"; static const char __pyx_k_set_cryptolib_path[] = "set_cryptolib_path"; static const char __pyx_k_FunctionDescription[] = "_params_count = __pyx_t_1; - /* "src/pyrfc/nwrfcsdk.pyx":168 + /* "src/pyrfc/nwrfcsdk.pyx":175 * def __cinit__(self, **params): * self._params_count = len(params) * if self._params_count < 1: # <<<<<<<<<<<<<< @@ -5410,14 +5372,14 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx __pyx_t_2 = ((__pyx_v_self->_params_count < 1) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/nwrfcsdk.pyx":169 + /* "src/pyrfc/nwrfcsdk.pyx":176 * self._params_count = len(params) * if self._params_count < 1: * raise RFCError("Connection parameters missing") # <<<<<<<<<<<<<< * self._params = malloc(self._params_count * sizeof(RFC_CONNECTION_PARAMETER)) * cdef int i = 0 */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 169, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -5431,14 +5393,14 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_Connection_parameters_missing) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_Connection_parameters_missing); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 169, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 169, __pyx_L1_error) + __PYX_ERR(0, 176, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":168 + /* "src/pyrfc/nwrfcsdk.pyx":175 * def __cinit__(self, **params): * self._params_count = len(params) * if self._params_count < 1: # <<<<<<<<<<<<<< @@ -5447,7 +5409,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx */ } - /* "src/pyrfc/nwrfcsdk.pyx":170 + /* "src/pyrfc/nwrfcsdk.pyx":177 * if self._params_count < 1: * raise RFCError("Connection parameters missing") * self._params = malloc(self._params_count * sizeof(RFC_CONNECTION_PARAMETER)) # <<<<<<<<<<<<<< @@ -5456,7 +5418,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx */ __pyx_v_self->_params = ((RFC_CONNECTION_PARAMETER *)malloc((__pyx_v_self->_params_count * (sizeof(RFC_CONNECTION_PARAMETER))))); - /* "src/pyrfc/nwrfcsdk.pyx":171 + /* "src/pyrfc/nwrfcsdk.pyx":178 * raise RFCError("Connection parameters missing") * self._params = malloc(self._params_count * sizeof(RFC_CONNECTION_PARAMETER)) * cdef int i = 0 # <<<<<<<<<<<<<< @@ -5465,7 +5427,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx */ __pyx_v_i = 0; - /* "src/pyrfc/nwrfcsdk.pyx":172 + /* "src/pyrfc/nwrfcsdk.pyx":179 * self._params = malloc(self._params_count * sizeof(RFC_CONNECTION_PARAMETER)) * cdef int i = 0 * for name, value in params.iteritems(): # <<<<<<<<<<<<<< @@ -5473,7 +5435,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx * self._params[i].value = fillString(value) */ __pyx_t_1 = 0; - __pyx_t_4 = __Pyx_dict_iterator(__pyx_v_params, 1, __pyx_n_s_iteritems, (&__pyx_t_6), (&__pyx_t_7)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L1_error) + __pyx_t_4 = __Pyx_dict_iterator(__pyx_v_params, 1, __pyx_n_s_iteritems, (&__pyx_t_6), (&__pyx_t_7)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_4; @@ -5481,7 +5443,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx while (1) { __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_6, &__pyx_t_1, &__pyx_t_4, &__pyx_t_5, NULL, __pyx_t_7); if (unlikely(__pyx_t_8 == 0)) break; - if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 172, __pyx_L1_error) + if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 179, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_4); @@ -5489,27 +5451,27 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":173 + /* "src/pyrfc/nwrfcsdk.pyx":180 * cdef int i = 0 * for name, value in params.iteritems(): * self._params[i].name = fillString(name) # <<<<<<<<<<<<<< * self._params[i].value = fillString(value) * i += 1 */ - __pyx_t_9 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_name); if (unlikely(__pyx_t_9 == ((SAP_UC *)NULL))) __PYX_ERR(0, 173, __pyx_L1_error) + __pyx_t_9 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_name); if (unlikely(__pyx_t_9 == ((SAP_UC *)NULL))) __PYX_ERR(0, 180, __pyx_L1_error) (__pyx_v_self->_params[__pyx_v_i]).name = __pyx_t_9; - /* "src/pyrfc/nwrfcsdk.pyx":174 + /* "src/pyrfc/nwrfcsdk.pyx":181 * for name, value in params.iteritems(): * self._params[i].name = fillString(name) * self._params[i].value = fillString(value) # <<<<<<<<<<<<<< * i += 1 * */ - __pyx_t_9 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_value); if (unlikely(__pyx_t_9 == ((SAP_UC *)NULL))) __PYX_ERR(0, 174, __pyx_L1_error) + __pyx_t_9 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_value); if (unlikely(__pyx_t_9 == ((SAP_UC *)NULL))) __PYX_ERR(0, 181, __pyx_L1_error) (__pyx_v_self->_params[__pyx_v_i]).value = __pyx_t_9; - /* "src/pyrfc/nwrfcsdk.pyx":175 + /* "src/pyrfc/nwrfcsdk.pyx":182 * self._params[i].name = fillString(name) * self._params[i].value = fillString(value) * i += 1 # <<<<<<<<<<<<<< @@ -5520,7 +5482,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":166 + /* "src/pyrfc/nwrfcsdk.pyx":173 * cdef RFC_CONNECTION_PARAMETER *_params * * def __cinit__(self, **params): # <<<<<<<<<<<<<< @@ -5544,7 +5506,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters___cinit__(struct __pyx return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":177 +/* "src/pyrfc/nwrfcsdk.pyx":184 * i += 1 * * def __del__(self): # <<<<<<<<<<<<<< @@ -5576,14 +5538,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_2__del__(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__del__", 0); - /* "src/pyrfc/nwrfcsdk.pyx":178 + /* "src/pyrfc/nwrfcsdk.pyx":185 * * def __del__(self): * self._free() # <<<<<<<<<<<<<< * * def _free(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_free); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 178, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_free); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -5597,12 +5559,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_2__del__(struct } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":177 + /* "src/pyrfc/nwrfcsdk.pyx":184 * i += 1 * * def __del__(self): # <<<<<<<<<<<<<< @@ -5625,7 +5587,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_2__del__(struct return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":180 +/* "src/pyrfc/nwrfcsdk.pyx":187 * self._free() * * def _free(self): # <<<<<<<<<<<<<< @@ -5656,7 +5618,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ unsigned int __pyx_t_4; __Pyx_RefNannySetupContext("_free", 0); - /* "src/pyrfc/nwrfcsdk.pyx":181 + /* "src/pyrfc/nwrfcsdk.pyx":188 * * def _free(self): * if self._params_count > 0: # <<<<<<<<<<<<<< @@ -5666,7 +5628,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ __pyx_t_1 = ((__pyx_v_self->_params_count > 0) != 0); if (__pyx_t_1) { - /* "src/pyrfc/nwrfcsdk.pyx":182 + /* "src/pyrfc/nwrfcsdk.pyx":189 * def _free(self): * if self._params_count > 0: * for i in range(self._params_count): # <<<<<<<<<<<<<< @@ -5678,7 +5640,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) { __pyx_v_i = __pyx_t_4; - /* "src/pyrfc/nwrfcsdk.pyx":183 + /* "src/pyrfc/nwrfcsdk.pyx":190 * if self._params_count > 0: * for i in range(self._params_count): * free(self._params[i].name) # <<<<<<<<<<<<<< @@ -5687,7 +5649,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ */ free(((SAP_UC *)(__pyx_v_self->_params[__pyx_v_i]).name)); - /* "src/pyrfc/nwrfcsdk.pyx":184 + /* "src/pyrfc/nwrfcsdk.pyx":191 * for i in range(self._params_count): * free(self._params[i].name) * free( self._params[i].value) # <<<<<<<<<<<<<< @@ -5697,7 +5659,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ free(((SAP_UC *)(__pyx_v_self->_params[__pyx_v_i]).value)); } - /* "src/pyrfc/nwrfcsdk.pyx":185 + /* "src/pyrfc/nwrfcsdk.pyx":192 * free(self._params[i].name) * free( self._params[i].value) * free(self._params) # <<<<<<<<<<<<<< @@ -5706,7 +5668,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ */ free(__pyx_v_self->_params); - /* "src/pyrfc/nwrfcsdk.pyx":186 + /* "src/pyrfc/nwrfcsdk.pyx":193 * free( self._params[i].value) * free(self._params) * self._params_count = 0 # <<<<<<<<<<<<<< @@ -5715,7 +5677,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ */ __pyx_v_self->_params_count = 0; - /* "src/pyrfc/nwrfcsdk.pyx":181 + /* "src/pyrfc/nwrfcsdk.pyx":188 * * def _free(self): * if self._params_count > 0: # <<<<<<<<<<<<<< @@ -5724,7 +5686,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_4_free(struct __ */ } - /* "src/pyrfc/nwrfcsdk.pyx":180 + /* "src/pyrfc/nwrfcsdk.pyx":187 * self._free() * * def _free(self): # <<<<<<<<<<<<<< @@ -5852,7 +5814,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_20ConnectionParameters_8__setstate_cyth return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":218 +/* "src/pyrfc/nwrfcsdk.pyx":225 * * """ * def __init__(self, name, nuc_length, uc_length): # <<<<<<<<<<<<<< @@ -5901,23 +5863,23 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_1__init__(PyObject *_ case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 218, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 1); __PYX_ERR(0, 225, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nuc_length)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 218, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 2); __PYX_ERR(0, 225, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uc_length)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 218, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, 3); __PYX_ERR(0, 225, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 218, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 225, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 4) { goto __pyx_L5_argtuple_error; @@ -5934,7 +5896,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_1__init__(PyObject *_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 218, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 225, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.TypeDescription.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -5964,46 +5926,46 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "src/pyrfc/nwrfcsdk.pyx":219 + /* "src/pyrfc/nwrfcsdk.pyx":226 * """ * def __init__(self, name, nuc_length, uc_length): * self.fields = [] # <<<<<<<<<<<<<< * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_fields, __pyx_t_1) < 0) __PYX_ERR(0, 219, __pyx_L1_error) + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_fields, __pyx_t_1) < 0) __PYX_ERR(0, 226, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":220 + /* "src/pyrfc/nwrfcsdk.pyx":227 * def __init__(self, name, nuc_length, uc_length): * self.fields = [] * if len(name)<1 or len(name)>30: # <<<<<<<<<<<<<< * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * for int_field in [nuc_length, uc_length]: */ - __pyx_t_3 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 220, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 227, __pyx_L1_error) __pyx_t_4 = ((__pyx_t_3 < 1) != 0); if (!__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } - __pyx_t_3 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 220, __pyx_L1_error) + __pyx_t_3 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 227, __pyx_L1_error) __pyx_t_4 = ((__pyx_t_3 > 30) != 0); __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/nwrfcsdk.pyx":221 + /* "src/pyrfc/nwrfcsdk.pyx":228 * self.fields = [] * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") # <<<<<<<<<<<<<< * for int_field in [nuc_length, uc_length]: * if type(int_field) not in [int, long]: */ - __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = 0; __pyx_t_5 = 127; @@ -6011,7 +5973,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE __pyx_t_3 += 23; __Pyx_GIVEREF(__pyx_kp_u_field_name_string); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_field_name_string); - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; __pyx_t_3 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6); @@ -6022,17 +5984,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE __pyx_t_3 += 28; __Pyx_GIVEREF(__pyx_kp_u_should_be_from_1_30_chars); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_should_be_from_1_30_chars); - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 221, __pyx_L1_error) + __PYX_ERR(0, 228, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":220 + /* "src/pyrfc/nwrfcsdk.pyx":227 * def __init__(self, name, nuc_length, uc_length): * self.fields = [] * if len(name)<1 or len(name)>30: # <<<<<<<<<<<<<< @@ -6041,14 +6003,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE */ } - /* "src/pyrfc/nwrfcsdk.pyx":222 + /* "src/pyrfc/nwrfcsdk.pyx":229 * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * for int_field in [nuc_length, uc_length]: # <<<<<<<<<<<<<< * if type(int_field) not in [int, long]: * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") */ - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_nuc_length); __Pyx_GIVEREF(__pyx_v_nuc_length); @@ -6061,15 +6023,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE for (;;) { if (__pyx_t_3 >= 2) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 229, __pyx_L1_error) #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif __Pyx_XDECREF_SET(__pyx_v_int_field, __pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":223 + /* "src/pyrfc/nwrfcsdk.pyx":230 * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * for int_field in [nuc_length, uc_length]: * if type(int_field) not in [int, long]: # <<<<<<<<<<<<<< @@ -6078,16 +6040,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE */ __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_int_field))); __pyx_t_1 = ((PyObject *)Py_TYPE(__pyx_v_int_field)); - __pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)(&PyInt_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 223, __pyx_L1_error) + __pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)(&PyInt_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_4) { } else { __pyx_t_2 = __pyx_t_4; goto __pyx_L9_bool_binop_done; } - __pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)(&PyLong_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 223, __pyx_L1_error) - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 223, __pyx_L1_error) + __pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)(&PyLong_Type)), Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 230, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_2 = __pyx_t_4; __pyx_L9_bool_binop_done:; @@ -6095,14 +6057,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE __pyx_t_4 = (__pyx_t_2 != 0); if (unlikely(__pyx_t_4)) { - /* "src/pyrfc/nwrfcsdk.pyx":224 + /* "src/pyrfc/nwrfcsdk.pyx":231 * for int_field in [nuc_length, uc_length]: * if type(int_field) not in [int, long]: * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") # <<<<<<<<<<<<<< * self.name = name * self.nuc_length = nuc_length */ - __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_8 = 0; __pyx_t_5 = 127; @@ -6110,7 +6072,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE __pyx_t_8 += 7; __Pyx_GIVEREF(__pyx_kp_u_field); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_field); - __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5; __pyx_t_8 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); @@ -6121,7 +6083,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE __pyx_t_8 += 10; __Pyx_GIVEREF(__pyx_kp_u_length); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_length); - __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_int_field, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_int_field, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5; __pyx_t_8 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); @@ -6132,17 +6094,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE __pyx_t_8 += 25; __Pyx_GIVEREF(__pyx_kp_u_must_be_of_type_integer); PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_must_be_of_type_integer); - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_8, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_8, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(0, 224, __pyx_L1_error) + __PYX_ERR(0, 231, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":223 + /* "src/pyrfc/nwrfcsdk.pyx":230 * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * for int_field in [nuc_length, uc_length]: * if type(int_field) not in [int, long]: # <<<<<<<<<<<<<< @@ -6151,7 +6113,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE */ } - /* "src/pyrfc/nwrfcsdk.pyx":222 + /* "src/pyrfc/nwrfcsdk.pyx":229 * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * for int_field in [nuc_length, uc_length]: # <<<<<<<<<<<<<< @@ -6161,34 +6123,34 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":225 + /* "src/pyrfc/nwrfcsdk.pyx":232 * if type(int_field) not in [int, long]: * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") * self.name = name # <<<<<<<<<<<<<< * self.nuc_length = nuc_length * self.uc_length = uc_length */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 225, __pyx_L1_error) + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 232, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":226 + /* "src/pyrfc/nwrfcsdk.pyx":233 * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") * self.name = name * self.nuc_length = nuc_length # <<<<<<<<<<<<<< * self.uc_length = uc_length * */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_nuc_length, __pyx_v_nuc_length) < 0) __PYX_ERR(0, 226, __pyx_L1_error) + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_nuc_length, __pyx_v_nuc_length) < 0) __PYX_ERR(0, 233, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":227 + /* "src/pyrfc/nwrfcsdk.pyx":234 * self.name = name * self.nuc_length = nuc_length * self.uc_length = uc_length # <<<<<<<<<<<<<< * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_uc_length, __pyx_v_uc_length) < 0) __PYX_ERR(0, 227, __pyx_L1_error) + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_uc_length, __pyx_v_uc_length) < 0) __PYX_ERR(0, 234, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":218 + /* "src/pyrfc/nwrfcsdk.pyx":225 * * """ * def __init__(self, name, nuc_length, uc_length): # <<<<<<<<<<<<<< @@ -6212,7 +6174,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription___init__(CYTHON_UNUSE return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":229 +/* "src/pyrfc/nwrfcsdk.pyx":236 * self.uc_length = uc_length * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, # <<<<<<<<<<<<<< @@ -6245,7 +6207,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_3add_field(PyObject * PyObject* values[9] = {0,0,0,0,0,0,0,0,0}; values[7] = ((PyObject *)((PyObject *)__pyx_int_0)); - /* "src/pyrfc/nwrfcsdk.pyx":230 + /* "src/pyrfc/nwrfcsdk.pyx":237 * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, * uc_offset, decimals=0, type_description=None): # <<<<<<<<<<<<<< @@ -6287,37 +6249,37 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_3add_field(PyObject * case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 1); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 1); __PYX_ERR(0, 236, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_field_type)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 2); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 2); __PYX_ERR(0, 236, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nuc_length)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 3); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 3); __PYX_ERR(0, 236, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uc_length)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 4); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 4); __PYX_ERR(0, 236, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nuc_offset)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 5); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 5); __PYX_ERR(0, 236, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uc_offset)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 6); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, 6); __PYX_ERR(0, 236, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 7: @@ -6333,7 +6295,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_3add_field(PyObject * } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_field") < 0)) __PYX_ERR(0, 229, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_field") < 0)) __PYX_ERR(0, 236, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -6364,7 +6326,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_3add_field(PyObject * } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 229, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_field", 0, 7, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 236, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.TypeDescription.add_field", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -6372,7 +6334,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_15TypeDescription_3add_field(PyObject * __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(__pyx_self, __pyx_v_self, __pyx_v_name, __pyx_v_field_type, __pyx_v_nuc_length, __pyx_v_uc_length, __pyx_v_nuc_offset, __pyx_v_uc_offset, __pyx_v_decimals, __pyx_v_type_description); - /* "src/pyrfc/nwrfcsdk.pyx":229 + /* "src/pyrfc/nwrfcsdk.pyx":236 * self.uc_length = uc_length * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, # <<<<<<<<<<<<<< @@ -6406,18 +6368,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_field", 0); - /* "src/pyrfc/nwrfcsdk.pyx":250 + /* "src/pyrfc/nwrfcsdk.pyx":257 * :type type_description: object of class TypeDescription * """ * if len(name)<1: # <<<<<<<<<<<<<< * return None * if len(name)>30: */ - __pyx_t_1 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 250, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 257, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_1 < 1) != 0); if (__pyx_t_2) { - /* "src/pyrfc/nwrfcsdk.pyx":251 + /* "src/pyrfc/nwrfcsdk.pyx":258 * """ * if len(name)<1: * return None # <<<<<<<<<<<<<< @@ -6428,7 +6390,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "src/pyrfc/nwrfcsdk.pyx":250 + /* "src/pyrfc/nwrfcsdk.pyx":257 * :type type_description: object of class TypeDescription * """ * if len(name)<1: # <<<<<<<<<<<<<< @@ -6437,25 +6399,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU */ } - /* "src/pyrfc/nwrfcsdk.pyx":252 + /* "src/pyrfc/nwrfcsdk.pyx":259 * if len(name)<1: * return None * if len(name)>30: # <<<<<<<<<<<<<< * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * if field_type not in enum_names(RfcFieldType): */ - __pyx_t_1 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 252, __pyx_L1_error) + __pyx_t_1 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 259, __pyx_L1_error) __pyx_t_2 = ((__pyx_t_1 > 30) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/nwrfcsdk.pyx":253 + /* "src/pyrfc/nwrfcsdk.pyx":260 * return None * if len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") # <<<<<<<<<<<<<< * if field_type not in enum_names(RfcFieldType): * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") */ - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 253, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_4 = 127; @@ -6463,7 +6425,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_1 += 23; __Pyx_GIVEREF(__pyx_kp_u_field_name_string); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_field_name_string); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 253, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4; __pyx_t_1 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -6474,17 +6436,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_1 += 28; __Pyx_GIVEREF(__pyx_kp_u_should_be_from_1_30_chars); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_should_be_from_1_30_chars); - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 253, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 253, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 253, __pyx_L1_error) + __PYX_ERR(0, 260, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":252 + /* "src/pyrfc/nwrfcsdk.pyx":259 * if len(name)<1: * return None * if len(name)>30: # <<<<<<<<<<<<<< @@ -6493,16 +6455,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU */ } - /* "src/pyrfc/nwrfcsdk.pyx":254 + /* "src/pyrfc/nwrfcsdk.pyx":261 * if len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * if field_type not in enum_names(RfcFieldType): # <<<<<<<<<<<<<< * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: */ - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 254, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { @@ -6517,22 +6479,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 254, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_field_type, __pyx_t_3, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 254, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_field_type, __pyx_t_3, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 261, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_8 = (__pyx_t_2 != 0); if (unlikely(__pyx_t_8)) { - /* "src/pyrfc/nwrfcsdk.pyx":255 + /* "src/pyrfc/nwrfcsdk.pyx":262 * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * if field_type not in enum_names(RfcFieldType): * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") # <<<<<<<<<<<<<< * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: * if not isinstance(int_field, (int, long)): */ - __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = 0; __pyx_t_4 = 127; @@ -6540,7 +6502,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_1 += 23; __Pyx_GIVEREF(__pyx_kp_u_field_type_string); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_field_type_string); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_field_type, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 255, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_field_type, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4; __pyx_t_1 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -6551,9 +6513,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_1 += 13; __Pyx_GIVEREF(__pyx_kp_u_must_be_in); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_must_be_in); - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 255, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { @@ -6568,10 +6530,10 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_9, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 255, __pyx_L1_error) + if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_4; @@ -6579,17 +6541,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_3, 4, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 255, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_3, 4, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 255, __pyx_L1_error) + __PYX_ERR(0, 262, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":254 + /* "src/pyrfc/nwrfcsdk.pyx":261 * if len(name)>30: * raise TypeError(f"field 'name' (string) '{name}' should be from 1-30 chars.") * if field_type not in enum_names(RfcFieldType): # <<<<<<<<<<<<<< @@ -6598,14 +6560,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU */ } - /* "src/pyrfc/nwrfcsdk.pyx":256 + /* "src/pyrfc/nwrfcsdk.pyx":263 * if field_type not in enum_names(RfcFieldType): * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: # <<<<<<<<<<<<<< * if not isinstance(int_field, (int, long)): * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") */ - __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_nuc_length); __Pyx_GIVEREF(__pyx_v_nuc_length); @@ -6624,15 +6586,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU for (;;) { if (__pyx_t_1 >= 4) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 256, __pyx_L1_error) + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 263, __pyx_L1_error) #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 256, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(__pyx_t_6, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 263, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); #endif __Pyx_XDECREF_SET(__pyx_v_int_field, __pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":257 + /* "src/pyrfc/nwrfcsdk.pyx":264 * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: * if not isinstance(int_field, (int, long)): # <<<<<<<<<<<<<< @@ -6653,14 +6615,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_2 = ((!(__pyx_t_8 != 0)) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/nwrfcsdk.pyx":258 + /* "src/pyrfc/nwrfcsdk.pyx":265 * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: * if not isinstance(int_field, (int, long)): * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") # <<<<<<<<<<<<<< * self.fields.append({ * 'name': name, */ - __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 258, __pyx_L1_error) + __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_11 = 0; __pyx_t_4 = 127; @@ -6668,7 +6630,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_11 += 7; __Pyx_GIVEREF(__pyx_kp_u_field); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_field); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 258, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4; __pyx_t_11 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -6679,7 +6641,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_11 += 10; __Pyx_GIVEREF(__pyx_kp_u_length); PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_length); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_int_field, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 258, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_int_field, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4; __pyx_t_11 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -6690,17 +6652,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU __pyx_t_11 += 25; __Pyx_GIVEREF(__pyx_kp_u_must_be_of_type_integer); PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_kp_u_must_be_of_type_integer); - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_3, 5, __pyx_t_11, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 258, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_3, 5, __pyx_t_11, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 258, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 265, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(0, 258, __pyx_L1_error) + __PYX_ERR(0, 265, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":257 + /* "src/pyrfc/nwrfcsdk.pyx":264 * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: * if not isinstance(int_field, (int, long)): # <<<<<<<<<<<<<< @@ -6709,7 +6671,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU */ } - /* "src/pyrfc/nwrfcsdk.pyx":256 + /* "src/pyrfc/nwrfcsdk.pyx":263 * if field_type not in enum_names(RfcFieldType): * raise TypeError(f"'field_type' (string) '{field_type}' must be in {enum_names(RfcFieldType)}") * for int_field in [nuc_length, nuc_offset, uc_length, uc_offset]: # <<<<<<<<<<<<<< @@ -6719,102 +6681,102 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":259 + /* "src/pyrfc/nwrfcsdk.pyx":266 * if not isinstance(int_field, (int, long)): * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") * self.fields.append({ # <<<<<<<<<<<<<< * 'name': name, * 'field_type': field_type, */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fields); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 259, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fields); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - /* "src/pyrfc/nwrfcsdk.pyx":260 + /* "src/pyrfc/nwrfcsdk.pyx":267 * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") * self.fields.append({ * 'name': name, # <<<<<<<<<<<<<< * 'field_type': field_type, * 'nuc_length': nuc_length, */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":261 + /* "src/pyrfc/nwrfcsdk.pyx":268 * self.fields.append({ * 'name': name, * 'field_type': field_type, # <<<<<<<<<<<<<< * 'nuc_length': nuc_length, * 'nuc_offset': nuc_offset, */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_field_type, __pyx_v_field_type) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_field_type, __pyx_v_field_type) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":262 + /* "src/pyrfc/nwrfcsdk.pyx":269 * 'name': name, * 'field_type': field_type, * 'nuc_length': nuc_length, # <<<<<<<<<<<<<< * 'nuc_offset': nuc_offset, * 'uc_length': uc_length, */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nuc_length, __pyx_v_nuc_length) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nuc_length, __pyx_v_nuc_length) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":263 + /* "src/pyrfc/nwrfcsdk.pyx":270 * 'field_type': field_type, * 'nuc_length': nuc_length, * 'nuc_offset': nuc_offset, # <<<<<<<<<<<<<< * 'uc_length': uc_length, * 'uc_offset': uc_offset, */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nuc_offset, __pyx_v_nuc_offset) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_nuc_offset, __pyx_v_nuc_offset) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":264 + /* "src/pyrfc/nwrfcsdk.pyx":271 * 'nuc_length': nuc_length, * 'nuc_offset': nuc_offset, * 'uc_length': uc_length, # <<<<<<<<<<<<<< * 'uc_offset': uc_offset, * 'decimals': decimals, */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_uc_length, __pyx_v_uc_length) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_uc_length, __pyx_v_uc_length) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":265 + /* "src/pyrfc/nwrfcsdk.pyx":272 * 'nuc_offset': nuc_offset, * 'uc_length': uc_length, * 'uc_offset': uc_offset, # <<<<<<<<<<<<<< * 'decimals': decimals, * 'type_description': type_description */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_uc_offset, __pyx_v_uc_offset) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_uc_offset, __pyx_v_uc_offset) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":266 + /* "src/pyrfc/nwrfcsdk.pyx":273 * 'uc_length': uc_length, * 'uc_offset': uc_offset, * 'decimals': decimals, # <<<<<<<<<<<<<< * 'type_description': type_description * }) */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_decimals, __pyx_v_decimals) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_decimals, __pyx_v_decimals) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":267 + /* "src/pyrfc/nwrfcsdk.pyx":274 * 'uc_offset': uc_offset, * 'decimals': decimals, * 'type_description': type_description # <<<<<<<<<<<<<< * }) * */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type_description, __pyx_v_type_description) < 0) __PYX_ERR(0, 260, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_type_description, __pyx_v_type_description) < 0) __PYX_ERR(0, 267, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":259 + /* "src/pyrfc/nwrfcsdk.pyx":266 * if not isinstance(int_field, (int, long)): * raise TypeError(f"field '{name}' length '{int_field}' must be of type integer") * self.fields.append({ # <<<<<<<<<<<<<< * 'name': name, * 'field_type': field_type, */ - __pyx_t_12 = __Pyx_PyObject_Append(__pyx_t_6, __pyx_t_3); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(0, 259, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyObject_Append(__pyx_t_6, __pyx_t_3); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(0, 266, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":229 + /* "src/pyrfc/nwrfcsdk.pyx":236 * self.uc_length = uc_length * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, # <<<<<<<<<<<<<< @@ -6840,7 +6802,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_2add_field(CYTHON_UNU return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":270 +/* "src/pyrfc/nwrfcsdk.pyx":277 * }) * * def __repr__(self): # <<<<<<<<<<<<<< @@ -6876,7 +6838,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_4__repr__(CYTHON_UNUS int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "src/pyrfc/nwrfcsdk.pyx":271 + /* "src/pyrfc/nwrfcsdk.pyx":278 * * def __repr__(self): * return f" __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; @@ -6906,11 +6868,11 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_4__repr__(CYTHON_UNUS __pyx_t_2 += 7; __Pyx_GIVEREF(__pyx_kp_u_with); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_with); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fields); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 271, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_fields); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 271, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_6, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 271, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_6, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); @@ -6921,16 +6883,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_4__repr__(CYTHON_UNUS __Pyx_GIVEREF(__pyx_kp_u_fields_n_uclength); PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_fields_n_uclength); - /* "src/pyrfc/nwrfcsdk.pyx":272 + /* "src/pyrfc/nwrfcsdk.pyx":279 * def __repr__(self): * return f"" # <<<<<<<<<<<<<< * * ################################################################################ */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 272, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 272, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3; @@ -6942,9 +6904,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_4__repr__(CYTHON_UNUS __pyx_t_2 += 1; __Pyx_GIVEREF(__pyx_kp_u__3); PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 272, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 272, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 279, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; @@ -6957,21 +6919,21 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_4__repr__(CYTHON_UNUS __Pyx_GIVEREF(__pyx_kp_u__4); PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4); - /* "src/pyrfc/nwrfcsdk.pyx":271 + /* "src/pyrfc/nwrfcsdk.pyx":278 * * def __repr__(self): * return f"" * */ - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 271, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "src/pyrfc/nwrfcsdk.pyx":270 + /* "src/pyrfc/nwrfcsdk.pyx":277 * }) * * def __repr__(self): # <<<<<<<<<<<<<< @@ -6992,7 +6954,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_15TypeDescription_4__repr__(CYTHON_UNUS return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":302 +/* "src/pyrfc/nwrfcsdk.pyx":309 * * """ * def __init__(self, name): # <<<<<<<<<<<<<< @@ -7035,11 +6997,11 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_1__init__(PyObjec case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 302, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); __PYX_ERR(0, 309, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 302, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 309, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -7052,7 +7014,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_1__init__(PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 302, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 309, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.FunctionDescription.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -7074,28 +7036,28 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription___init__(CYTHON_U int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "src/pyrfc/nwrfcsdk.pyx":303 + /* "src/pyrfc/nwrfcsdk.pyx":310 * """ * def __init__(self, name): * self.name = name # <<<<<<<<<<<<<< * self.parameters = [] * */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 303, __pyx_L1_error) + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 310, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":304 + /* "src/pyrfc/nwrfcsdk.pyx":311 * def __init__(self, name): * self.name = name * self.parameters = [] # <<<<<<<<<<<<<< * * def add_parameter(self, name, parameter_type, direction, nuc_length, */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error) + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_parameters, __pyx_t_1) < 0) __PYX_ERR(0, 304, __pyx_L1_error) + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_parameters, __pyx_t_1) < 0) __PYX_ERR(0, 311, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":302 + /* "src/pyrfc/nwrfcsdk.pyx":309 * * """ * def __init__(self, name): # <<<<<<<<<<<<<< @@ -7116,7 +7078,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription___init__(CYTHON_U return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":306 +/* "src/pyrfc/nwrfcsdk.pyx":313 * self.parameters = [] * * def add_parameter(self, name, parameter_type, direction, nuc_length, # <<<<<<<<<<<<<< @@ -7153,7 +7115,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter(Py values[7] = ((PyObject *)((PyObject*)__pyx_kp_s__5)); values[8] = ((PyObject *)((PyObject*)__pyx_kp_s__5)); - /* "src/pyrfc/nwrfcsdk.pyx":308 + /* "src/pyrfc/nwrfcsdk.pyx":315 * def add_parameter(self, name, parameter_type, direction, nuc_length, * uc_length, decimals=0, default_value="", parameter_text="", * optional=False, type_description=None): # <<<<<<<<<<<<<< @@ -7200,31 +7162,31 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter(Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 1); __PYX_ERR(0, 306, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 1); __PYX_ERR(0, 313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_parameter_type)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 2); __PYX_ERR(0, 306, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 2); __PYX_ERR(0, 313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 3: if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_direction)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 3); __PYX_ERR(0, 306, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 3); __PYX_ERR(0, 313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 4: if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nuc_length)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 4); __PYX_ERR(0, 306, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 4); __PYX_ERR(0, 313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 5: if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uc_length)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 5); __PYX_ERR(0, 306, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, 5); __PYX_ERR(0, 313, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 6: @@ -7258,7 +7220,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter(Py } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_parameter") < 0)) __PYX_ERR(0, 306, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_parameter") < 0)) __PYX_ERR(0, 313, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -7296,7 +7258,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter(Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 306, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_parameter", 0, 6, 11, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 313, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.FunctionDescription.add_parameter", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -7304,7 +7266,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter(Py __pyx_L4_argument_unpacking_done:; __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(__pyx_self, __pyx_v_self, __pyx_v_name, __pyx_v_parameter_type, __pyx_v_direction, __pyx_v_nuc_length, __pyx_v_uc_length, __pyx_v_decimals, __pyx_v_default_value, __pyx_v_parameter_text, __pyx_v_optional, __pyx_v_type_description); - /* "src/pyrfc/nwrfcsdk.pyx":306 + /* "src/pyrfc/nwrfcsdk.pyx":313 * self.parameters = [] * * def add_parameter(self, name, parameter_type, direction, nuc_length, # <<<<<<<<<<<<<< @@ -7335,34 +7297,34 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_parameter", 0); - /* "src/pyrfc/nwrfcsdk.pyx":332 + /* "src/pyrfc/nwrfcsdk.pyx":339 * :type type_description: object of class TypeDescription * """ * if len(name)<1 or len(name)>30: # <<<<<<<<<<<<<< * raise TypeError(f"field 'name' (string) {name} should be from 1-30 chars.") * if parameter_type not in enum_names(RfcFieldType): */ - __pyx_t_2 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 332, __pyx_L1_error) + __pyx_t_2 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 339, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_2 < 1) != 0); if (!__pyx_t_3) { } else { __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } - __pyx_t_2 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 332, __pyx_L1_error) + __pyx_t_2 = PyObject_Length(__pyx_v_name); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 339, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_2 > 30) != 0); __pyx_t_1 = __pyx_t_3; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/nwrfcsdk.pyx":333 + /* "src/pyrfc/nwrfcsdk.pyx":340 * """ * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) {name} should be from 1-30 chars.") # <<<<<<<<<<<<<< * if parameter_type not in enum_names(RfcFieldType): * raise TypeError(f"'parameter_type' (string) '{parameter_type}' must be in {enum_names(RfcFieldType)}") */ - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 333, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = 0; __pyx_t_5 = 127; @@ -7370,7 +7332,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 22; __Pyx_GIVEREF(__pyx_kp_u_field_name_string_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_field_name_string_2); - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 333, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6); @@ -7381,17 +7343,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 27; __Pyx_GIVEREF(__pyx_kp_u_should_be_from_1_30_chars_2); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_should_be_from_1_30_chars_2); - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 333, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 333, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 333, __pyx_L1_error) + __PYX_ERR(0, 340, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":332 + /* "src/pyrfc/nwrfcsdk.pyx":339 * :type type_description: object of class TypeDescription * """ * if len(name)<1 or len(name)>30: # <<<<<<<<<<<<<< @@ -7400,16 +7362,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY */ } - /* "src/pyrfc/nwrfcsdk.pyx":334 + /* "src/pyrfc/nwrfcsdk.pyx":341 * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) {name} should be from 1-30 chars.") * if parameter_type not in enum_names(RfcFieldType): # <<<<<<<<<<<<<< * raise TypeError(f"'parameter_type' (string) '{parameter_type}' must be in {enum_names(RfcFieldType)}") * if direction not in enum_names(RfcParameterDirection): */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 334, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 334, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { @@ -7424,22 +7386,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 334, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_parameter_type, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 334, __pyx_L1_error) + __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_v_parameter_type, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 341, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__pyx_t_1 != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/nwrfcsdk.pyx":335 + /* "src/pyrfc/nwrfcsdk.pyx":342 * raise TypeError(f"field 'name' (string) {name} should be from 1-30 chars.") * if parameter_type not in enum_names(RfcFieldType): * raise TypeError(f"'parameter_type' (string) '{parameter_type}' must be in {enum_names(RfcFieldType)}") # <<<<<<<<<<<<<< * if direction not in enum_names(RfcParameterDirection): * raise TypeError(f"'direction' (string) '{direction}' must be in '{enum_names(RfcParameterDirection)}'") */ - __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 335, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = 0; __pyx_t_5 = 127; @@ -7447,7 +7409,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 27; __Pyx_GIVEREF(__pyx_kp_u_parameter_type_string); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_parameter_type_string); - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_parameter_type, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 335, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_parameter_type, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6); @@ -7458,9 +7420,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 13; __Pyx_GIVEREF(__pyx_kp_u_must_be_in); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_must_be_in); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 335, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 335, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -7475,10 +7437,10 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_6 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 335, __pyx_L1_error) + if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 335, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5; @@ -7486,17 +7448,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 335, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 335, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 335, __pyx_L1_error) + __PYX_ERR(0, 342, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":334 + /* "src/pyrfc/nwrfcsdk.pyx":341 * if len(name)<1 or len(name)>30: * raise TypeError(f"field 'name' (string) {name} should be from 1-30 chars.") * if parameter_type not in enum_names(RfcFieldType): # <<<<<<<<<<<<<< @@ -7505,16 +7467,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY */ } - /* "src/pyrfc/nwrfcsdk.pyx":336 + /* "src/pyrfc/nwrfcsdk.pyx":343 * if parameter_type not in enum_names(RfcFieldType): * raise TypeError(f"'parameter_type' (string) '{parameter_type}' must be in {enum_names(RfcFieldType)}") * if direction not in enum_names(RfcParameterDirection): # <<<<<<<<<<<<<< * raise TypeError(f"'direction' (string) '{direction}' must be in '{enum_names(RfcParameterDirection)}'") * if len(default_value)>30: */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 336, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_RfcParameterDirection); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 336, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_RfcParameterDirection); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -7529,22 +7491,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 336, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_direction, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 336, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_direction, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 343, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_1 = (__pyx_t_3 != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/nwrfcsdk.pyx":337 + /* "src/pyrfc/nwrfcsdk.pyx":344 * raise TypeError(f"'parameter_type' (string) '{parameter_type}' must be in {enum_names(RfcFieldType)}") * if direction not in enum_names(RfcParameterDirection): * raise TypeError(f"'direction' (string) '{direction}' must be in '{enum_names(RfcParameterDirection)}'") # <<<<<<<<<<<<<< * if len(default_value)>30: * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") */ - __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 337, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = 0; __pyx_t_5 = 127; @@ -7552,7 +7514,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 22; __Pyx_GIVEREF(__pyx_kp_u_direction_string); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_direction_string); - __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_direction, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 337, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_direction, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); @@ -7563,9 +7525,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 14; __Pyx_GIVEREF(__pyx_kp_u_must_be_in_2); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_must_be_in_2); - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 337, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_enum_names); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_RfcParameterDirection); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 337, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_RfcParameterDirection); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_9 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) { @@ -7580,10 +7542,10 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 337, __pyx_L1_error) + if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 337, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; @@ -7595,17 +7557,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__6); - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 337, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 337, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 337, __pyx_L1_error) + __PYX_ERR(0, 344, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":336 + /* "src/pyrfc/nwrfcsdk.pyx":343 * if parameter_type not in enum_names(RfcFieldType): * raise TypeError(f"'parameter_type' (string) '{parameter_type}' must be in {enum_names(RfcFieldType)}") * if direction not in enum_names(RfcParameterDirection): # <<<<<<<<<<<<<< @@ -7614,25 +7576,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY */ } - /* "src/pyrfc/nwrfcsdk.pyx":338 + /* "src/pyrfc/nwrfcsdk.pyx":345 * if direction not in enum_names(RfcParameterDirection): * raise TypeError(f"'direction' (string) '{direction}' must be in '{enum_names(RfcParameterDirection)}'") * if len(default_value)>30: # <<<<<<<<<<<<<< * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") * if len(parameter_text)>79: */ - __pyx_t_2 = PyObject_Length(__pyx_v_default_value); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 338, __pyx_L1_error) + __pyx_t_2 = PyObject_Length(__pyx_v_default_value); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 345, __pyx_L1_error) __pyx_t_1 = ((__pyx_t_2 > 30) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/nwrfcsdk.pyx":339 + /* "src/pyrfc/nwrfcsdk.pyx":346 * raise TypeError(f"'direction' (string) '{direction}' must be in '{enum_names(RfcParameterDirection)}'") * if len(default_value)>30: * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") # <<<<<<<<<<<<<< * if len(parameter_text)>79: * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") */ - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 339, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = 0; __pyx_t_5 = 127; @@ -7640,7 +7602,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 26; __Pyx_GIVEREF(__pyx_kp_u_default_value_string); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_default_value_string); - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_default_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 339, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_default_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6); @@ -7651,17 +7613,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY __pyx_t_2 += 27; __Pyx_GIVEREF(__pyx_kp_u_must_not_exceed_30_chars); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_must_not_exceed_30_chars); - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 339, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 339, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 346, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 339, __pyx_L1_error) + __PYX_ERR(0, 346, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":338 + /* "src/pyrfc/nwrfcsdk.pyx":345 * if direction not in enum_names(RfcParameterDirection): * raise TypeError(f"'direction' (string) '{direction}' must be in '{enum_names(RfcParameterDirection)}'") * if len(default_value)>30: # <<<<<<<<<<<<<< @@ -7670,31 +7632,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY */ } - /* "src/pyrfc/nwrfcsdk.pyx":340 + /* "src/pyrfc/nwrfcsdk.pyx":347 * if len(default_value)>30: * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") * if len(parameter_text)>79: # <<<<<<<<<<<<<< * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") * self.parameters.append({ */ - __pyx_t_2 = PyObject_Length(__pyx_v_parameter_text); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 340, __pyx_L1_error) + __pyx_t_2 = PyObject_Length(__pyx_v_parameter_text); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 347, __pyx_L1_error) __pyx_t_1 = ((__pyx_t_2 > 79) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/nwrfcsdk.pyx":341 + /* "src/pyrfc/nwrfcsdk.pyx":348 * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") * if len(parameter_text)>79: * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") # <<<<<<<<<<<<<< * self.parameters.append({ * 'name': name, */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 341, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(0, 341, __pyx_L1_error) + __PYX_ERR(0, 348, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":340 + /* "src/pyrfc/nwrfcsdk.pyx":347 * if len(default_value)>30: * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") * if len(parameter_text)>79: # <<<<<<<<<<<<<< @@ -7703,120 +7665,120 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY */ } - /* "src/pyrfc/nwrfcsdk.pyx":342 + /* "src/pyrfc/nwrfcsdk.pyx":349 * if len(parameter_text)>79: * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") * self.parameters.append({ # <<<<<<<<<<<<<< * 'name': name, * 'parameter_type': parameter_type, */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "src/pyrfc/nwrfcsdk.pyx":343 + /* "src/pyrfc/nwrfcsdk.pyx":350 * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") * self.parameters.append({ * 'name': name, # <<<<<<<<<<<<<< * 'parameter_type': parameter_type, * 'direction': direction, */ - __pyx_t_6 = __Pyx_PyDict_NewPresized(10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 343, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":344 + /* "src/pyrfc/nwrfcsdk.pyx":351 * self.parameters.append({ * 'name': name, * 'parameter_type': parameter_type, # <<<<<<<<<<<<<< * 'direction': direction, * 'nuc_length': nuc_length, */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_parameter_type, __pyx_v_parameter_type) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_parameter_type, __pyx_v_parameter_type) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":345 + /* "src/pyrfc/nwrfcsdk.pyx":352 * 'name': name, * 'parameter_type': parameter_type, * 'direction': direction, # <<<<<<<<<<<<<< * 'nuc_length': nuc_length, * 'uc_length': uc_length, */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_direction, __pyx_v_direction) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_direction, __pyx_v_direction) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":346 + /* "src/pyrfc/nwrfcsdk.pyx":353 * 'parameter_type': parameter_type, * 'direction': direction, * 'nuc_length': nuc_length, # <<<<<<<<<<<<<< * 'uc_length': uc_length, * 'decimals': decimals, */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_nuc_length, __pyx_v_nuc_length) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_nuc_length, __pyx_v_nuc_length) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":347 + /* "src/pyrfc/nwrfcsdk.pyx":354 * 'direction': direction, * 'nuc_length': nuc_length, * 'uc_length': uc_length, # <<<<<<<<<<<<<< * 'decimals': decimals, * 'default_value': default_value, */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_uc_length, __pyx_v_uc_length) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_uc_length, __pyx_v_uc_length) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":348 + /* "src/pyrfc/nwrfcsdk.pyx":355 * 'nuc_length': nuc_length, * 'uc_length': uc_length, * 'decimals': decimals, # <<<<<<<<<<<<<< * 'default_value': default_value, * 'parameter_text': parameter_text, */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_decimals, __pyx_v_decimals) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_decimals, __pyx_v_decimals) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":349 + /* "src/pyrfc/nwrfcsdk.pyx":356 * 'uc_length': uc_length, * 'decimals': decimals, * 'default_value': default_value, # <<<<<<<<<<<<<< * 'parameter_text': parameter_text, * 'optional': optional, */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_default_value, __pyx_v_default_value) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_default_value, __pyx_v_default_value) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":350 + /* "src/pyrfc/nwrfcsdk.pyx":357 * 'decimals': decimals, * 'default_value': default_value, * 'parameter_text': parameter_text, # <<<<<<<<<<<<<< * 'optional': optional, * 'type_description': type_description */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_parameter_text, __pyx_v_parameter_text) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_parameter_text, __pyx_v_parameter_text) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":351 + /* "src/pyrfc/nwrfcsdk.pyx":358 * 'default_value': default_value, * 'parameter_text': parameter_text, * 'optional': optional, # <<<<<<<<<<<<<< * 'type_description': type_description * }) */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_optional, __pyx_v_optional) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_optional, __pyx_v_optional) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":352 + /* "src/pyrfc/nwrfcsdk.pyx":359 * 'parameter_text': parameter_text, * 'optional': optional, * 'type_description': type_description # <<<<<<<<<<<<<< * }) * */ - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type_description, __pyx_v_type_description) < 0) __PYX_ERR(0, 343, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_type_description, __pyx_v_type_description) < 0) __PYX_ERR(0, 350, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":342 + /* "src/pyrfc/nwrfcsdk.pyx":349 * if len(parameter_text)>79: * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") * self.parameters.append({ # <<<<<<<<<<<<<< * 'name': name, * 'parameter_type': parameter_type, */ - __pyx_t_10 = __Pyx_PyObject_Append(__pyx_t_4, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 342, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Append(__pyx_t_4, __pyx_t_6); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 349, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":306 + /* "src/pyrfc/nwrfcsdk.pyx":313 * self.parameters = [] * * def add_parameter(self, name, parameter_type, direction, nuc_length, # <<<<<<<<<<<<<< @@ -7841,7 +7803,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_2add_parameter(CY return __pyx_r; } -/* "src/pyrfc/nwrfcsdk.pyx":355 +/* "src/pyrfc/nwrfcsdk.pyx":362 * }) * * def __repr__(self): # <<<<<<<<<<<<<< @@ -7876,13 +7838,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_4__repr__(CYTHON_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "src/pyrfc/nwrfcsdk.pyx":356 + /* "src/pyrfc/nwrfcsdk.pyx":363 * * def __repr__(self): * return f"" # <<<<<<<<<<<<<< */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = 0; __pyx_t_3 = 127; @@ -7890,9 +7852,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_4__repr__(CYTHON_ __pyx_t_2 += 22; __Pyx_GIVEREF(__pyx_kp_u_FunctionDescription); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_FunctionDescription); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; @@ -7904,11 +7866,11 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_4__repr__(CYTHON_ __pyx_t_2 += 7; __Pyx_GIVEREF(__pyx_kp_u_with); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_with); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_6, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_6, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); __Pyx_GIVEREF(__pyx_t_5); @@ -7918,14 +7880,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_19FunctionDescription_4__repr__(CYTHON_ __pyx_t_2 += 8; __Pyx_GIVEREF(__pyx_kp_u_params); PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_params); - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 356, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L0; - /* "src/pyrfc/nwrfcsdk.pyx":355 + /* "src/pyrfc/nwrfcsdk.pyx":362 * }) * * def __repr__(self): # <<<<<<<<<<<<<< @@ -18343,7 +18305,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_wrapString(SAP_UC *__pyx_v_uc, struct __ return __pyx_r; } -/* "src/pyrfc/client.pyx":69 +/* "src/pyrfc/client.pyx":72 * * @property * def version(self): # <<<<<<<<<<<<<< @@ -18377,7 +18339,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/client.pyx":73 + /* "src/pyrfc/client.pyx":76 * :returns: SAP NW RFC SDK major, minor, patch level and PyRFC binding version * """ * cdef unsigned major = 0 # <<<<<<<<<<<<<< @@ -18386,7 +18348,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN */ __pyx_v_major = 0; - /* "src/pyrfc/client.pyx":74 + /* "src/pyrfc/client.pyx":77 * """ * cdef unsigned major = 0 * cdef unsigned minor = 0 # <<<<<<<<<<<<<< @@ -18395,7 +18357,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN */ __pyx_v_minor = 0; - /* "src/pyrfc/client.pyx":75 + /* "src/pyrfc/client.pyx":78 * cdef unsigned major = 0 * cdef unsigned minor = 0 * cdef unsigned patchlevel = 0 # <<<<<<<<<<<<<< @@ -18404,7 +18366,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN */ __pyx_v_patchlevel = 0; - /* "src/pyrfc/client.pyx":76 + /* "src/pyrfc/client.pyx":79 * cdef unsigned minor = 0 * cdef unsigned patchlevel = 0 * RfcGetVersion(&major, &minor, &patchlevel) # <<<<<<<<<<<<<< @@ -18413,7 +18375,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN */ (void)(RfcGetVersion((&__pyx_v_major), (&__pyx_v_minor), (&__pyx_v_patchlevel))); - /* "src/pyrfc/client.pyx":77 + /* "src/pyrfc/client.pyx":80 * cdef unsigned patchlevel = 0 * RfcGetVersion(&major, &minor, &patchlevel) * return {'major': major, 'minor': minor, 'patchLevel': patchlevel, 'platform': platform} # <<<<<<<<<<<<<< @@ -18421,29 +18383,29 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN * @property */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 77, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_major); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 77, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_major); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_major, __pyx_t_2) < 0) __PYX_ERR(2, 77, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_major, __pyx_t_2) < 0) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_minor); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 77, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_minor); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_minor, __pyx_t_2) < 0) __PYX_ERR(2, 77, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_minor, __pyx_t_2) < 0) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_patchlevel); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 77, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_patchlevel); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_patchLevel, __pyx_t_2) < 0) __PYX_ERR(2, 77, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_patchLevel, __pyx_t_2) < 0) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_platform); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 77, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_platform); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_platform, __pyx_t_2) < 0) __PYX_ERR(2, 77, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_platform, __pyx_t_2) < 0) __PYX_ERR(2, 80, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":69 + /* "src/pyrfc/client.pyx":72 * * @property * def version(self): # <<<<<<<<<<<<<< @@ -18463,11 +18425,11 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7version___get__(CYTHON_UN return __pyx_r; } -/* "src/pyrfc/client.pyx":80 +/* "src/pyrfc/client.pyx":83 * * @property * def options(self): # <<<<<<<<<<<<<< - * return self.__config + * """Client connection configuration * */ @@ -18489,9 +18451,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7options___get__(struct __ __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/client.pyx":81 - * @property - * def options(self): + /* "src/pyrfc/client.pyx":90 + * :type: dict + * """ * return self.__config # <<<<<<<<<<<<<< * * @property @@ -18501,11 +18463,11 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7options___get__(struct __ __pyx_r = __pyx_v_self->__config; goto __pyx_L0; - /* "src/pyrfc/client.pyx":80 + /* "src/pyrfc/client.pyx":83 * * @property * def options(self): # <<<<<<<<<<<<<< - * return self.__config + * """Client connection configuration * */ @@ -18516,12 +18478,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_7options___get__(struct __ return __pyx_r; } -/* "src/pyrfc/client.pyx":84 +/* "src/pyrfc/client.pyx":93 * * @property * def handle(self): # <<<<<<<<<<<<<< * """Get client connection handle - * :returns: Client connection handle + * */ /* Python wrapper */ @@ -18546,26 +18508,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_6handle___get__(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/client.pyx":88 - * :returns: Client connection handle + /* "src/pyrfc/client.pyx":99 + * :type: uintptr_t * """ * return self._handle # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 88, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 99, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":84 + /* "src/pyrfc/client.pyx":93 * * @property * def handle(self): # <<<<<<<<<<<<<< * """Get client connection handle - * :returns: Client connection handle + * */ /* function exit code */ @@ -18579,12 +18541,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_6handle___get__(struct __p return __pyx_r; } -/* "src/pyrfc/client.pyx":91 +/* "src/pyrfc/client.pyx":102 * * @property * def alive(self): # <<<<<<<<<<<<<< - * """Get conection alive property - * :returns: True when alive + * """Conection alive property + * */ /* Python wrapper */ @@ -18609,26 +18571,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_5alive___get__(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/client.pyx":96 - * :type alive: boolean + /* "src/pyrfc/client.pyx":108 + * :type: boolean * """ * return self._handle != NULL # <<<<<<<<<<<<<< * * def __init__(self, config={}, **params): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_handle != NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 96, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_handle != NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 108, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":91 + /* "src/pyrfc/client.pyx":102 * * @property * def alive(self): # <<<<<<<<<<<<<< - * """Get conection alive property - * :returns: True when alive + * """Conection alive property + * */ /* function exit code */ @@ -18642,7 +18604,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_5alive___get__(struct __py return __pyx_r; } -/* "src/pyrfc/client.pyx":98 +/* "src/pyrfc/client.pyx":110 * return self._handle != NULL * * def __init__(self, config={}, **params): # <<<<<<<<<<<<<< @@ -18685,7 +18647,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_10Connection_1__init__(PyObject *__pyx_v_self } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_params, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 98, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_params, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 110, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -18699,7 +18661,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_10Connection_1__init__(PyObject *__pyx_v_self } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 98, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 110, __pyx_L3_error) __pyx_L3_error:; __Pyx_DECREF(__pyx_v_params); __pyx_v_params = 0; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -18727,14 +18689,14 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "src/pyrfc/client.pyx":100 + /* "src/pyrfc/client.pyx":112 * def __init__(self, config={}, **params): * # set connection config, rstrip default True * self.__config = {} # <<<<<<<<<<<<<< * self.__config['dtime'] = config.get('dtime', False) * self.__config['return_import_params'] = config.get('return_import_params', False) */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 100, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->__config); @@ -18742,64 +18704,64 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc __pyx_v_self->__config = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":101 + /* "src/pyrfc/client.pyx":113 * # set connection config, rstrip default True * self.__config = {} * self.__config['dtime'] = config.get('dtime', False) # <<<<<<<<<<<<<< * self.__config['return_import_params'] = config.get('return_import_params', False) * self.__config['rstrip'] = config.get('rstrip', True) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 101, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 101, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v_self->__config == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(2, 101, __pyx_L1_error) + __PYX_ERR(2, 113, __pyx_L1_error) } - if (unlikely(PyDict_SetItem(__pyx_v_self->__config, __pyx_n_s_dtime, __pyx_t_2) < 0)) __PYX_ERR(2, 101, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_self->__config, __pyx_n_s_dtime, __pyx_t_2) < 0)) __PYX_ERR(2, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":102 + /* "src/pyrfc/client.pyx":114 * self.__config = {} * self.__config['dtime'] = config.get('dtime', False) * self.__config['return_import_params'] = config.get('return_import_params', False) # <<<<<<<<<<<<<< * self.__config['rstrip'] = config.get('rstrip', True) * # set internal configuration */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 102, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 102, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(__pyx_v_self->__config == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(2, 102, __pyx_L1_error) + __PYX_ERR(2, 114, __pyx_L1_error) } - if (unlikely(PyDict_SetItem(__pyx_v_self->__config, __pyx_n_s_return_import_params, __pyx_t_1) < 0)) __PYX_ERR(2, 102, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_self->__config, __pyx_n_s_return_import_params, __pyx_t_1) < 0)) __PYX_ERR(2, 114, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":103 + /* "src/pyrfc/client.pyx":115 * self.__config['dtime'] = config.get('dtime', False) * self.__config['return_import_params'] = config.get('return_import_params', False) * self.__config['rstrip'] = config.get('rstrip', True) # <<<<<<<<<<<<<< * # set internal configuration * self.__bconfig = 0 */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(__pyx_v_self->__config == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(2, 103, __pyx_L1_error) + __PYX_ERR(2, 115, __pyx_L1_error) } - if (unlikely(PyDict_SetItem(__pyx_v_self->__config, __pyx_n_s_rstrip, __pyx_t_2) < 0)) __PYX_ERR(2, 103, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_self->__config, __pyx_n_s_rstrip, __pyx_t_2) < 0)) __PYX_ERR(2, 115, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":105 + /* "src/pyrfc/client.pyx":117 * self.__config['rstrip'] = config.get('rstrip', True) * # set internal configuration * self.__bconfig = 0 # <<<<<<<<<<<<<< @@ -18808,7 +18770,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ __pyx_v_self->__pyx___bconfig = 0; - /* "src/pyrfc/client.pyx":106 + /* "src/pyrfc/client.pyx":118 * # set internal configuration * self.__bconfig = 0 * if self.__config['dtime']: # <<<<<<<<<<<<<< @@ -18817,34 +18779,34 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ if (unlikely(__pyx_v_self->__config == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(2, 106, __pyx_L1_error) + __PYX_ERR(2, 118, __pyx_L1_error) } - __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->__config, __pyx_n_s_dtime); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 106, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->__config, __pyx_n_s_dtime); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 118, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 106, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 118, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":107 + /* "src/pyrfc/client.pyx":119 * self.__bconfig = 0 * if self.__config['dtime']: * self.__bconfig |= _MASK_DTIME # <<<<<<<<<<<<<< * if self.__config['return_import_params']: * self.__bconfig |= _MASK_RETURN_IMPORT_PARAMS */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 107, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MASK_DTIME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 107, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MASK_DTIME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = PyNumber_InPlaceOr(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 107, __pyx_L1_error) + __pyx_t_4 = PyNumber_InPlaceOr(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 107, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_self->__pyx___bconfig = __pyx_t_5; - /* "src/pyrfc/client.pyx":106 + /* "src/pyrfc/client.pyx":118 * # set internal configuration * self.__bconfig = 0 * if self.__config['dtime']: # <<<<<<<<<<<<<< @@ -18853,7 +18815,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ } - /* "src/pyrfc/client.pyx":108 + /* "src/pyrfc/client.pyx":120 * if self.__config['dtime']: * self.__bconfig |= _MASK_DTIME * if self.__config['return_import_params']: # <<<<<<<<<<<<<< @@ -18862,34 +18824,34 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ if (unlikely(__pyx_v_self->__config == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(2, 108, __pyx_L1_error) + __PYX_ERR(2, 120, __pyx_L1_error) } - __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_self->__config, __pyx_n_s_return_import_params); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 108, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_self->__config, __pyx_n_s_return_import_params); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 120, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 108, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 120, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":109 + /* "src/pyrfc/client.pyx":121 * self.__bconfig |= _MASK_DTIME * if self.__config['return_import_params']: * self.__bconfig |= _MASK_RETURN_IMPORT_PARAMS # <<<<<<<<<<<<<< * if self.__config['rstrip']: * self.__bconfig |= _MASK_RSTRIP */ - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 109, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MASK_RETURN_IMPORT_PARAMS); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 109, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MASK_RETURN_IMPORT_PARAMS); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyNumber_InPlaceOr(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 109, __pyx_L1_error) + __pyx_t_2 = PyNumber_InPlaceOr(__pyx_t_4, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 121, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 109, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_2); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 121, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_self->__pyx___bconfig = __pyx_t_5; - /* "src/pyrfc/client.pyx":108 + /* "src/pyrfc/client.pyx":120 * if self.__config['dtime']: * self.__bconfig |= _MASK_DTIME * if self.__config['return_import_params']: # <<<<<<<<<<<<<< @@ -18898,7 +18860,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ } - /* "src/pyrfc/client.pyx":110 + /* "src/pyrfc/client.pyx":122 * if self.__config['return_import_params']: * self.__bconfig |= _MASK_RETURN_IMPORT_PARAMS * if self.__config['rstrip']: # <<<<<<<<<<<<<< @@ -18907,34 +18869,34 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ if (unlikely(__pyx_v_self->__config == Py_None)) { PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - __PYX_ERR(2, 110, __pyx_L1_error) + __PYX_ERR(2, 122, __pyx_L1_error) } - __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->__config, __pyx_n_s_rstrip); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 110, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_GetItem(__pyx_v_self->__config, __pyx_n_s_rstrip); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 122, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 110, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 122, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":111 + /* "src/pyrfc/client.pyx":123 * self.__bconfig |= _MASK_RETURN_IMPORT_PARAMS * if self.__config['rstrip']: * self.__bconfig |= _MASK_RSTRIP # <<<<<<<<<<<<<< * * self._connection = ConnectionParameters(**params) */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 111, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MASK_RSTRIP); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 111, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MASK_RSTRIP); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = PyNumber_InPlaceOr(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 111, __pyx_L1_error) + __pyx_t_4 = PyNumber_InPlaceOr(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 111, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_4); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(2, 123, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_self->__pyx___bconfig = __pyx_t_5; - /* "src/pyrfc/client.pyx":110 + /* "src/pyrfc/client.pyx":122 * if self.__config['return_import_params']: * self.__bconfig |= _MASK_RETURN_IMPORT_PARAMS * if self.__config['rstrip']: # <<<<<<<<<<<<<< @@ -18943,16 +18905,16 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ } - /* "src/pyrfc/client.pyx":113 + /* "src/pyrfc/client.pyx":125 * self.__bconfig |= _MASK_RSTRIP * * self._connection = ConnectionParameters(**params) # <<<<<<<<<<<<<< * self._handle = NULL * self.active_transaction = False */ - __pyx_t_4 = PyDict_Copy(__pyx_v_params); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 113, __pyx_L1_error) + __pyx_t_4 = PyDict_Copy(__pyx_v_params); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_ConnectionParameters), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 113, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_ConnectionParameters), __pyx_empty_tuple, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 125, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_GIVEREF(__pyx_t_1); @@ -18961,7 +18923,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc __pyx_v_self->_connection = ((struct __pyx_obj_5pyrfc_6_cyrfc_ConnectionParameters *)__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":114 + /* "src/pyrfc/client.pyx":126 * * self._connection = ConnectionParameters(**params) * self._handle = NULL # <<<<<<<<<<<<<< @@ -18970,7 +18932,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ __pyx_v_self->_handle = NULL; - /* "src/pyrfc/client.pyx":115 + /* "src/pyrfc/client.pyx":127 * self._connection = ConnectionParameters(**params) * self._handle = NULL * self.active_transaction = False # <<<<<<<<<<<<<< @@ -18979,7 +18941,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ __pyx_v_self->active_transaction = 0; - /* "src/pyrfc/client.pyx":116 + /* "src/pyrfc/client.pyx":128 * self._handle = NULL * self.active_transaction = False * self.active_unit = False # <<<<<<<<<<<<<< @@ -18988,18 +18950,18 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc */ __pyx_v_self->active_unit = 0; - /* "src/pyrfc/client.pyx":117 + /* "src/pyrfc/client.pyx":129 * self.active_transaction = False * self.active_unit = False * self._open() # <<<<<<<<<<<<<< * * def free(self): */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 117, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":98 + /* "src/pyrfc/client.pyx":110 * return self._handle != NULL * * def __init__(self, config={}, **params): # <<<<<<<<<<<<<< @@ -19021,7 +18983,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection___init__(struct __pyx_obj_5pyrfc return __pyx_r; } -/* "src/pyrfc/client.pyx":119 +/* "src/pyrfc/client.pyx":131 * self._open() * * def free(self): # <<<<<<<<<<<<<< @@ -19054,14 +19016,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_2free(struct __pyx_obj_5py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("free", 0); - /* "src/pyrfc/client.pyx":126 + /* "src/pyrfc/client.pyx":138 * when too many connections are opened. * """ * self.__del__() # <<<<<<<<<<<<<< * * def __del__(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_del); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 126, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_del); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19075,12 +19037,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_2free(struct __pyx_obj_5py } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 126, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":119 + /* "src/pyrfc/client.pyx":131 * self._open() * * def free(self): # <<<<<<<<<<<<<< @@ -19103,7 +19065,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_2free(struct __pyx_obj_5py return __pyx_r; } -/* "src/pyrfc/client.pyx":128 +/* "src/pyrfc/client.pyx":140 * self.__del__() * * def __del__(self): # <<<<<<<<<<<<<< @@ -19135,14 +19097,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_4__del__(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__del__", 0); - /* "src/pyrfc/client.pyx":129 + /* "src/pyrfc/client.pyx":141 * * def __del__(self): * self._close() # <<<<<<<<<<<<<< * self._connection._free() * */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 129, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19156,19 +19118,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_4__del__(struct __pyx_obj_ } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 129, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 141, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":130 + /* "src/pyrfc/client.pyx":142 * def __del__(self): * self._close() * self._connection._free() # <<<<<<<<<<<<<< * * def __enter__(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_connection), __pyx_n_s_free); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 130, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_connection), __pyx_n_s_free); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19182,12 +19144,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_4__del__(struct __pyx_obj_ } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 130, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 142, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":128 + /* "src/pyrfc/client.pyx":140 * self.__del__() * * def __del__(self): # <<<<<<<<<<<<<< @@ -19210,7 +19172,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_4__del__(struct __pyx_obj_ return __pyx_r; } -/* "src/pyrfc/client.pyx":132 +/* "src/pyrfc/client.pyx":144 * self._connection._free() * * def __enter__(self): # <<<<<<<<<<<<<< @@ -19236,7 +19198,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_6__enter__(struct __pyx_ob __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); - /* "src/pyrfc/client.pyx":133 + /* "src/pyrfc/client.pyx":145 * * def __enter__(self): * return self # <<<<<<<<<<<<<< @@ -19248,7 +19210,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_6__enter__(struct __pyx_ob __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "src/pyrfc/client.pyx":132 + /* "src/pyrfc/client.pyx":144 * self._connection._free() * * def __enter__(self): # <<<<<<<<<<<<<< @@ -19263,7 +19225,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_6__enter__(struct __pyx_ob return __pyx_r; } -/* "src/pyrfc/client.pyx":135 +/* "src/pyrfc/client.pyx":147 * return self * * def __exit__(self, type, value, traceback): # <<<<<<<<<<<<<< @@ -19308,17 +19270,17 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_9__exit__(PyObject *__pyx_ case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(2, 135, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(2, 147, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(2, 135, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(2, 147, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(2, 135, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(2, 147, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; @@ -19333,7 +19295,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_9__exit__(PyObject *__pyx_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 135, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 147, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -19357,14 +19319,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_8__exit__(struct __pyx_obj int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); - /* "src/pyrfc/client.pyx":138 + /* "src/pyrfc/client.pyx":150 * # Although the _close() method is also called in the destructor, the * # explicit call assures the immediate closing to the connection. * self._close() # <<<<<<<<<<<<<< * * def open(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 138, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19378,12 +19340,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_8__exit__(struct __pyx_obj } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 138, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 150, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":135 + /* "src/pyrfc/client.pyx":147 * return self * * def __exit__(self, type, value, traceback): # <<<<<<<<<<<<<< @@ -19406,16 +19368,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_8__exit__(struct __pyx_obj return __pyx_r; } -/* "src/pyrfc/client.pyx":140 +/* "src/pyrfc/client.pyx":152 * self._close() * * def open(self): # <<<<<<<<<<<<<< - * self._open() + * """ Open client the connection * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_11open(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_10open[] = " Open client the connection\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection cannot be opened.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_11open(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -19436,22 +19399,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_10open(struct __pyx_obj_5p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("open", 0); - /* "src/pyrfc/client.pyx":141 - * - * def open(self): + /* "src/pyrfc/client.pyx":158 + * thereof if the connection cannot be opened. + * """ * self._open() # <<<<<<<<<<<<<< * * def reopen(self): */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 141, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 158, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":140 + /* "src/pyrfc/client.pyx":152 * self._close() * * def open(self): # <<<<<<<<<<<<<< - * self._open() + * """ Open client the connection * */ @@ -19468,16 +19431,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_10open(struct __pyx_obj_5p return __pyx_r; } -/* "src/pyrfc/client.pyx":143 +/* "src/pyrfc/client.pyx":160 * self._open() * * def reopen(self): # <<<<<<<<<<<<<< - * self._reopen() + * """ Re-open client the connection * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_13reopen(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_12reopen[] = " Re-open client the connection\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection cannot be re-opened.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_13reopen(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -19498,22 +19462,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_12reopen(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("reopen", 0); - /* "src/pyrfc/client.pyx":144 - * - * def reopen(self): + /* "src/pyrfc/client.pyx":166 + * thereof if the connection cannot be re-opened. + * """ * self._reopen() # <<<<<<<<<<<<<< * * def close(self): */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_reopen(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 144, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_reopen(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 166, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":143 + /* "src/pyrfc/client.pyx":160 * self._open() * * def reopen(self): # <<<<<<<<<<<<<< - * self._reopen() + * """ Re-open client the connection * */ @@ -19530,16 +19494,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_12reopen(struct __pyx_obj_ return __pyx_r; } -/* "src/pyrfc/client.pyx":146 +/* "src/pyrfc/client.pyx":168 * self._reopen() * * def close(self): # <<<<<<<<<<<<<< - * self._close() + * """ Close the connection * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_15close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_14close[] = " Close the connection\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection cannot be closed cleanly.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_15close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -19562,14 +19527,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_14close(struct __pyx_obj_5 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("close", 0); - /* "src/pyrfc/client.pyx":147 - * - * def close(self): + /* "src/pyrfc/client.pyx":174 + * thereof if the connection cannot be closed cleanly. + * """ * self._close() # <<<<<<<<<<<<<< * * def cancel(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 147, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19583,16 +19548,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_14close(struct __pyx_obj_5 } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 147, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":146 + /* "src/pyrfc/client.pyx":168 * self._reopen() * * def close(self): # <<<<<<<<<<<<<< - * self._close() + * """ Close the connection * */ @@ -19611,16 +19576,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_14close(struct __pyx_obj_5 return __pyx_r; } -/* "src/pyrfc/client.pyx":149 +/* "src/pyrfc/client.pyx":176 * self._close() * * def cancel(self): # <<<<<<<<<<<<<< - * self._cancel() + * """ Cancels the ongoing RFC call * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_17cancel(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_16cancel[] = " Cancels the ongoing RFC call\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection cannot be cancelled cleanly.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_17cancel(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -19643,14 +19609,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_16cancel(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("cancel", 0); - /* "src/pyrfc/client.pyx":150 - * - * def cancel(self): + /* "src/pyrfc/client.pyx":182 + * thereof if the connection cannot be cancelled cleanly. + * """ * self._cancel() # <<<<<<<<<<<<<< * * def __bool__(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cancel); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 150, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_cancel); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19664,16 +19630,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_16cancel(struct __pyx_obj_ } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 150, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":149 + /* "src/pyrfc/client.pyx":176 * self._close() * * def cancel(self): # <<<<<<<<<<<<<< - * self._cancel() + * """ Cancels the ongoing RFC call * */ @@ -19692,7 +19658,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_16cancel(struct __pyx_obj_ return __pyx_r; } -/* "src/pyrfc/client.pyx":152 +/* "src/pyrfc/client.pyx":184 * self._cancel() * * def __bool__(self): # <<<<<<<<<<<<<< @@ -19723,21 +19689,21 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection_18__bool__(struct __pyx_obj_5pyr int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__bool__", 0); - /* "src/pyrfc/client.pyx":153 + /* "src/pyrfc/client.pyx":185 * * def __bool__(self): * return self.alive # <<<<<<<<<<<<<< * * cdef _reopen(self): */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 153, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 185, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 153, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 185, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; goto __pyx_L0; - /* "src/pyrfc/client.pyx":152 + /* "src/pyrfc/client.pyx":184 * self._cancel() * * def __bool__(self): # <<<<<<<<<<<<<< @@ -19755,7 +19721,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection_18__bool__(struct __pyx_obj_5pyr return __pyx_r; } -/* "src/pyrfc/client.pyx":155 +/* "src/pyrfc/client.pyx":187 * return self.alive * * cdef _reopen(self): # <<<<<<<<<<<<<< @@ -19774,14 +19740,14 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__reopen(struct __pyx_obj_5p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_reopen", 0); - /* "src/pyrfc/client.pyx":156 + /* "src/pyrfc/client.pyx":188 * * cdef _reopen(self): * self._close() # <<<<<<<<<<<<<< * self._open() * */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 156, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -19795,23 +19761,23 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__reopen(struct __pyx_obj_5p } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 156, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":157 + /* "src/pyrfc/client.pyx":189 * cdef _reopen(self): * self._close() * self._open() # <<<<<<<<<<<<<< * * cdef _open(self): */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 157, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 189, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":155 + /* "src/pyrfc/client.pyx":187 * return self.alive * * cdef _reopen(self): # <<<<<<<<<<<<<< @@ -19834,7 +19800,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__reopen(struct __pyx_obj_5p return __pyx_r; } -/* "src/pyrfc/client.pyx":159 +/* "src/pyrfc/client.pyx":191 * self._open() * * cdef _open(self): # <<<<<<<<<<<<<< @@ -19853,7 +19819,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_open", 0); - /* "src/pyrfc/client.pyx":161 + /* "src/pyrfc/client.pyx":193 * cdef _open(self): * cdef RFC_ERROR_INFO errorInfo * with nogil: # <<<<<<<<<<<<<< @@ -19868,7 +19834,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr #endif /*try:*/ { - /* "src/pyrfc/client.pyx":162 + /* "src/pyrfc/client.pyx":194 * cdef RFC_ERROR_INFO errorInfo * with nogil: * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &errorInfo) # <<<<<<<<<<<<<< @@ -19878,7 +19844,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr __pyx_v_self->_handle = RfcOpenConnection(__pyx_v_self->_connection->_params, __pyx_v_self->_connection->_params_count, (&__pyx_v_errorInfo)); } - /* "src/pyrfc/client.pyx":161 + /* "src/pyrfc/client.pyx":193 * cdef _open(self): * cdef RFC_ERROR_INFO errorInfo * with nogil: # <<<<<<<<<<<<<< @@ -19897,7 +19863,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr } } - /* "src/pyrfc/client.pyx":163 + /* "src/pyrfc/client.pyx":195 * with nogil: * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &errorInfo) * if not self._handle: # <<<<<<<<<<<<<< @@ -19907,18 +19873,18 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr __pyx_t_1 = ((!(__pyx_v_self->_handle != 0)) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":164 + /* "src/pyrfc/client.pyx":196 * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &errorInfo) * if not self._handle: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * def _close(self): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 164, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 196, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":163 + /* "src/pyrfc/client.pyx":195 * with nogil: * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &errorInfo) * if not self._handle: # <<<<<<<<<<<<<< @@ -19927,7 +19893,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr */ } - /* "src/pyrfc/client.pyx":159 + /* "src/pyrfc/client.pyx":191 * self._open() * * cdef _open(self): # <<<<<<<<<<<<<< @@ -19948,17 +19914,16 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__open(struct __pyx_obj_5pyr return __pyx_r; } -/* "src/pyrfc/client.pyx":166 +/* "src/pyrfc/client.pyx":198 * self._error(&errorInfo) * * def _close(self): # <<<<<<<<<<<<<< - * """ Close the connection (private function) - * + * cdef RFC_RC rc + * cdef RFC_ERROR_INFO errorInfo */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_21_close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_20_close[] = " Close the connection (private function)\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection cannot be closed cleanly.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_21_close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -19982,7 +19947,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_close", 0); - /* "src/pyrfc/client.pyx":174 + /* "src/pyrfc/client.pyx":201 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if self._handle != NULL: # <<<<<<<<<<<<<< @@ -19992,7 +19957,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ __pyx_t_1 = ((__pyx_v_self->_handle != NULL) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":175 + /* "src/pyrfc/client.pyx":202 * cdef RFC_ERROR_INFO errorInfo * if self._handle != NULL: * rc = RfcCloseConnection(self._handle, &errorInfo) # <<<<<<<<<<<<<< @@ -20001,7 +19966,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ */ __pyx_v_rc = RfcCloseConnection(__pyx_v_self->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":176 + /* "src/pyrfc/client.pyx":203 * if self._handle != NULL: * rc = RfcCloseConnection(self._handle, &errorInfo) * self._handle = NULL # <<<<<<<<<<<<<< @@ -20010,7 +19975,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ */ __pyx_v_self->_handle = NULL; - /* "src/pyrfc/client.pyx":177 + /* "src/pyrfc/client.pyx":204 * rc = RfcCloseConnection(self._handle, &errorInfo) * self._handle = NULL * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20020,18 +19985,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":178 + /* "src/pyrfc/client.pyx":205 * self._handle = NULL * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * def _cancel(self): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 178, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 205, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":177 + /* "src/pyrfc/client.pyx":204 * rc = RfcCloseConnection(self._handle, &errorInfo) * self._handle = NULL * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20040,7 +20005,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ */ } - /* "src/pyrfc/client.pyx":174 + /* "src/pyrfc/client.pyx":201 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if self._handle != NULL: # <<<<<<<<<<<<<< @@ -20049,12 +20014,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ */ } - /* "src/pyrfc/client.pyx":166 + /* "src/pyrfc/client.pyx":198 * self._error(&errorInfo) * * def _close(self): # <<<<<<<<<<<<<< - * """ Close the connection (private function) - * + * cdef RFC_RC rc + * cdef RFC_ERROR_INFO errorInfo */ /* function exit code */ @@ -20070,17 +20035,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_20_close(struct __pyx_obj_ return __pyx_r; } -/* "src/pyrfc/client.pyx":180 +/* "src/pyrfc/client.pyx":207 * self._error(&errorInfo) * * def _cancel(self): # <<<<<<<<<<<<<< - * """ Cancels the ongoing RFC call (private function) - * + * cdef RFC_RC rc + * cdef RFC_ERROR_INFO errorInfo */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_23_cancel(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_22_cancel[] = " Cancels the ongoing RFC call (private function)\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection cannot be cancelled cleanly.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_23_cancel(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -20104,7 +20068,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_cancel", 0); - /* "src/pyrfc/client.pyx":188 + /* "src/pyrfc/client.pyx":210 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if self._handle != NULL: # <<<<<<<<<<<<<< @@ -20114,7 +20078,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj __pyx_t_1 = ((__pyx_v_self->_handle != NULL) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":189 + /* "src/pyrfc/client.pyx":211 * cdef RFC_ERROR_INFO errorInfo * if self._handle != NULL: * rc = RfcCancel(self._handle, &errorInfo) # <<<<<<<<<<<<<< @@ -20123,7 +20087,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj */ __pyx_v_rc = RfcCancel(__pyx_v_self->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":190 + /* "src/pyrfc/client.pyx":212 * if self._handle != NULL: * rc = RfcCancel(self._handle, &errorInfo) * self._handle = NULL # <<<<<<<<<<<<<< @@ -20132,7 +20096,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj */ __pyx_v_self->_handle = NULL; - /* "src/pyrfc/client.pyx":191 + /* "src/pyrfc/client.pyx":213 * rc = RfcCancel(self._handle, &errorInfo) * self._handle = NULL * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20142,18 +20106,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":192 + /* "src/pyrfc/client.pyx":214 * self._handle = NULL * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * cdef _error(self, RFC_ERROR_INFO* errorInfo): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 192, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 214, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":191 + /* "src/pyrfc/client.pyx":213 * rc = RfcCancel(self._handle, &errorInfo) * self._handle = NULL * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20162,7 +20126,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj */ } - /* "src/pyrfc/client.pyx":188 + /* "src/pyrfc/client.pyx":210 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if self._handle != NULL: # <<<<<<<<<<<<<< @@ -20171,12 +20135,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj */ } - /* "src/pyrfc/client.pyx":180 + /* "src/pyrfc/client.pyx":207 * self._error(&errorInfo) * * def _cancel(self): # <<<<<<<<<<<<<< - * """ Cancels the ongoing RFC call (private function) - * + * cdef RFC_RC rc + * cdef RFC_ERROR_INFO errorInfo */ /* function exit code */ @@ -20192,7 +20156,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_22_cancel(struct __pyx_obj return __pyx_r; } -/* "src/pyrfc/client.pyx":194 +/* "src/pyrfc/client.pyx":216 * self._error(&errorInfo) * * cdef _error(self, RFC_ERROR_INFO* errorInfo): # <<<<<<<<<<<<<< @@ -20209,20 +20173,20 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__error(CYTHON_UNUSED struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_error", 0); - /* "src/pyrfc/client.pyx":209 + /* "src/pyrfc/client.pyx":231 * # self.alive = False * * raise wrapError(errorInfo) # <<<<<<<<<<<<<< * * def ping(self): */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError(__pyx_v_errorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 209, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError(__pyx_v_errorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 231, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(2, 209, __pyx_L1_error) + __PYX_ERR(2, 231, __pyx_L1_error) - /* "src/pyrfc/client.pyx":194 + /* "src/pyrfc/client.pyx":216 * self._error(&errorInfo) * * cdef _error(self, RFC_ERROR_INFO* errorInfo): # <<<<<<<<<<<<<< @@ -20240,7 +20204,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Connection__error(CYTHON_UNUSED struct return __pyx_r; } -/* "src/pyrfc/client.pyx":211 +/* "src/pyrfc/client.pyx":233 * raise wrapError(errorInfo) * * def ping(self): # <<<<<<<<<<<<<< @@ -20274,7 +20238,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_24ping(struct __pyx_obj_5p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ping", 0); - /* "src/pyrfc/client.pyx":221 + /* "src/pyrfc/client.pyx":243 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * rc = RfcPing(self._handle, &errorInfo) # <<<<<<<<<<<<<< @@ -20283,7 +20247,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_24ping(struct __pyx_obj_5p */ __pyx_v_rc = RfcPing(__pyx_v_self->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":222 + /* "src/pyrfc/client.pyx":244 * cdef RFC_ERROR_INFO errorInfo * rc = RfcPing(self._handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20293,18 +20257,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_24ping(struct __pyx_obj_5p __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":223 + /* "src/pyrfc/client.pyx":245 * rc = RfcPing(self._handle, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * def reset_server_context(self): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 223, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 245, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":222 + /* "src/pyrfc/client.pyx":244 * cdef RFC_ERROR_INFO errorInfo * rc = RfcPing(self._handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20313,7 +20277,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_24ping(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":211 + /* "src/pyrfc/client.pyx":233 * raise wrapError(errorInfo) * * def ping(self): # <<<<<<<<<<<<<< @@ -20334,7 +20298,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_24ping(struct __pyx_obj_5p return __pyx_r; } -/* "src/pyrfc/client.pyx":225 +/* "src/pyrfc/client.pyx":247 * self._error(&errorInfo) * * def reset_server_context(self): # <<<<<<<<<<<<<< @@ -20368,7 +20332,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_26reset_server_context(str int __pyx_clineno = 0; __Pyx_RefNannySetupContext("reset_server_context", 0); - /* "src/pyrfc/client.pyx":238 + /* "src/pyrfc/client.pyx":260 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * rc = RfcResetServerContext(self._handle, &errorInfo) # <<<<<<<<<<<<<< @@ -20377,7 +20341,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_26reset_server_context(str */ __pyx_v_rc = RfcResetServerContext(__pyx_v_self->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":239 + /* "src/pyrfc/client.pyx":261 * cdef RFC_ERROR_INFO errorInfo * rc = RfcResetServerContext(self._handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20387,18 +20351,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_26reset_server_context(str __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":240 + /* "src/pyrfc/client.pyx":262 * rc = RfcResetServerContext(self._handle, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * def get_connection_attributes(self): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 240, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 262, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":239 + /* "src/pyrfc/client.pyx":261 * cdef RFC_ERROR_INFO errorInfo * rc = RfcResetServerContext(self._handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20407,7 +20371,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_26reset_server_context(str */ } - /* "src/pyrfc/client.pyx":225 + /* "src/pyrfc/client.pyx":247 * self._error(&errorInfo) * * def reset_server_context(self): # <<<<<<<<<<<<<< @@ -20428,7 +20392,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_26reset_server_context(str return __pyx_r; } -/* "src/pyrfc/client.pyx":242 +/* "src/pyrfc/client.pyx":264 * self._error(&errorInfo) * * def get_connection_attributes(self): # <<<<<<<<<<<<<< @@ -20470,7 +20434,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_connection_attributes", 0); - /* "src/pyrfc/client.pyx":283 + /* "src/pyrfc/client.pyx":305 * cdef RFC_INT isValid * * rc = RfcIsConnectionHandleValid(self._handle, &isValid, &errorInfo) # <<<<<<<<<<<<<< @@ -20479,19 +20443,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute */ __pyx_v_rc = RfcIsConnectionHandleValid(__pyx_v_self->_handle, (&__pyx_v_isValid), (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":285 + /* "src/pyrfc/client.pyx":307 * rc = RfcIsConnectionHandleValid(self._handle, &isValid, &errorInfo) * * result = {} # <<<<<<<<<<<<<< * if (isValid and rc == RFC_OK): * rc = RfcGetConnectionAttributes(self._handle, &attributes, &errorInfo) */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 285, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_result = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":286 + /* "src/pyrfc/client.pyx":308 * * result = {} * if (isValid and rc == RFC_OK): # <<<<<<<<<<<<<< @@ -20509,7 +20473,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute __pyx_L4_bool_binop_done:; if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":287 + /* "src/pyrfc/client.pyx":309 * result = {} * if (isValid and rc == RFC_OK): * rc = RfcGetConnectionAttributes(self._handle, &attributes, &errorInfo) # <<<<<<<<<<<<<< @@ -20518,7 +20482,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute */ __pyx_v_rc = RfcGetConnectionAttributes(__pyx_v_self->_handle, (&__pyx_v_attributes), (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":288 + /* "src/pyrfc/client.pyx":310 * if (isValid and rc == RFC_OK): * rc = RfcGetConnectionAttributes(self._handle, &attributes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20528,18 +20492,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":289 + /* "src/pyrfc/client.pyx":311 * rc = RfcGetConnectionAttributes(self._handle, &attributes, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * result = wrapConnectionAttributes(attributes) */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 289, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 311, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":288 + /* "src/pyrfc/client.pyx":310 * if (isValid and rc == RFC_OK): * rc = RfcGetConnectionAttributes(self._handle, &attributes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -20548,51 +20512,51 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute */ } - /* "src/pyrfc/client.pyx":291 + /* "src/pyrfc/client.pyx":313 * self._error(&errorInfo) * * result = wrapConnectionAttributes(attributes) # <<<<<<<<<<<<<< * result.update({ * 'active_unit': self.active_unit or self.active_transaction */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapConnectionAttributes(__pyx_v_attributes); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 291, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapConnectionAttributes(__pyx_v_attributes); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":292 + /* "src/pyrfc/client.pyx":314 * * result = wrapConnectionAttributes(attributes) * result.update({ # <<<<<<<<<<<<<< * 'active_unit': self.active_unit or self.active_transaction * }) */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_result, __pyx_n_s_update); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 292, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_result, __pyx_n_s_update); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - /* "src/pyrfc/client.pyx":293 + /* "src/pyrfc/client.pyx":315 * result = wrapConnectionAttributes(attributes) * result.update({ * 'active_unit': self.active_unit or self.active_transaction # <<<<<<<<<<<<<< * }) * return result */ - __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 293, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); if (!__pyx_v_self->active_unit) { } else { - __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->active_unit); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 293, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->active_unit); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __pyx_t_7; __pyx_t_7 = 0; goto __pyx_L7_bool_binop_done; } - __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->active_transaction); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 293, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->active_transaction); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 315, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_6 = __pyx_t_7; __pyx_t_7 = 0; __pyx_L7_bool_binop_done:; - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_active_unit, __pyx_t_6) < 0) __PYX_ERR(2, 293, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_active_unit, __pyx_t_6) < 0) __PYX_ERR(2, 315, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -20607,12 +20571,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 292, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 314, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":286 + /* "src/pyrfc/client.pyx":308 * * result = {} * if (isValid and rc == RFC_OK): # <<<<<<<<<<<<<< @@ -20621,7 +20585,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute */ } - /* "src/pyrfc/client.pyx":295 + /* "src/pyrfc/client.pyx":317 * 'active_unit': self.active_unit or self.active_transaction * }) * return result # <<<<<<<<<<<<<< @@ -20633,7 +20597,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute __pyx_r = __pyx_v_result; goto __pyx_L0; - /* "src/pyrfc/client.pyx":242 + /* "src/pyrfc/client.pyx":264 * self._error(&errorInfo) * * def get_connection_attributes(self): # <<<<<<<<<<<<<< @@ -20657,7 +20621,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_28get_connection_attribute return __pyx_r; } -/* "src/pyrfc/client.pyx":297 +/* "src/pyrfc/client.pyx":319 * return result * * def get_function_description(self, func_name): # <<<<<<<<<<<<<< @@ -20695,14 +20659,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_function_description", 0); - /* "src/pyrfc/client.pyx":307 + /* "src/pyrfc/client.pyx":329 * """ * cdef RFC_ERROR_INFO errorInfo * funcName = fillString(func_name.upper()) # <<<<<<<<<<<<<< * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_func_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 307, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_func_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -20716,14 +20680,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 307, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 329, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 307, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 329, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_funcName = __pyx_t_4; - /* "src/pyrfc/client.pyx":308 + /* "src/pyrfc/client.pyx":330 * cdef RFC_ERROR_INFO errorInfo * funcName = fillString(func_name.upper()) * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) # <<<<<<<<<<<<<< @@ -20732,7 +20696,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description */ __pyx_v_funcDesc = RfcGetFunctionDesc(__pyx_v_self->_handle, __pyx_v_funcName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":309 + /* "src/pyrfc/client.pyx":331 * funcName = fillString(func_name.upper()) * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) # <<<<<<<<<<<<<< @@ -20741,7 +20705,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description */ free(__pyx_v_funcName); - /* "src/pyrfc/client.pyx":310 + /* "src/pyrfc/client.pyx":332 * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -20751,18 +20715,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description __pyx_t_5 = ((!(__pyx_v_funcDesc != 0)) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":311 + /* "src/pyrfc/client.pyx":333 * free(funcName) * if not funcDesc: * self._error(&errorInfo) # <<<<<<<<<<<<<< * return wrapFunctionDescription(funcDesc) * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 311, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 333, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":310 + /* "src/pyrfc/client.pyx":332 * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -20771,7 +20735,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description */ } - /* "src/pyrfc/client.pyx":312 + /* "src/pyrfc/client.pyx":334 * if not funcDesc: * self._error(&errorInfo) * return wrapFunctionDescription(funcDesc) # <<<<<<<<<<<<<< @@ -20779,13 +20743,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description * def call(self, func_name, options={}, **params): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapFunctionDescription(__pyx_v_funcDesc); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 312, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapFunctionDescription(__pyx_v_funcDesc); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 334, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":297 + /* "src/pyrfc/client.pyx":319 * return result * * def get_function_description(self, func_name): # <<<<<<<<<<<<<< @@ -20806,7 +20770,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description return __pyx_r; } -/* "src/pyrfc/client.pyx":314 +/* "src/pyrfc/client.pyx":336 * return wrapFunctionDescription(funcDesc) * * def call(self, func_name, options={}, **params): # <<<<<<<<<<<<<< @@ -20816,7 +20780,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_30get_function_description /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_33call(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_32call[] = " Invokes a remote-enabled function module via RFC.\n\n :param func_name: Name of the function module that will be invoked.\n :type func_name: string\n\n :param options: Call options, like 'skip', to deactivate certain parameters.\n :type options: dictionary\n\n :param params: Parameter of the function module. All non optional\n IMPORT, CHANGING, and TABLE parameters must be provided.\n :type params: keyword arguments\n\n :return: Dictionary with all EXPORT, CHANGING, and TABLE parameters.\n The IMPORT parameters are also given, if :attr:`Connection.config.return_import_params`\n is set to ``True``.\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the RFC call fails.\n "; +static char __pyx_doc_5pyrfc_6_cyrfc_10Connection_32call[] = " Invokes a remote-enabled function module via RFC.\n\n :param func_name: Name of the function module that will be invoked.\n :type func_name: string\n\n :param options: Call options for single remote ABAP function call. Allowed keys:\n\n - ``not_requested`` Allows to deactivate certain parameters in the function module interface.\n This is particularly useful for BAPIs which have many large tables, the Python client is not interested in.\n Deactivate those, to reduce network traffic and memory consumption in your application considerably.\n\n This functionality can be used for input and output parameters. If the parameter is an input, no data for\n that parameter will be sent to the backend. If it's an output, the backend will be informed not to return\n data for that parameter.\n\n :type options: dictionary\n\n :param params: Parameter of the function module. All non optional\n IMPORT, CHANGING, and TABLE parameters must be provided.\n :type params: keyword arguments\n\n :return: Dictionary with all EXPORT, CHANGING, and TABLE parameters.\n The IMPORT parameters are also given, if :attr:`Connection.config.return_import_params`\n is set to ``True``.\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the RFC call fails.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_33call(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_func_name = 0; PyObject *__pyx_v_options = 0; @@ -20857,7 +20821,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_33call(PyObject *__pyx_v_s } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_params, values, pos_args, "call") < 0)) __PYX_ERR(2, 314, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_params, values, pos_args, "call") < 0)) __PYX_ERR(2, 336, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -20873,7 +20837,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_33call(PyObject *__pyx_v_s } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("call", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 314, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("call", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 336, __pyx_L3_error) __pyx_L3_error:; __Pyx_DECREF(__pyx_v_params); __pyx_v_params = 0; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.call", __pyx_clineno, __pyx_lineno, __pyx_filename); @@ -20927,7 +20891,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("call", 0); - /* "src/pyrfc/client.pyx":338 + /* "src/pyrfc/client.pyx":369 * cdef RFC_ERROR_INFO openErrorInfo * cdef SAP_UC *cName * if type(func_name) is not str: # <<<<<<<<<<<<<< @@ -20938,14 +20902,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = (__pyx_t_1 != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":339 + /* "src/pyrfc/client.pyx":370 * cdef SAP_UC *cName * if type(func_name) is not str: * raise RFCError("Remote function module name must be unicode string, received:", func_name, type(func_name)) # <<<<<<<<<<<<<< * cdef SAP_UC *funcName = fillString(func_name) * if self._handle == NULL: */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 339, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; @@ -20962,7 +20926,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_kp_s_Remote_function_module_name_must, __pyx_v_func_name, ((PyObject *)Py_TYPE(__pyx_v_func_name))}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 339, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 370, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else @@ -20970,13 +20934,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[4] = {__pyx_t_5, __pyx_kp_s_Remote_function_module_name_must, __pyx_v_func_name, ((PyObject *)Py_TYPE(__pyx_v_func_name))}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 339, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 370, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_3); } else #endif { - __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 339, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -20990,16 +20954,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_func_name))); __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_v_func_name))); PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, ((PyObject *)Py_TYPE(__pyx_v_func_name))); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 339, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 370, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(2, 339, __pyx_L1_error) + __PYX_ERR(2, 370, __pyx_L1_error) - /* "src/pyrfc/client.pyx":338 + /* "src/pyrfc/client.pyx":369 * cdef RFC_ERROR_INFO openErrorInfo * cdef SAP_UC *cName * if type(func_name) is not str: # <<<<<<<<<<<<<< @@ -21008,17 +20972,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":340 + /* "src/pyrfc/client.pyx":371 * if type(func_name) is not str: * raise RFCError("Remote function module name must be unicode string, received:", func_name, type(func_name)) * cdef SAP_UC *funcName = fillString(func_name) # <<<<<<<<<<<<<< * if self._handle == NULL: * raise RFCError(f"Remote function module '{func_name}' invocation rejected because the connection is closed") */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_8 == ((SAP_UC *)NULL))) __PYX_ERR(2, 340, __pyx_L1_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_8 == ((SAP_UC *)NULL))) __PYX_ERR(2, 371, __pyx_L1_error) __pyx_v_funcName = __pyx_t_8; - /* "src/pyrfc/client.pyx":341 + /* "src/pyrfc/client.pyx":372 * raise RFCError("Remote function module name must be unicode string, received:", func_name, type(func_name)) * cdef SAP_UC *funcName = fillString(func_name) * if self._handle == NULL: # <<<<<<<<<<<<<< @@ -21028,16 +20992,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = ((__pyx_v_self->_handle == NULL) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":342 + /* "src/pyrfc/client.pyx":373 * cdef SAP_UC *funcName = fillString(func_name) * if self._handle == NULL: * raise RFCError(f"Remote function module '{func_name}' invocation rejected because the connection is closed") # <<<<<<<<<<<<<< * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 342, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 342, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = 0; __pyx_t_10 = 127; @@ -21045,7 +21009,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_9 += 24; __Pyx_GIVEREF(__pyx_kp_u_Remote_function_module); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u_Remote_function_module); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 342, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_10; __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -21056,7 +21020,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_9 += 54; __Pyx_GIVEREF(__pyx_kp_u_invocation_rejected_because_the); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u_invocation_rejected_because_the); - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 342, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; @@ -21072,14 +21036,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_7, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 342, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 373, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(2, 342, __pyx_L1_error) + __PYX_ERR(2, 373, __pyx_L1_error) - /* "src/pyrfc/client.pyx":341 + /* "src/pyrfc/client.pyx":372 * raise RFCError("Remote function module name must be unicode string, received:", func_name, type(func_name)) * cdef SAP_UC *funcName = fillString(func_name) * if self._handle == NULL: # <<<<<<<<<<<<<< @@ -21088,7 +21052,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":343 + /* "src/pyrfc/client.pyx":374 * if self._handle == NULL: * raise RFCError(f"Remote function module '{func_name}' invocation rejected because the connection is closed") * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) # <<<<<<<<<<<<<< @@ -21097,7 +21061,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_funcDesc = RfcGetFunctionDesc(__pyx_v_self->_handle, __pyx_v_funcName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":344 + /* "src/pyrfc/client.pyx":375 * raise RFCError(f"Remote function module '{func_name}' invocation rejected because the connection is closed") * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) # <<<<<<<<<<<<<< @@ -21106,7 +21070,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ free(__pyx_v_funcName); - /* "src/pyrfc/client.pyx":345 + /* "src/pyrfc/client.pyx":376 * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -21116,18 +21080,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = ((!(__pyx_v_funcDesc != 0)) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":346 + /* "src/pyrfc/client.pyx":377 * free(funcName) * if not funcDesc: * self._error(&errorInfo) # <<<<<<<<<<<<<< * cdef RFC_FUNCTION_HANDLE funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 346, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 377, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":345 + /* "src/pyrfc/client.pyx":376 * cdef RFC_FUNCTION_DESC_HANDLE funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -21136,7 +21100,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":347 + /* "src/pyrfc/client.pyx":378 * if not funcDesc: * self._error(&errorInfo) * cdef RFC_FUNCTION_HANDLE funcCont = RfcCreateFunction(funcDesc, &errorInfo) # <<<<<<<<<<<<<< @@ -21145,7 +21109,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_funcCont = RfcCreateFunction(__pyx_v_funcDesc, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":348 + /* "src/pyrfc/client.pyx":379 * self._error(&errorInfo) * cdef RFC_FUNCTION_HANDLE funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: # <<<<<<<<<<<<<< @@ -21155,18 +21119,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = ((!(__pyx_v_funcCont != 0)) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":349 + /* "src/pyrfc/client.pyx":380 * cdef RFC_FUNCTION_HANDLE funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: * self._error(&errorInfo) # <<<<<<<<<<<<<< * cdef int isActive = 0 * try: # now we have a function module */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 349, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 380, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":348 + /* "src/pyrfc/client.pyx":379 * self._error(&errorInfo) * cdef RFC_FUNCTION_HANDLE funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: # <<<<<<<<<<<<<< @@ -21175,7 +21139,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":350 + /* "src/pyrfc/client.pyx":381 * if not funcCont: * self._error(&errorInfo) * cdef int isActive = 0 # <<<<<<<<<<<<<< @@ -21184,7 +21148,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_isActive = 0; - /* "src/pyrfc/client.pyx":351 + /* "src/pyrfc/client.pyx":382 * self._error(&errorInfo) * cdef int isActive = 0 * try: # now we have a function module # <<<<<<<<<<<<<< @@ -21193,30 +21157,30 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ /*try:*/ { - /* "src/pyrfc/client.pyx":352 + /* "src/pyrfc/client.pyx":383 * cdef int isActive = 0 * try: # now we have a function module * if 'not_requested' in options: # <<<<<<<<<<<<<< * skip_parameters = options['not_requested'] * if type(skip_parameters) is not list: */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_not_requested, __pyx_v_options, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 352, __pyx_L8_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_not_requested, __pyx_v_options, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 383, __pyx_L8_error) __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":353 + /* "src/pyrfc/client.pyx":384 * try: # now we have a function module * if 'not_requested' in options: * skip_parameters = options['not_requested'] # <<<<<<<<<<<<<< * if type(skip_parameters) is not list: * skip_parameters = [skip_parameters] */ - __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_v_options, __pyx_n_s_not_requested); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 353, __pyx_L8_error) + __pyx_t_3 = __Pyx_PyObject_Dict_GetItem(__pyx_v_options, __pyx_n_s_not_requested); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 384, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_skip_parameters = __pyx_t_3; __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":354 + /* "src/pyrfc/client.pyx":385 * if 'not_requested' in options: * skip_parameters = options['not_requested'] * if type(skip_parameters) is not list: # <<<<<<<<<<<<<< @@ -21227,14 +21191,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":355 + /* "src/pyrfc/client.pyx":386 * skip_parameters = options['not_requested'] * if type(skip_parameters) is not list: * skip_parameters = [skip_parameters] # <<<<<<<<<<<<<< * for name in skip_parameters: * cName = fillString(name) */ - __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 355, __pyx_L8_error) + __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 386, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_INCREF(__pyx_v_skip_parameters); __Pyx_GIVEREF(__pyx_v_skip_parameters); @@ -21242,7 +21206,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __Pyx_DECREF_SET(__pyx_v_skip_parameters, __pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":354 + /* "src/pyrfc/client.pyx":385 * if 'not_requested' in options: * skip_parameters = options['not_requested'] * if type(skip_parameters) is not list: # <<<<<<<<<<<<<< @@ -21251,7 +21215,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":356 + /* "src/pyrfc/client.pyx":387 * if type(skip_parameters) is not list: * skip_parameters = [skip_parameters] * for name in skip_parameters: # <<<<<<<<<<<<<< @@ -21262,26 +21226,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_3 = __pyx_v_skip_parameters; __Pyx_INCREF(__pyx_t_3); __pyx_t_9 = 0; __pyx_t_11 = NULL; } else { - __pyx_t_9 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_skip_parameters); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 356, __pyx_L8_error) + __pyx_t_9 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_skip_parameters); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 387, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_11 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 356, __pyx_L8_error) + __pyx_t_11 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 387, __pyx_L8_error) } for (;;) { if (likely(!__pyx_t_11)) { if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_9); __Pyx_INCREF(__pyx_t_4); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(2, 356, __pyx_L8_error) + __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_9); __Pyx_INCREF(__pyx_t_4); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(2, 387, __pyx_L8_error) #else - __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 356, __pyx_L8_error) + __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 387, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_9); __Pyx_INCREF(__pyx_t_4); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(2, 356, __pyx_L8_error) + __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_9); __Pyx_INCREF(__pyx_t_4); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(2, 387, __pyx_L8_error) #else - __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 356, __pyx_L8_error) + __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 387, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); #endif } @@ -21291,7 +21255,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(2, 356, __pyx_L8_error) + else __PYX_ERR(2, 387, __pyx_L8_error) } break; } @@ -21300,17 +21264,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":357 + /* "src/pyrfc/client.pyx":388 * skip_parameters = [skip_parameters] * for name in skip_parameters: * cName = fillString(name) # <<<<<<<<<<<<<< * rc = RfcSetParameterActive(funcCont, cName, isActive, &errorInfo) * free(cName) */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_name); if (unlikely(__pyx_t_8 == ((SAP_UC *)NULL))) __PYX_ERR(2, 357, __pyx_L8_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_name); if (unlikely(__pyx_t_8 == ((SAP_UC *)NULL))) __PYX_ERR(2, 388, __pyx_L8_error) __pyx_v_cName = __pyx_t_8; - /* "src/pyrfc/client.pyx":358 + /* "src/pyrfc/client.pyx":389 * for name in skip_parameters: * cName = fillString(name) * rc = RfcSetParameterActive(funcCont, cName, isActive, &errorInfo) # <<<<<<<<<<<<<< @@ -21319,7 +21283,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_rc = RfcSetParameterActive(__pyx_v_funcCont, __pyx_v_cName, __pyx_v_isActive, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":359 + /* "src/pyrfc/client.pyx":390 * cName = fillString(name) * rc = RfcSetParameterActive(funcCont, cName, isActive, &errorInfo) * free(cName) # <<<<<<<<<<<<<< @@ -21328,7 +21292,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ free(__pyx_v_cName); - /* "src/pyrfc/client.pyx":360 + /* "src/pyrfc/client.pyx":391 * rc = RfcSetParameterActive(funcCont, cName, isActive, &errorInfo) * free(cName) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -21338,18 +21302,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":361 + /* "src/pyrfc/client.pyx":392 * free(cName) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * for name, value in params.iteritems(): * fillFunctionParameter(funcDesc, funcCont, name, value) */ - __pyx_t_4 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 361, __pyx_L8_error) + __pyx_t_4 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 392, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":360 + /* "src/pyrfc/client.pyx":391 * rc = RfcSetParameterActive(funcCont, cName, isActive, &errorInfo) * free(cName) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -21358,7 +21322,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":356 + /* "src/pyrfc/client.pyx":387 * if type(skip_parameters) is not list: * skip_parameters = [skip_parameters] * for name in skip_parameters: # <<<<<<<<<<<<<< @@ -21368,7 +21332,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":352 + /* "src/pyrfc/client.pyx":383 * cdef int isActive = 0 * try: # now we have a function module * if 'not_requested' in options: # <<<<<<<<<<<<<< @@ -21377,7 +21341,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":362 + /* "src/pyrfc/client.pyx":393 * if rc != RFC_OK: * self._error(&errorInfo) * for name, value in params.iteritems(): # <<<<<<<<<<<<<< @@ -21385,7 +21349,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p * with nogil: */ __pyx_t_9 = 0; - __pyx_t_4 = __Pyx_dict_iterator(__pyx_v_params, 1, __pyx_n_s_iteritems, (&__pyx_t_12), (&__pyx_t_6)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 362, __pyx_L8_error) + __pyx_t_4 = __Pyx_dict_iterator(__pyx_v_params, 1, __pyx_n_s_iteritems, (&__pyx_t_12), (&__pyx_t_6)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 393, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = __pyx_t_4; @@ -21393,7 +21357,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p while (1) { __pyx_t_13 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_12, &__pyx_t_9, &__pyx_t_4, &__pyx_t_5, NULL, __pyx_t_6); if (unlikely(__pyx_t_13 == 0)) break; - if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(2, 362, __pyx_L8_error) + if (unlikely(__pyx_t_13 == -1)) __PYX_ERR(2, 393, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_4); @@ -21401,20 +21365,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/client.pyx":363 + /* "src/pyrfc/client.pyx":394 * self._error(&errorInfo) * for name, value in params.iteritems(): * fillFunctionParameter(funcDesc, funcCont, name, value) # <<<<<<<<<<<<<< * with nogil: * rc = RfcInvoke(self._handle, funcCont, &errorInfo) */ - __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcCont, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 363, __pyx_L8_error) + __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcCont, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 394, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":364 + /* "src/pyrfc/client.pyx":395 * for name, value in params.iteritems(): * fillFunctionParameter(funcDesc, funcCont, name, value) * with nogil: # <<<<<<<<<<<<<< @@ -21429,7 +21393,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p #endif /*try:*/ { - /* "src/pyrfc/client.pyx":365 + /* "src/pyrfc/client.pyx":396 * fillFunctionParameter(funcDesc, funcCont, name, value) * with nogil: * rc = RfcInvoke(self._handle, funcCont, &errorInfo) # <<<<<<<<<<<<<< @@ -21439,7 +21403,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_v_rc = RfcInvoke(__pyx_v_self->_handle, __pyx_v_funcCont, (&__pyx_v_errorInfo)); } - /* "src/pyrfc/client.pyx":364 + /* "src/pyrfc/client.pyx":395 * for name, value in params.iteritems(): * fillFunctionParameter(funcDesc, funcCont, name, value) * with nogil: # <<<<<<<<<<<<<< @@ -21458,7 +21422,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p } } - /* "src/pyrfc/client.pyx":366 + /* "src/pyrfc/client.pyx":397 * with nogil: * rc = RfcInvoke(self._handle, funcCont, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -21468,7 +21432,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":367 + /* "src/pyrfc/client.pyx":398 * rc = RfcInvoke(self._handle, funcCont, &errorInfo) * if rc != RFC_OK: * if errorInfo.group in (ABAP_RUNTIME_FAILURE, LOGON_FAILURE, COMMUNICATION_FAILURE, EXTERNAL_RUNTIME_FAILURE): # <<<<<<<<<<<<<< @@ -21481,7 +21445,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p case COMMUNICATION_FAILURE: case EXTERNAL_RUNTIME_FAILURE: - /* "src/pyrfc/client.pyx":371 + /* "src/pyrfc/client.pyx":402 * # if errorInfo.code in (RFC_COMMUNICATION_FAILURE, RFC_ABAP_RUNTIME_FAILURE, RFC_ABAP_MESSAGE, RFC_EXTERNAL_FAILURE: * # Connection closed, reopen * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &openErrorInfo) # <<<<<<<<<<<<<< @@ -21490,7 +21454,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_self->_handle = RfcOpenConnection(__pyx_v_self->_connection->_params, __pyx_v_self->_connection->_params_count, (&__pyx_v_openErrorInfo)); - /* "src/pyrfc/client.pyx":372 + /* "src/pyrfc/client.pyx":403 * # Connection closed, reopen * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &openErrorInfo) * if openErrorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -21500,7 +21464,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p __pyx_t_2 = ((__pyx_v_openErrorInfo.code != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":373 + /* "src/pyrfc/client.pyx":404 * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &openErrorInfo) * if openErrorInfo.code != RFC_OK: * self._handle = NULL # <<<<<<<<<<<<<< @@ -21509,7 +21473,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_self->_handle = NULL; - /* "src/pyrfc/client.pyx":375 + /* "src/pyrfc/client.pyx":406 * self._handle = NULL * # Communication error returned as error * errorInfo = openErrorInfo # <<<<<<<<<<<<<< @@ -21518,7 +21482,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ __pyx_v_errorInfo = __pyx_v_openErrorInfo; - /* "src/pyrfc/client.pyx":372 + /* "src/pyrfc/client.pyx":403 * # Connection closed, reopen * self._handle = RfcOpenConnection(self._connection._params, self._connection._params_count, &openErrorInfo) * if openErrorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -21527,7 +21491,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":367 + /* "src/pyrfc/client.pyx":398 * rc = RfcInvoke(self._handle, funcCont, &errorInfo) * if rc != RFC_OK: * if errorInfo.group in (ABAP_RUNTIME_FAILURE, LOGON_FAILURE, COMMUNICATION_FAILURE, EXTERNAL_RUNTIME_FAILURE): # <<<<<<<<<<<<<< @@ -21538,18 +21502,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p default: break; } - /* "src/pyrfc/client.pyx":376 + /* "src/pyrfc/client.pyx":407 * # Communication error returned as error * errorInfo = openErrorInfo * self._error(&errorInfo) # <<<<<<<<<<<<<< * if self.__bconfig & _MASK_RETURN_IMPORT_PARAMS: * return wrapResult(funcDesc, funcCont, 0, self.__bconfig) */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 376, __pyx_L8_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 407, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":366 + /* "src/pyrfc/client.pyx":397 * with nogil: * rc = RfcInvoke(self._handle, funcCont, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -21558,26 +21522,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":377 + /* "src/pyrfc/client.pyx":408 * errorInfo = openErrorInfo * self._error(&errorInfo) * if self.__bconfig & _MASK_RETURN_IMPORT_PARAMS: # <<<<<<<<<<<<<< * return wrapResult(funcDesc, funcCont, 0, self.__bconfig) * else: */ - __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 377, __pyx_L8_error) + __pyx_t_3 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 408, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_MASK_RETURN_IMPORT_PARAMS); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 377, __pyx_L8_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_MASK_RETURN_IMPORT_PARAMS); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 408, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = PyNumber_And(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 377, __pyx_L8_error) + __pyx_t_4 = PyNumber_And(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 408, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 377, __pyx_L8_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 408, __pyx_L8_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":378 + /* "src/pyrfc/client.pyx":409 * self._error(&errorInfo) * if self.__bconfig & _MASK_RETURN_IMPORT_PARAMS: * return wrapResult(funcDesc, funcCont, 0, self.__bconfig) # <<<<<<<<<<<<<< @@ -21585,16 +21549,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p * return wrapResult(funcDesc, funcCont, RFC_IMPORT, self.__bconfig) */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 378, __pyx_L8_error) + __pyx_t_4 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 409, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_wrapResult(__pyx_v_funcDesc, __pyx_v_funcCont, ((RFC_DIRECTION)0), __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 378, __pyx_L8_error) + __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_wrapResult(__pyx_v_funcDesc, __pyx_v_funcCont, ((RFC_DIRECTION)0), __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 409, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_5; __pyx_t_5 = 0; goto __pyx_L7_return; - /* "src/pyrfc/client.pyx":377 + /* "src/pyrfc/client.pyx":408 * errorInfo = openErrorInfo * self._error(&errorInfo) * if self.__bconfig & _MASK_RETURN_IMPORT_PARAMS: # <<<<<<<<<<<<<< @@ -21603,7 +21567,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ } - /* "src/pyrfc/client.pyx":380 + /* "src/pyrfc/client.pyx":411 * return wrapResult(funcDesc, funcCont, 0, self.__bconfig) * else: * return wrapResult(funcDesc, funcCont, RFC_IMPORT, self.__bconfig) # <<<<<<<<<<<<<< @@ -21612,9 +21576,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p */ /*else*/ { __Pyx_XDECREF(__pyx_r); - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 380, __pyx_L8_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->__pyx___bconfig); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 411, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapResult(__pyx_v_funcDesc, __pyx_v_funcCont, RFC_IMPORT, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 380, __pyx_L8_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapResult(__pyx_v_funcDesc, __pyx_v_funcCont, RFC_IMPORT, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 411, __pyx_L8_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_4; @@ -21623,7 +21587,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p } } - /* "src/pyrfc/client.pyx":382 + /* "src/pyrfc/client.pyx":413 * return wrapResult(funcDesc, funcCont, RFC_IMPORT, self.__bconfig) * finally: * RfcDestroyFunction(funcCont, NULL) # <<<<<<<<<<<<<< @@ -21676,7 +21640,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p } } - /* "src/pyrfc/client.pyx":314 + /* "src/pyrfc/client.pyx":336 * return wrapFunctionDescription(funcDesc) * * def call(self, func_name, options={}, **params): # <<<<<<<<<<<<<< @@ -21701,7 +21665,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_32call(struct __pyx_obj_5p return __pyx_r; } -/* "src/pyrfc/client.pyx":387 +/* "src/pyrfc/client.pyx":418 * # HELPER METHODS * * def type_desc_get(self, type_name): # <<<<<<<<<<<<<< @@ -21739,14 +21703,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("type_desc_get", 0); - /* "src/pyrfc/client.pyx":396 + /* "src/pyrfc/client.pyx":427 * """ * cdef RFC_ERROR_INFO errorInfo * typeName = fillString(type_name.upper()) # <<<<<<<<<<<<<< * cdef RFC_TYPE_DESC_HANDLE typeDesc = RfcGetTypeDesc(self._handle, typeName, &errorInfo) * free(typeName) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 396, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -21760,14 +21724,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 396, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 427, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 396, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 427, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_typeName = __pyx_t_4; - /* "src/pyrfc/client.pyx":397 + /* "src/pyrfc/client.pyx":428 * cdef RFC_ERROR_INFO errorInfo * typeName = fillString(type_name.upper()) * cdef RFC_TYPE_DESC_HANDLE typeDesc = RfcGetTypeDesc(self._handle, typeName, &errorInfo) # <<<<<<<<<<<<<< @@ -21776,7 +21740,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p */ __pyx_v_typeDesc = RfcGetTypeDesc(__pyx_v_self->_handle, __pyx_v_typeName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":398 + /* "src/pyrfc/client.pyx":429 * typeName = fillString(type_name.upper()) * cdef RFC_TYPE_DESC_HANDLE typeDesc = RfcGetTypeDesc(self._handle, typeName, &errorInfo) * free(typeName) # <<<<<<<<<<<<<< @@ -21785,7 +21749,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p */ free(__pyx_v_typeName); - /* "src/pyrfc/client.pyx":399 + /* "src/pyrfc/client.pyx":430 * cdef RFC_TYPE_DESC_HANDLE typeDesc = RfcGetTypeDesc(self._handle, typeName, &errorInfo) * free(typeName) * if typeDesc == NULL: # <<<<<<<<<<<<<< @@ -21795,18 +21759,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p __pyx_t_5 = ((__pyx_v_typeDesc == NULL) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":400 + /* "src/pyrfc/client.pyx":431 * free(typeName) * if typeDesc == NULL: * self._error(&errorInfo) # <<<<<<<<<<<<<< * return wrapTypeDescription(typeDesc) * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 400, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 431, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":399 + /* "src/pyrfc/client.pyx":430 * cdef RFC_TYPE_DESC_HANDLE typeDesc = RfcGetTypeDesc(self._handle, typeName, &errorInfo) * free(typeName) * if typeDesc == NULL: # <<<<<<<<<<<<<< @@ -21815,7 +21779,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p */ } - /* "src/pyrfc/client.pyx":401 + /* "src/pyrfc/client.pyx":432 * if typeDesc == NULL: * self._error(&errorInfo) * return wrapTypeDescription(typeDesc) # <<<<<<<<<<<<<< @@ -21823,13 +21787,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p * def type_desc_remove(self, sysid, type_name): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapTypeDescription(__pyx_v_typeDesc); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 401, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapTypeDescription(__pyx_v_typeDesc); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 432, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":387 + /* "src/pyrfc/client.pyx":418 * # HELPER METHODS * * def type_desc_get(self, type_name): # <<<<<<<<<<<<<< @@ -21850,7 +21814,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_34type_desc_get(struct __p return __pyx_r; } -/* "src/pyrfc/client.pyx":403 +/* "src/pyrfc/client.pyx":434 * return wrapTypeDescription(typeDesc) * * def type_desc_remove(self, sysid, type_name): # <<<<<<<<<<<<<< @@ -21893,11 +21857,11 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_37type_desc_remove(PyObjec case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type_name)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("type_desc_remove", 1, 2, 2, 1); __PYX_ERR(2, 403, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("type_desc_remove", 1, 2, 2, 1); __PYX_ERR(2, 434, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "type_desc_remove") < 0)) __PYX_ERR(2, 403, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "type_desc_remove") < 0)) __PYX_ERR(2, 434, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -21910,7 +21874,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_37type_desc_remove(PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("type_desc_remove", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 403, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("type_desc_remove", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 434, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.type_desc_remove", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -21938,27 +21902,27 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("type_desc_remove", 0); - /* "src/pyrfc/client.pyx":415 + /* "src/pyrfc/client.pyx":446 * """ * cdef RFC_ERROR_INFO errorInfo * sysId = fillString(sysid) # <<<<<<<<<<<<<< * typeName = fillString(type_name) * cdef RFC_RC rc = RfcRemoveTypeDesc(sysId, typeName, &errorInfo) */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_sysid); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 415, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_sysid); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 446, __pyx_L1_error) __pyx_v_sysId = __pyx_t_1; - /* "src/pyrfc/client.pyx":416 + /* "src/pyrfc/client.pyx":447 * cdef RFC_ERROR_INFO errorInfo * sysId = fillString(sysid) * typeName = fillString(type_name) # <<<<<<<<<<<<<< * cdef RFC_RC rc = RfcRemoveTypeDesc(sysId, typeName, &errorInfo) * free(sysId) */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_type_name); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 416, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_type_name); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 447, __pyx_L1_error) __pyx_v_typeName = __pyx_t_1; - /* "src/pyrfc/client.pyx":417 + /* "src/pyrfc/client.pyx":448 * sysId = fillString(sysid) * typeName = fillString(type_name) * cdef RFC_RC rc = RfcRemoveTypeDesc(sysId, typeName, &errorInfo) # <<<<<<<<<<<<<< @@ -21967,7 +21931,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct */ __pyx_v_rc = RfcRemoveTypeDesc(__pyx_v_sysId, __pyx_v_typeName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":418 + /* "src/pyrfc/client.pyx":449 * typeName = fillString(type_name) * cdef RFC_RC rc = RfcRemoveTypeDesc(sysId, typeName, &errorInfo) * free(sysId) # <<<<<<<<<<<<<< @@ -21976,7 +21940,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct */ free(__pyx_v_sysId); - /* "src/pyrfc/client.pyx":419 + /* "src/pyrfc/client.pyx":450 * cdef RFC_RC rc = RfcRemoveTypeDesc(sysId, typeName, &errorInfo) * free(sysId) * free(typeName) # <<<<<<<<<<<<<< @@ -21985,7 +21949,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct */ free(__pyx_v_typeName); - /* "src/pyrfc/client.pyx":420 + /* "src/pyrfc/client.pyx":451 * free(sysId) * free(typeName) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -21995,18 +21959,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":421 + /* "src/pyrfc/client.pyx":452 * free(typeName) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * return rc * */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 421, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 452, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":420 + /* "src/pyrfc/client.pyx":451 * free(sysId) * free(typeName) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22015,7 +21979,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct */ } - /* "src/pyrfc/client.pyx":422 + /* "src/pyrfc/client.pyx":453 * if rc != RFC_OK: * self._error(&errorInfo) * return rc # <<<<<<<<<<<<<< @@ -22023,13 +21987,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct * def func_desc_remove(self, sysid, func_name): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 422, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":403 + /* "src/pyrfc/client.pyx":434 * return wrapTypeDescription(typeDesc) * * def type_desc_remove(self, sysid, type_name): # <<<<<<<<<<<<<< @@ -22048,7 +22012,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_36type_desc_remove(struct return __pyx_r; } -/* "src/pyrfc/client.pyx":424 +/* "src/pyrfc/client.pyx":455 * return rc * * def func_desc_remove(self, sysid, func_name): # <<<<<<<<<<<<<< @@ -22091,11 +22055,11 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_39func_desc_remove(PyObjec case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_func_name)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("func_desc_remove", 1, 2, 2, 1); __PYX_ERR(2, 424, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("func_desc_remove", 1, 2, 2, 1); __PYX_ERR(2, 455, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "func_desc_remove") < 0)) __PYX_ERR(2, 424, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "func_desc_remove") < 0)) __PYX_ERR(2, 455, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -22108,7 +22072,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_39func_desc_remove(PyObjec } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("func_desc_remove", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 424, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("func_desc_remove", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 455, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.func_desc_remove", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -22136,27 +22100,27 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("func_desc_remove", 0); - /* "src/pyrfc/client.pyx":436 + /* "src/pyrfc/client.pyx":467 * """ * cdef RFC_ERROR_INFO errorInfo * sysId = fillString(sysid) # <<<<<<<<<<<<<< * funcName = fillString(func_name) * cdef RFC_RC rc = RfcRemoveFunctionDesc(sysId, funcName, &errorInfo) */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_sysid); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 436, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_sysid); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 467, __pyx_L1_error) __pyx_v_sysId = __pyx_t_1; - /* "src/pyrfc/client.pyx":437 + /* "src/pyrfc/client.pyx":468 * cdef RFC_ERROR_INFO errorInfo * sysId = fillString(sysid) * funcName = fillString(func_name) # <<<<<<<<<<<<<< * cdef RFC_RC rc = RfcRemoveFunctionDesc(sysId, funcName, &errorInfo) * free(sysId) */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 437, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(2, 468, __pyx_L1_error) __pyx_v_funcName = __pyx_t_1; - /* "src/pyrfc/client.pyx":438 + /* "src/pyrfc/client.pyx":469 * sysId = fillString(sysid) * funcName = fillString(func_name) * cdef RFC_RC rc = RfcRemoveFunctionDesc(sysId, funcName, &errorInfo) # <<<<<<<<<<<<<< @@ -22165,7 +22129,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct */ __pyx_v_rc = RfcRemoveFunctionDesc(__pyx_v_sysId, __pyx_v_funcName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":439 + /* "src/pyrfc/client.pyx":470 * funcName = fillString(func_name) * cdef RFC_RC rc = RfcRemoveFunctionDesc(sysId, funcName, &errorInfo) * free(sysId) # <<<<<<<<<<<<<< @@ -22174,7 +22138,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct */ free(__pyx_v_sysId); - /* "src/pyrfc/client.pyx":440 + /* "src/pyrfc/client.pyx":471 * cdef RFC_RC rc = RfcRemoveFunctionDesc(sysId, funcName, &errorInfo) * free(sysId) * free(funcName) # <<<<<<<<<<<<<< @@ -22183,7 +22147,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct */ free(__pyx_v_funcName); - /* "src/pyrfc/client.pyx":441 + /* "src/pyrfc/client.pyx":472 * free(sysId) * free(funcName) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22193,18 +22157,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":442 + /* "src/pyrfc/client.pyx":473 * free(funcName) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * return rc * */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 442, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 473, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":441 + /* "src/pyrfc/client.pyx":472 * free(sysId) * free(funcName) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22213,7 +22177,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct */ } - /* "src/pyrfc/client.pyx":443 + /* "src/pyrfc/client.pyx":474 * if rc != RFC_OK: * self._error(&errorInfo) * return rc # <<<<<<<<<<<<<< @@ -22221,13 +22185,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct * ########################################################################## */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 443, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 474, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":424 + /* "src/pyrfc/client.pyx":455 * return rc * * def func_desc_remove(self, sysid, func_name): # <<<<<<<<<<<<<< @@ -22246,7 +22210,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_38func_desc_remove(struct return __pyx_r; } -/* "src/pyrfc/client.pyx":448 +/* "src/pyrfc/client.pyx":479 * # TRANSACTIONAL / QUEUED RFC * * def _get_transaction_id(self): # <<<<<<<<<<<<<< @@ -22284,32 +22248,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_transaction_id", 0); - /* "src/pyrfc/client.pyx":454 + /* "src/pyrfc/client.pyx":485 * cdef RFC_TID tid * * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcGetTransactionID(self._handle, tid, &errorInfo) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 454, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 454, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 485, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((!__pyx_t_2) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":455 + /* "src/pyrfc/client.pyx":486 * * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcGetTransactionID(self._handle, tid, &errorInfo) * if rc != RFC_OK: */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 455, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 486, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":454 + /* "src/pyrfc/client.pyx":485 * cdef RFC_TID tid * * if not self.alive: # <<<<<<<<<<<<<< @@ -22318,7 +22282,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru */ } - /* "src/pyrfc/client.pyx":456 + /* "src/pyrfc/client.pyx":487 * if not self.alive: * self._open() * rc = RfcGetTransactionID(self._handle, tid, &errorInfo) # <<<<<<<<<<<<<< @@ -22327,7 +22291,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru */ __pyx_v_rc = RfcGetTransactionID(__pyx_v_self->_handle, __pyx_v_tid, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":457 + /* "src/pyrfc/client.pyx":488 * self._open() * rc = RfcGetTransactionID(self._handle, tid, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22337,18 +22301,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":458 + /* "src/pyrfc/client.pyx":489 * rc = RfcGetTransactionID(self._handle, tid, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * return wrapString(tid, RFC_TID_LN) * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 458, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 489, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":457 + /* "src/pyrfc/client.pyx":488 * self._open() * rc = RfcGetTransactionID(self._handle, tid, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22357,7 +22321,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru */ } - /* "src/pyrfc/client.pyx":459 + /* "src/pyrfc/client.pyx":490 * if rc != RFC_OK: * self._error(&errorInfo) * return wrapString(tid, RFC_TID_LN) # <<<<<<<<<<<<<< @@ -22365,18 +22329,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru * def _create_and_submit_transaction(self, transaction_id, calls, queue_name=None): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(RFC_TID_LN); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 459, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(RFC_TID_LN); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5.__pyx_n = 1; __pyx_t_5.uclen = __pyx_t_1; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_tid, &__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 459, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_tid, &__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 490, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":448 + /* "src/pyrfc/client.pyx":479 * # TRANSACTIONAL / QUEUED RFC * * def _get_transaction_id(self): # <<<<<<<<<<<<<< @@ -22396,7 +22360,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_40_get_transaction_id(stru return __pyx_r; } -/* "src/pyrfc/client.pyx":461 +/* "src/pyrfc/client.pyx":492 * return wrapString(tid, RFC_TID_LN) * * def _create_and_submit_transaction(self, transaction_id, calls, queue_name=None): # <<<<<<<<<<<<<< @@ -22442,7 +22406,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_43_create_and_submit_trans case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_calls)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("_create_and_submit_transaction", 0, 2, 3, 1); __PYX_ERR(2, 461, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("_create_and_submit_transaction", 0, 2, 3, 1); __PYX_ERR(2, 492, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: @@ -22452,7 +22416,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_43_create_and_submit_trans } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_create_and_submit_transaction") < 0)) __PYX_ERR(2, 461, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_create_and_submit_transaction") < 0)) __PYX_ERR(2, 492, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -22470,7 +22434,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_43_create_and_submit_trans } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_create_and_submit_transaction", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 461, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("_create_and_submit_transaction", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 492, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection._create_and_submit_transaction", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -22529,32 +22493,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_create_and_submit_transaction", 0); - /* "src/pyrfc/client.pyx":469 + /* "src/pyrfc/client.pyx":500 * cdef RFC_FUNCTION_HANDLE funcCont * * if not self.alive: # <<<<<<<<<<<<<< * self._open() * */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 469, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 500, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 469, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 500, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((!__pyx_t_2) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":470 + /* "src/pyrfc/client.pyx":501 * * if not self.alive: * self._open() # <<<<<<<<<<<<<< * * tid = fillString(transaction_id) */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 470, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 501, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":469 + /* "src/pyrfc/client.pyx":500 * cdef RFC_FUNCTION_HANDLE funcCont * * if not self.alive: # <<<<<<<<<<<<<< @@ -22563,17 +22527,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":472 + /* "src/pyrfc/client.pyx":503 * self._open() * * tid = fillString(transaction_id) # <<<<<<<<<<<<<< * queueName = NULL * if queue_name: */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_transaction_id); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 472, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_transaction_id); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 503, __pyx_L1_error) __pyx_v_tid = __pyx_t_4; - /* "src/pyrfc/client.pyx":473 + /* "src/pyrfc/client.pyx":504 * * tid = fillString(transaction_id) * queueName = NULL # <<<<<<<<<<<<<< @@ -22582,27 +22546,27 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ __pyx_v_queueName = NULL; - /* "src/pyrfc/client.pyx":474 + /* "src/pyrfc/client.pyx":505 * tid = fillString(transaction_id) * queueName = NULL * if queue_name: # <<<<<<<<<<<<<< * queueName = fillString(queue_name) * self._tHandle = RfcCreateTransaction(self._handle, tid, queueName, &errorInfo) */ - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_queue_name); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 474, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_queue_name); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 505, __pyx_L1_error) if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":475 + /* "src/pyrfc/client.pyx":506 * queueName = NULL * if queue_name: * queueName = fillString(queue_name) # <<<<<<<<<<<<<< * self._tHandle = RfcCreateTransaction(self._handle, tid, queueName, &errorInfo) * */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_queue_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 475, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_queue_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 506, __pyx_L1_error) __pyx_v_queueName = __pyx_t_4; - /* "src/pyrfc/client.pyx":474 + /* "src/pyrfc/client.pyx":505 * tid = fillString(transaction_id) * queueName = NULL * if queue_name: # <<<<<<<<<<<<<< @@ -22611,7 +22575,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":476 + /* "src/pyrfc/client.pyx":507 * if queue_name: * queueName = fillString(queue_name) * self._tHandle = RfcCreateTransaction(self._handle, tid, queueName, &errorInfo) # <<<<<<<<<<<<<< @@ -22620,17 +22584,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ __pyx_v_self->_tHandle = RfcCreateTransaction(__pyx_v_self->_handle, __pyx_v_tid, __pyx_v_queueName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":478 + /* "src/pyrfc/client.pyx":509 * self._tHandle = RfcCreateTransaction(self._handle, tid, queueName, &errorInfo) * * if queue_name: # <<<<<<<<<<<<<< * free(queueName) * free(tid) */ - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_queue_name); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 478, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_queue_name); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 509, __pyx_L1_error) if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":479 + /* "src/pyrfc/client.pyx":510 * * if queue_name: * free(queueName) # <<<<<<<<<<<<<< @@ -22639,7 +22603,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ free(__pyx_v_queueName); - /* "src/pyrfc/client.pyx":478 + /* "src/pyrfc/client.pyx":509 * self._tHandle = RfcCreateTransaction(self._handle, tid, queueName, &errorInfo) * * if queue_name: # <<<<<<<<<<<<<< @@ -22648,7 +22612,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":480 + /* "src/pyrfc/client.pyx":511 * if queue_name: * free(queueName) * free(tid) # <<<<<<<<<<<<<< @@ -22657,7 +22621,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ free(__pyx_v_tid); - /* "src/pyrfc/client.pyx":481 + /* "src/pyrfc/client.pyx":512 * free(queueName) * free(tid) * if self._tHandle == NULL: # <<<<<<<<<<<<<< @@ -22667,18 +22631,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_3 = ((__pyx_v_self->_tHandle == NULL) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":482 + /* "src/pyrfc/client.pyx":513 * free(tid) * if self._tHandle == NULL: * self._error(&errorInfo) # <<<<<<<<<<<<<< * self.active_transaction = True * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 482, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 513, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":481 + /* "src/pyrfc/client.pyx":512 * free(queueName) * free(tid) * if self._tHandle == NULL: # <<<<<<<<<<<<<< @@ -22687,7 +22651,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":483 + /* "src/pyrfc/client.pyx":514 * if self._tHandle == NULL: * self._error(&errorInfo) * self.active_transaction = True # <<<<<<<<<<<<<< @@ -22696,7 +22660,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ __pyx_v_self->active_transaction = 1; - /* "src/pyrfc/client.pyx":485 + /* "src/pyrfc/client.pyx":516 * self.active_transaction = True * * try: # <<<<<<<<<<<<<< @@ -22712,7 +22676,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_XGOTREF(__pyx_t_7); /*try:*/ { - /* "src/pyrfc/client.pyx":486 + /* "src/pyrfc/client.pyx":517 * * try: * for func_name, params in calls: # <<<<<<<<<<<<<< @@ -22723,26 +22687,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_1 = __pyx_v_calls; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0; __pyx_t_9 = NULL; } else { - __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_calls); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_calls); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 517, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 517, __pyx_L7_error) } for (;;) { if (likely(!__pyx_t_9)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_10 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_10 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 517, __pyx_L7_error) #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 517, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_10); #endif } else { if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_10); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 517, __pyx_L7_error) #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_10 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 517, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_10); #endif } @@ -22752,7 +22716,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(2, 486, __pyx_L7_error) + else __PYX_ERR(2, 517, __pyx_L7_error) } break; } @@ -22764,7 +22728,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(2, 486, __pyx_L7_error) + __PYX_ERR(2, 517, __pyx_L7_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -22777,15 +22741,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_INCREF(__pyx_t_11); __Pyx_INCREF(__pyx_t_12); #else - __pyx_t_11 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_11 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 517, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_11); - __pyx_t_12 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_12 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 517, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_12); #endif __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } else { Py_ssize_t index = -1; - __pyx_t_13 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 486, __pyx_L7_error) + __pyx_t_13 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 517, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_13); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_14 = Py_TYPE(__pyx_t_13)->tp_iternext; @@ -22793,7 +22757,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_GOTREF(__pyx_t_11); index = 1; __pyx_t_12 = __pyx_t_14(__pyx_t_13); if (unlikely(!__pyx_t_12)) goto __pyx_L15_unpacking_failed; __Pyx_GOTREF(__pyx_t_12); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 2) < 0) __PYX_ERR(2, 486, __pyx_L7_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_14(__pyx_t_13), 2) < 0) __PYX_ERR(2, 517, __pyx_L7_error) __pyx_t_14 = NULL; __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; goto __pyx_L16_unpacking_done; @@ -22801,7 +22765,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; __pyx_t_14 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(2, 486, __pyx_L7_error) + __PYX_ERR(2, 517, __pyx_L7_error) __pyx_L16_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_v_func_name, __pyx_t_11); @@ -22809,17 +22773,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_XDECREF_SET(__pyx_v_params, __pyx_t_12); __pyx_t_12 = 0; - /* "src/pyrfc/client.pyx":487 + /* "src/pyrfc/client.pyx":518 * try: * for func_name, params in calls: * funcName = fillString(func_name) # <<<<<<<<<<<<<< * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 487, __pyx_L7_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 518, __pyx_L7_error) __pyx_v_funcName = __pyx_t_4; - /* "src/pyrfc/client.pyx":488 + /* "src/pyrfc/client.pyx":519 * for func_name, params in calls: * funcName = fillString(func_name) * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) # <<<<<<<<<<<<<< @@ -22828,7 +22792,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ __pyx_v_funcDesc = RfcGetFunctionDesc(__pyx_v_self->_handle, __pyx_v_funcName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":489 + /* "src/pyrfc/client.pyx":520 * funcName = fillString(func_name) * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) # <<<<<<<<<<<<<< @@ -22837,7 +22801,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ free(__pyx_v_funcName); - /* "src/pyrfc/client.pyx":490 + /* "src/pyrfc/client.pyx":521 * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -22847,18 +22811,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_3 = ((!(__pyx_v_funcDesc != 0)) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":491 + /* "src/pyrfc/client.pyx":522 * free(funcName) * if not funcDesc: * self._error(&errorInfo) # <<<<<<<<<<<<<< * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: */ - __pyx_t_10 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 491, __pyx_L7_error) + __pyx_t_10 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 522, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "src/pyrfc/client.pyx":490 + /* "src/pyrfc/client.pyx":521 * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -22867,7 +22831,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":492 + /* "src/pyrfc/client.pyx":523 * if not funcDesc: * self._error(&errorInfo) * funcCont = RfcCreateFunction(funcDesc, &errorInfo) # <<<<<<<<<<<<<< @@ -22876,7 +22840,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ __pyx_v_funcCont = RfcCreateFunction(__pyx_v_funcDesc, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":493 + /* "src/pyrfc/client.pyx":524 * self._error(&errorInfo) * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: # <<<<<<<<<<<<<< @@ -22886,18 +22850,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_3 = ((!(__pyx_v_funcCont != 0)) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":494 + /* "src/pyrfc/client.pyx":525 * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: * self._error(&errorInfo) # <<<<<<<<<<<<<< * try: * for name, value in params.iteritems(): */ - __pyx_t_10 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 494, __pyx_L7_error) + __pyx_t_10 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 525, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "src/pyrfc/client.pyx":493 + /* "src/pyrfc/client.pyx":524 * self._error(&errorInfo) * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: # <<<<<<<<<<<<<< @@ -22906,7 +22870,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":495 + /* "src/pyrfc/client.pyx":526 * if not funcCont: * self._error(&errorInfo) * try: # <<<<<<<<<<<<<< @@ -22915,7 +22879,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ /*try:*/ { - /* "src/pyrfc/client.pyx":496 + /* "src/pyrfc/client.pyx":527 * self._error(&errorInfo) * try: * for name, value in params.iteritems(): # <<<<<<<<<<<<<< @@ -22925,9 +22889,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_15 = 0; if (unlikely(__pyx_v_params == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "iteritems"); - __PYX_ERR(2, 496, __pyx_L22_error) + __PYX_ERR(2, 527, __pyx_L22_error) } - __pyx_t_12 = __Pyx_dict_iterator(__pyx_v_params, 0, __pyx_n_s_iteritems, (&__pyx_t_16), (&__pyx_t_17)); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 496, __pyx_L22_error) + __pyx_t_12 = __Pyx_dict_iterator(__pyx_v_params, 0, __pyx_n_s_iteritems, (&__pyx_t_16), (&__pyx_t_17)); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 527, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = __pyx_t_12; @@ -22935,7 +22899,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans while (1) { __pyx_t_18 = __Pyx_dict_iter_next(__pyx_t_10, __pyx_t_16, &__pyx_t_15, &__pyx_t_12, &__pyx_t_11, NULL, __pyx_t_17); if (unlikely(__pyx_t_18 == 0)) break; - if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(2, 496, __pyx_L22_error) + if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(2, 527, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_GOTREF(__pyx_t_11); __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_12); @@ -22943,20 +22907,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_11); __pyx_t_11 = 0; - /* "src/pyrfc/client.pyx":497 + /* "src/pyrfc/client.pyx":528 * try: * for name, value in params.iteritems(): * fillFunctionParameter(funcDesc, funcCont, name, value) # <<<<<<<<<<<<<< * # Add RFC call to transaction * rc = RfcInvokeInTransaction(self._tHandle, funcCont, &errorInfo) */ - __pyx_t_11 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcCont, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 497, __pyx_L22_error) + __pyx_t_11 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcCont, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_11)) __PYX_ERR(2, 528, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "src/pyrfc/client.pyx":499 + /* "src/pyrfc/client.pyx":530 * fillFunctionParameter(funcDesc, funcCont, name, value) * # Add RFC call to transaction * rc = RfcInvokeInTransaction(self._tHandle, funcCont, &errorInfo) # <<<<<<<<<<<<<< @@ -22965,7 +22929,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ __pyx_v_rc = RfcInvokeInTransaction(__pyx_v_self->_tHandle, __pyx_v_funcCont, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":500 + /* "src/pyrfc/client.pyx":531 * # Add RFC call to transaction * rc = RfcInvokeInTransaction(self._tHandle, funcCont, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22975,18 +22939,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":501 + /* "src/pyrfc/client.pyx":532 * rc = RfcInvokeInTransaction(self._tHandle, funcCont, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * finally: * RfcDestroyFunction(funcCont, NULL) */ - __pyx_t_10 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 501, __pyx_L22_error) + __pyx_t_10 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 532, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "src/pyrfc/client.pyx":500 + /* "src/pyrfc/client.pyx":531 * # Add RFC call to transaction * rc = RfcInvokeInTransaction(self._tHandle, funcCont, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -22996,7 +22960,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans } } - /* "src/pyrfc/client.pyx":503 + /* "src/pyrfc/client.pyx":534 * self._error(&errorInfo) * finally: * RfcDestroyFunction(funcCont, NULL) # <<<<<<<<<<<<<< @@ -23046,7 +23010,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_L23:; } - /* "src/pyrfc/client.pyx":486 + /* "src/pyrfc/client.pyx":517 * * try: * for func_name, params in calls: # <<<<<<<<<<<<<< @@ -23056,7 +23020,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":505 + /* "src/pyrfc/client.pyx":536 * RfcDestroyFunction(funcCont, NULL) * # execute * with nogil: # <<<<<<<<<<<<<< @@ -23071,7 +23035,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans #endif /*try:*/ { - /* "src/pyrfc/client.pyx":506 + /* "src/pyrfc/client.pyx":537 * # execute * with nogil: * rc = RfcSubmitTransaction(self._tHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -23081,7 +23045,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_v_rc = RfcSubmitTransaction(__pyx_v_self->_tHandle, (&__pyx_v_errorInfo)); } - /* "src/pyrfc/client.pyx":505 + /* "src/pyrfc/client.pyx":536 * RfcDestroyFunction(funcCont, NULL) * # execute * with nogil: # <<<<<<<<<<<<<< @@ -23100,7 +23064,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans } } - /* "src/pyrfc/client.pyx":507 + /* "src/pyrfc/client.pyx":538 * with nogil: * rc = RfcSubmitTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23110,18 +23074,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":508 + /* "src/pyrfc/client.pyx":539 * rc = RfcSubmitTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * except RFCError as e: */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 508, __pyx_L7_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 539, __pyx_L7_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":507 + /* "src/pyrfc/client.pyx":538 * with nogil: * rc = RfcSubmitTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23130,7 +23094,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ } - /* "src/pyrfc/client.pyx":485 + /* "src/pyrfc/client.pyx":516 * self.active_transaction = True * * try: # <<<<<<<<<<<<<< @@ -23149,7 +23113,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "src/pyrfc/client.pyx":510 + /* "src/pyrfc/client.pyx":541 * self._error(&errorInfo) * * except RFCError as e: # <<<<<<<<<<<<<< @@ -23157,7 +23121,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans * RfcDestroyTransaction(self._tHandle, NULL) */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_10, &__pyx_t_11); - __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 510, __pyx_L9_except_error) + __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 541, __pyx_L9_except_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_18 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_12); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; @@ -23165,7 +23129,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_t_1 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; if (__pyx_t_18) { __Pyx_AddTraceback("pyrfc._cyrfc.Connection._create_and_submit_transaction", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_1) < 0) __PYX_ERR(2, 510, __pyx_L9_except_error) + if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_1) < 0) __PYX_ERR(2, 541, __pyx_L9_except_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_GOTREF(__pyx_t_10); __Pyx_GOTREF(__pyx_t_1); @@ -23173,7 +23137,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_v_e = __pyx_t_10; /*try:*/ { - /* "src/pyrfc/client.pyx":512 + /* "src/pyrfc/client.pyx":543 * except RFCError as e: * # clean up actions * RfcDestroyTransaction(self._tHandle, NULL) # <<<<<<<<<<<<<< @@ -23182,7 +23146,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans */ (void)(RfcDestroyTransaction(__pyx_v_self->_tHandle, NULL)); - /* "src/pyrfc/client.pyx":513 + /* "src/pyrfc/client.pyx":544 * # clean up actions * RfcDestroyTransaction(self._tHandle, NULL) * raise # <<<<<<<<<<<<<< @@ -23194,10 +23158,10 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __Pyx_XGIVEREF(__pyx_t_1); __Pyx_ErrRestoreWithState(__pyx_t_11, __pyx_t_10, __pyx_t_1); __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_1 = 0; - __PYX_ERR(2, 513, __pyx_L40_error) + __PYX_ERR(2, 544, __pyx_L40_error) } - /* "src/pyrfc/client.pyx":510 + /* "src/pyrfc/client.pyx":541 * self._error(&errorInfo) * * except RFCError as e: # <<<<<<<<<<<<<< @@ -23244,7 +23208,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans goto __pyx_L9_except_error; __pyx_L9_except_error:; - /* "src/pyrfc/client.pyx":485 + /* "src/pyrfc/client.pyx":516 * self.active_transaction = True * * try: # <<<<<<<<<<<<<< @@ -23259,7 +23223,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans __pyx_L12_try_end:; } - /* "src/pyrfc/client.pyx":461 + /* "src/pyrfc/client.pyx":492 * return wrapString(tid, RFC_TID_LN) * * def _create_and_submit_transaction(self, transaction_id, calls, queue_name=None): # <<<<<<<<<<<<<< @@ -23289,7 +23253,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_42_create_and_submit_trans return __pyx_r; } -/* "src/pyrfc/client.pyx":515 +/* "src/pyrfc/client.pyx":546 * raise * * def _destroy_transaction(self): # <<<<<<<<<<<<<< @@ -23325,7 +23289,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_destroy_transaction", 0); - /* "src/pyrfc/client.pyx":518 + /* "src/pyrfc/client.pyx":549 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if not self.active_transaction: # <<<<<<<<<<<<<< @@ -23335,14 +23299,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str __pyx_t_1 = ((!(__pyx_v_self->active_transaction != 0)) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":519 + /* "src/pyrfc/client.pyx":550 * cdef RFC_ERROR_INFO errorInfo * if not self.active_transaction: * raise RFCError("No transaction handle for this connection available.") # <<<<<<<<<<<<<< * if not self.alive: * self._open() */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 519, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { @@ -23356,14 +23320,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_kp_s_No_transaction_handle_for_this_c) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s_No_transaction_handle_for_this_c); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 519, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(2, 519, __pyx_L1_error) + __PYX_ERR(2, 550, __pyx_L1_error) - /* "src/pyrfc/client.pyx":518 + /* "src/pyrfc/client.pyx":549 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if not self.active_transaction: # <<<<<<<<<<<<<< @@ -23372,32 +23336,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str */ } - /* "src/pyrfc/client.pyx":520 + /* "src/pyrfc/client.pyx":551 * if not self.active_transaction: * raise RFCError("No transaction handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 520, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 551, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 520, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 551, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_5 = ((!__pyx_t_1) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":521 + /* "src/pyrfc/client.pyx":552 * raise RFCError("No transaction handle for this connection available.") * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 521, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":520 + /* "src/pyrfc/client.pyx":551 * if not self.active_transaction: * raise RFCError("No transaction handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< @@ -23406,7 +23370,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str */ } - /* "src/pyrfc/client.pyx":522 + /* "src/pyrfc/client.pyx":553 * if not self.alive: * self._open() * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -23415,7 +23379,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str */ __pyx_v_rc = RfcDestroyTransaction(__pyx_v_self->_tHandle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":523 + /* "src/pyrfc/client.pyx":554 * self._open() * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False # <<<<<<<<<<<<<< @@ -23424,7 +23388,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str */ __pyx_v_self->active_transaction = 0; - /* "src/pyrfc/client.pyx":524 + /* "src/pyrfc/client.pyx":555 * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23434,18 +23398,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str __pyx_t_5 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":525 + /* "src/pyrfc/client.pyx":556 * self.active_transaction = False * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * def _confirm_transaction(self): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 525, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 556, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":524 + /* "src/pyrfc/client.pyx":555 * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23454,7 +23418,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str */ } - /* "src/pyrfc/client.pyx":515 + /* "src/pyrfc/client.pyx":546 * raise * * def _destroy_transaction(self): # <<<<<<<<<<<<<< @@ -23477,7 +23441,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_44_destroy_transaction(str return __pyx_r; } -/* "src/pyrfc/client.pyx":527 +/* "src/pyrfc/client.pyx":558 * self._error(&errorInfo) * * def _confirm_transaction(self): # <<<<<<<<<<<<<< @@ -23513,7 +23477,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_confirm_transaction", 0); - /* "src/pyrfc/client.pyx":530 + /* "src/pyrfc/client.pyx":561 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if not self.active_transaction: # <<<<<<<<<<<<<< @@ -23523,14 +23487,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str __pyx_t_1 = ((!(__pyx_v_self->active_transaction != 0)) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":531 + /* "src/pyrfc/client.pyx":562 * cdef RFC_ERROR_INFO errorInfo * if not self.active_transaction: * raise RFCError("No transaction handle for this connection available.") # <<<<<<<<<<<<<< * if not self.alive: * self._open() */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 531, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { @@ -23544,14 +23508,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_kp_s_No_transaction_handle_for_this_c) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s_No_transaction_handle_for_this_c); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 531, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(2, 531, __pyx_L1_error) + __PYX_ERR(2, 562, __pyx_L1_error) - /* "src/pyrfc/client.pyx":530 + /* "src/pyrfc/client.pyx":561 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if not self.active_transaction: # <<<<<<<<<<<<<< @@ -23560,32 +23524,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ } - /* "src/pyrfc/client.pyx":532 + /* "src/pyrfc/client.pyx":563 * if not self.active_transaction: * raise RFCError("No transaction handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcConfirmTransaction(self._tHandle, &errorInfo) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 532, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 563, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 532, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 563, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_5 = ((!__pyx_t_1) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":533 + /* "src/pyrfc/client.pyx":564 * raise RFCError("No transaction handle for this connection available.") * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcConfirmTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 533, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 564, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":532 + /* "src/pyrfc/client.pyx":563 * if not self.active_transaction: * raise RFCError("No transaction handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< @@ -23594,7 +23558,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ } - /* "src/pyrfc/client.pyx":534 + /* "src/pyrfc/client.pyx":565 * if not self.alive: * self._open() * rc = RfcConfirmTransaction(self._tHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -23603,7 +23567,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ __pyx_v_rc = RfcConfirmTransaction(__pyx_v_self->_tHandle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":535 + /* "src/pyrfc/client.pyx":566 * self._open() * rc = RfcConfirmTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23613,18 +23577,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str __pyx_t_5 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":536 + /* "src/pyrfc/client.pyx":567 * rc = RfcConfirmTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 536, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 567, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":535 + /* "src/pyrfc/client.pyx":566 * self._open() * rc = RfcConfirmTransaction(self._tHandle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23633,7 +23597,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ } - /* "src/pyrfc/client.pyx":537 + /* "src/pyrfc/client.pyx":568 * if rc != RFC_OK: * self._error(&errorInfo) * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -23642,7 +23606,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ __pyx_v_rc = RfcDestroyTransaction(__pyx_v_self->_tHandle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":538 + /* "src/pyrfc/client.pyx":569 * self._error(&errorInfo) * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False # <<<<<<<<<<<<<< @@ -23651,7 +23615,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ __pyx_v_self->active_transaction = 0; - /* "src/pyrfc/client.pyx":539 + /* "src/pyrfc/client.pyx":570 * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23661,18 +23625,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str __pyx_t_5 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":540 + /* "src/pyrfc/client.pyx":571 * self.active_transaction = False * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * ########################################################################## */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 540, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 571, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":539 + /* "src/pyrfc/client.pyx":570 * rc = RfcDestroyTransaction(self._tHandle, &errorInfo) * self.active_transaction = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23681,7 +23645,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str */ } - /* "src/pyrfc/client.pyx":527 + /* "src/pyrfc/client.pyx":558 * self._error(&errorInfo) * * def _confirm_transaction(self): # <<<<<<<<<<<<<< @@ -23704,7 +23668,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_46_confirm_transaction(str return __pyx_r; } -/* "src/pyrfc/client.pyx":545 +/* "src/pyrfc/client.pyx":576 * # BACKGROUND RFC * * def _get_unit_id(self): # <<<<<<<<<<<<<< @@ -23742,32 +23706,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_unit_id", 0); - /* "src/pyrfc/client.pyx":551 + /* "src/pyrfc/client.pyx":582 * cdef RFC_UNITID uid * * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcGetUnitID(self._handle, uid, &errorInfo) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 551, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 582, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 551, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 582, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((!__pyx_t_2) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":552 + /* "src/pyrfc/client.pyx":583 * * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcGetUnitID(self._handle, uid, &errorInfo) * if rc != RFC_OK: */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 552, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 583, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":551 + /* "src/pyrfc/client.pyx":582 * cdef RFC_UNITID uid * * if not self.alive: # <<<<<<<<<<<<<< @@ -23776,7 +23740,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py */ } - /* "src/pyrfc/client.pyx":553 + /* "src/pyrfc/client.pyx":584 * if not self.alive: * self._open() * rc = RfcGetUnitID(self._handle, uid, &errorInfo) # <<<<<<<<<<<<<< @@ -23785,7 +23749,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py */ __pyx_v_rc = RfcGetUnitID(__pyx_v_self->_handle, __pyx_v_uid, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":554 + /* "src/pyrfc/client.pyx":585 * self._open() * rc = RfcGetUnitID(self._handle, uid, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23795,18 +23759,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":555 + /* "src/pyrfc/client.pyx":586 * rc = RfcGetUnitID(self._handle, uid, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * return wrapString(uid, RFC_UNITID_LN) * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 555, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 586, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":554 + /* "src/pyrfc/client.pyx":585 * self._open() * rc = RfcGetUnitID(self._handle, uid, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -23815,7 +23779,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py */ } - /* "src/pyrfc/client.pyx":556 + /* "src/pyrfc/client.pyx":587 * if rc != RFC_OK: * self._error(&errorInfo) * return wrapString(uid, RFC_UNITID_LN) # <<<<<<<<<<<<<< @@ -23823,18 +23787,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py * def _create_and_submit_unit(self, unit_id, calls, queue_names=None, attributes=None): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(RFC_UNITID_LN); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 556, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_int(RFC_UNITID_LN); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5.__pyx_n = 1; __pyx_t_5.uclen = __pyx_t_1; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_uid, &__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 556, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_uid, &__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 587, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_4; __pyx_t_4 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":545 + /* "src/pyrfc/client.pyx":576 * # BACKGROUND RFC * * def _get_unit_id(self): # <<<<<<<<<<<<<< @@ -23854,7 +23818,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_48_get_unit_id(struct __py return __pyx_r; } -/* "src/pyrfc/client.pyx":558 +/* "src/pyrfc/client.pyx":589 * return wrapString(uid, RFC_UNITID_LN) * * def _create_and_submit_unit(self, unit_id, calls, queue_names=None, attributes=None): # <<<<<<<<<<<<<< @@ -23904,7 +23868,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_51_create_and_submit_unit( case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_calls)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("_create_and_submit_unit", 0, 2, 4, 1); __PYX_ERR(2, 558, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("_create_and_submit_unit", 0, 2, 4, 1); __PYX_ERR(2, 589, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: @@ -23920,7 +23884,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_51_create_and_submit_unit( } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_create_and_submit_unit") < 0)) __PYX_ERR(2, 558, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_create_and_submit_unit") < 0)) __PYX_ERR(2, 589, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -23941,7 +23905,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_51_create_and_submit_unit( } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_create_and_submit_unit", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 558, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("_create_and_submit_unit", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 589, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection._create_and_submit_unit", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -24010,32 +23974,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_RefNannySetupContext("_create_and_submit_unit", 0); __Pyx_INCREF(__pyx_v_queue_names); - /* "src/pyrfc/client.pyx":571 + /* "src/pyrfc/client.pyx":602 * cdef SAP_UC* sapuc * * if not self.alive: # <<<<<<<<<<<<<< * self._open() * */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 571, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 602, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 571, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 602, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((!__pyx_t_2) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":572 + /* "src/pyrfc/client.pyx":603 * * if not self.alive: * self._open() # <<<<<<<<<<<<<< * * # uid */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 572, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 603, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":571 + /* "src/pyrfc/client.pyx":602 * cdef SAP_UC* sapuc * * if not self.alive: # <<<<<<<<<<<<<< @@ -24044,31 +24008,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":575 + /* "src/pyrfc/client.pyx":606 * * # uid * uid = fillString(unit_id) # <<<<<<<<<<<<<< * # queue * queue_names = queue_names or [] */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_unit_id); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 575, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_unit_id); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 606, __pyx_L1_error) __pyx_v_uid = __pyx_t_4; - /* "src/pyrfc/client.pyx":577 + /* "src/pyrfc/client.pyx":608 * uid = fillString(unit_id) * # queue * queue_names = queue_names or [] # <<<<<<<<<<<<<< * if len(queue_names) == 0: * queueNameCount = 0 */ - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_queue_names); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 577, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_queue_names); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 608, __pyx_L1_error) if (!__pyx_t_3) { } else { __Pyx_INCREF(__pyx_v_queue_names); __pyx_t_1 = __pyx_v_queue_names; goto __pyx_L4_bool_binop_done; } - __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 577, __pyx_L1_error) + __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_INCREF(__pyx_t_5); __pyx_t_1 = __pyx_t_5; @@ -24077,18 +24041,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_DECREF_SET(__pyx_v_queue_names, __pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":578 + /* "src/pyrfc/client.pyx":609 * # queue * queue_names = queue_names or [] * if len(queue_names) == 0: # <<<<<<<<<<<<<< * queueNameCount = 0 * queueNames = NULL */ - __pyx_t_6 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 578, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 609, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_6 == 0) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":579 + /* "src/pyrfc/client.pyx":610 * queue_names = queue_names or [] * if len(queue_names) == 0: * queueNameCount = 0 # <<<<<<<<<<<<<< @@ -24097,7 +24061,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_queueNameCount = 0; - /* "src/pyrfc/client.pyx":580 + /* "src/pyrfc/client.pyx":611 * if len(queue_names) == 0: * queueNameCount = 0 * queueNames = NULL # <<<<<<<<<<<<<< @@ -24106,7 +24070,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_queueNames = NULL; - /* "src/pyrfc/client.pyx":578 + /* "src/pyrfc/client.pyx":609 * # queue * queue_names = queue_names or [] * if len(queue_names) == 0: # <<<<<<<<<<<<<< @@ -24116,7 +24080,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( goto __pyx_L6; } - /* "src/pyrfc/client.pyx":582 + /* "src/pyrfc/client.pyx":613 * queueNames = NULL * else: * queueNameCount = int(len(queue_names)) # <<<<<<<<<<<<<< @@ -24124,10 +24088,10 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( * for i, queue_name in enumerate(queue_names): */ /*else*/ { - __pyx_t_6 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 582, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 613, __pyx_L1_error) __pyx_v_queueNameCount = ((int)__pyx_t_6); - /* "src/pyrfc/client.pyx":583 + /* "src/pyrfc/client.pyx":614 * else: * queueNameCount = int(len(queue_names)) * queueNames = mallocU(queueNameCount * sizeof(SAP_UC*)) # <<<<<<<<<<<<<< @@ -24136,7 +24100,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_queueNames = ((SAP_UC **)mallocU((__pyx_v_queueNameCount * (sizeof(SAP_UC *))))); - /* "src/pyrfc/client.pyx":584 + /* "src/pyrfc/client.pyx":615 * queueNameCount = int(len(queue_names)) * queueNames = mallocU(queueNameCount * sizeof(SAP_UC*)) * for i, queue_name in enumerate(queue_names): # <<<<<<<<<<<<<< @@ -24149,26 +24113,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_5 = __pyx_v_queue_names; __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_queue_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_queue_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 615, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_7)) { if (likely(PyList_CheckExact(__pyx_t_5))) { if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_8 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_8 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 615, __pyx_L1_error) #else - __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); #endif } else { if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 615, __pyx_L1_error) #else - __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); #endif } @@ -24178,7 +24142,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(2, 584, __pyx_L1_error) + else __PYX_ERR(2, 615, __pyx_L1_error) } break; } @@ -24188,24 +24152,24 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_8 = 0; __Pyx_INCREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); - __pyx_t_8 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_8; __pyx_t_8 = 0; - /* "src/pyrfc/client.pyx":585 + /* "src/pyrfc/client.pyx":616 * queueNames = mallocU(queueNameCount * sizeof(SAP_UC*)) * for i, queue_name in enumerate(queue_names): * queueNames[i] = fillString(queue_name) # <<<<<<<<<<<<<< * # attributes * # set default values */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_queue_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 585, __pyx_L1_error) - __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 585, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_queue_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 616, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 616, __pyx_L1_error) (__pyx_v_queueNames[__pyx_t_9]) = __pyx_t_4; - /* "src/pyrfc/client.pyx":584 + /* "src/pyrfc/client.pyx":615 * queueNameCount = int(len(queue_names)) * queueNames = mallocU(queueNameCount * sizeof(SAP_UC*)) * for i, queue_name in enumerate(queue_names): # <<<<<<<<<<<<<< @@ -24218,7 +24182,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( } __pyx_L6:; - /* "src/pyrfc/client.pyx":588 + /* "src/pyrfc/client.pyx":619 * # attributes * # set default values * memsetR(&unitAttr, 0, sizeof(RFC_UNIT_ATTRIBUTES)) # <<<<<<<<<<<<<< @@ -24227,7 +24191,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ memsetR((&__pyx_v_unitAttr), 0, (sizeof(RFC_UNIT_ATTRIBUTES))); - /* "src/pyrfc/client.pyx":589 + /* "src/pyrfc/client.pyx":620 * # set default values * memsetR(&unitAttr, 0, sizeof(RFC_UNIT_ATTRIBUTES)) * memsetR(&uIdentifier, 0, sizeof(RFC_UNIT_IDENTIFIER)) # <<<<<<<<<<<<<< @@ -24236,7 +24200,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ memsetR((&__pyx_v_uIdentifier), 0, (sizeof(RFC_UNIT_IDENTIFIER))); - /* "src/pyrfc/client.pyx":616 + /* "src/pyrfc/client.pyx":647 * # Sending time in UTC (GMT-0). Used only when the external program is server. * # In the client case the nwrfclib fills this automatically. * if attributes is not None: # <<<<<<<<<<<<<< @@ -24247,31 +24211,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":617 + /* "src/pyrfc/client.pyx":648 * # In the client case the nwrfclib fills this automatically. * if attributes is not None: * if 'kernel_trace' in attributes: # <<<<<<<<<<<<<< * unitAttr.kernelTrace = attributes['kernel_trace'] * if 'sat_trace' in attributes: */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_kernel_trace, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 617, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_kernel_trace, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 648, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":618 + /* "src/pyrfc/client.pyx":649 * if attributes is not None: * if 'kernel_trace' in attributes: * unitAttr.kernelTrace = attributes['kernel_trace'] # <<<<<<<<<<<<<< * if 'sat_trace' in attributes: * unitAttr.satTrace = attributes['sat_trace'] */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_kernel_trace); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 618, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_kernel_trace); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 649, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 618, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 649, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_unitAttr.kernelTrace = __pyx_t_10; - /* "src/pyrfc/client.pyx":617 + /* "src/pyrfc/client.pyx":648 * # In the client case the nwrfclib fills this automatically. * if attributes is not None: * if 'kernel_trace' in attributes: # <<<<<<<<<<<<<< @@ -24280,31 +24244,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":619 + /* "src/pyrfc/client.pyx":650 * if 'kernel_trace' in attributes: * unitAttr.kernelTrace = attributes['kernel_trace'] * if 'sat_trace' in attributes: # <<<<<<<<<<<<<< * unitAttr.satTrace = attributes['sat_trace'] * if 'unit_history' in attributes: */ - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_sat_trace, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 619, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_sat_trace, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 650, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":620 + /* "src/pyrfc/client.pyx":651 * unitAttr.kernelTrace = attributes['kernel_trace'] * if 'sat_trace' in attributes: * unitAttr.satTrace = attributes['sat_trace'] # <<<<<<<<<<<<<< * if 'unit_history' in attributes: * unitAttr.unitHistory = attributes['unit_history'] */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_sat_trace); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 620, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_sat_trace); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 620, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 651, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_unitAttr.satTrace = __pyx_t_10; - /* "src/pyrfc/client.pyx":619 + /* "src/pyrfc/client.pyx":650 * if 'kernel_trace' in attributes: * unitAttr.kernelTrace = attributes['kernel_trace'] * if 'sat_trace' in attributes: # <<<<<<<<<<<<<< @@ -24313,31 +24277,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":621 + /* "src/pyrfc/client.pyx":652 * if 'sat_trace' in attributes: * unitAttr.satTrace = attributes['sat_trace'] * if 'unit_history' in attributes: # <<<<<<<<<<<<<< * unitAttr.unitHistory = attributes['unit_history'] * if 'lock' in attributes: */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_unit_history, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 621, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_unit_history, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 652, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":622 + /* "src/pyrfc/client.pyx":653 * unitAttr.satTrace = attributes['sat_trace'] * if 'unit_history' in attributes: * unitAttr.unitHistory = attributes['unit_history'] # <<<<<<<<<<<<<< * if 'lock' in attributes: * unitAttr.lock = attributes['lock'] */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_unit_history); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 622, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_unit_history); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 622, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 653, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_unitAttr.unitHistory = __pyx_t_10; - /* "src/pyrfc/client.pyx":621 + /* "src/pyrfc/client.pyx":652 * if 'sat_trace' in attributes: * unitAttr.satTrace = attributes['sat_trace'] * if 'unit_history' in attributes: # <<<<<<<<<<<<<< @@ -24346,31 +24310,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":623 + /* "src/pyrfc/client.pyx":654 * if 'unit_history' in attributes: * unitAttr.unitHistory = attributes['unit_history'] * if 'lock' in attributes: # <<<<<<<<<<<<<< * unitAttr.lock = attributes['lock'] * if 'no_commit_check' in attributes: */ - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_lock, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 623, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_lock, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 654, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":624 + /* "src/pyrfc/client.pyx":655 * unitAttr.unitHistory = attributes['unit_history'] * if 'lock' in attributes: * unitAttr.lock = attributes['lock'] # <<<<<<<<<<<<<< * if 'no_commit_check' in attributes: * unitAttr.noCommitCheck = attributes['no_commit_check'] */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_lock); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 624, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_lock); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 655, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 624, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 655, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_unitAttr.lock = __pyx_t_10; - /* "src/pyrfc/client.pyx":623 + /* "src/pyrfc/client.pyx":654 * if 'unit_history' in attributes: * unitAttr.unitHistory = attributes['unit_history'] * if 'lock' in attributes: # <<<<<<<<<<<<<< @@ -24379,31 +24343,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":625 + /* "src/pyrfc/client.pyx":656 * if 'lock' in attributes: * unitAttr.lock = attributes['lock'] * if 'no_commit_check' in attributes: # <<<<<<<<<<<<<< * unitAttr.noCommitCheck = attributes['no_commit_check'] * if 'user' in attributes and attributes['user'] is not None: */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_no_commit_check, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 625, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_no_commit_check, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 656, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":626 + /* "src/pyrfc/client.pyx":657 * unitAttr.lock = attributes['lock'] * if 'no_commit_check' in attributes: * unitAttr.noCommitCheck = attributes['no_commit_check'] # <<<<<<<<<<<<<< * if 'user' in attributes and attributes['user'] is not None: * # (SAP_UC[12+1]) Sender User (optional). Default is current operating system User. */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_no_commit_check); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 626, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_no_commit_check); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 626, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyInt_As_short(__pyx_t_1); if (unlikely((__pyx_t_10 == (short)-1) && PyErr_Occurred())) __PYX_ERR(2, 657, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_unitAttr.noCommitCheck = __pyx_t_10; - /* "src/pyrfc/client.pyx":625 + /* "src/pyrfc/client.pyx":656 * if 'lock' in attributes: * unitAttr.lock = attributes['lock'] * if 'no_commit_check' in attributes: # <<<<<<<<<<<<<< @@ -24412,21 +24376,21 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":627 + /* "src/pyrfc/client.pyx":658 * if 'no_commit_check' in attributes: * unitAttr.noCommitCheck = attributes['no_commit_check'] * if 'user' in attributes and attributes['user'] is not None: # <<<<<<<<<<<<<< * # (SAP_UC[12+1]) Sender User (optional). Default is current operating system User. * sapuc = fillString(attributes['user'][0:12]) */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_user, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 627, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_user, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 658, __pyx_L1_error) __pyx_t_11 = (__pyx_t_2 != 0); if (__pyx_t_11) { } else { __pyx_t_3 = __pyx_t_11; goto __pyx_L16_bool_binop_done; } - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_user); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 627, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_user); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 658, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = (__pyx_t_1 != Py_None); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -24435,39 +24399,39 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_L16_bool_binop_done:; if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":629 + /* "src/pyrfc/client.pyx":660 * if 'user' in attributes and attributes['user'] is not None: * # (SAP_UC[12+1]) Sender User (optional). Default is current operating system User. * sapuc = fillString(attributes['user'][0:12]) # <<<<<<<<<<<<<< * strncpyU(unitAttr.user, sapuc, len(attributes['user'][0:12]) + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_user); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 629, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_user); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 12, NULL, NULL, &__pyx_slice__28, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 629, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 12, NULL, NULL, &__pyx_slice__28, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 629, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_sapuc = __pyx_t_4; - /* "src/pyrfc/client.pyx":630 + /* "src/pyrfc/client.pyx":661 * # (SAP_UC[12+1]) Sender User (optional). Default is current operating system User. * sapuc = fillString(attributes['user'][0:12]) * strncpyU(unitAttr.user, sapuc, len(attributes['user'][0:12]) + 1) # <<<<<<<<<<<<<< * free(sapuc) * if 'client' in attributes: */ - __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_user); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 630, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_user); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 12, NULL, NULL, &__pyx_slice__28, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 630, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 12, NULL, NULL, &__pyx_slice__28, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 630, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 661, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; strncpyU(__pyx_v_unitAttr.user, __pyx_v_sapuc, (__pyx_t_6 + 1)); - /* "src/pyrfc/client.pyx":631 + /* "src/pyrfc/client.pyx":662 * sapuc = fillString(attributes['user'][0:12]) * strncpyU(unitAttr.user, sapuc, len(attributes['user'][0:12]) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -24476,7 +24440,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_sapuc); - /* "src/pyrfc/client.pyx":627 + /* "src/pyrfc/client.pyx":658 * if 'no_commit_check' in attributes: * unitAttr.noCommitCheck = attributes['no_commit_check'] * if 'user' in attributes and attributes['user'] is not None: # <<<<<<<<<<<<<< @@ -24485,50 +24449,50 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":632 + /* "src/pyrfc/client.pyx":663 * strncpyU(unitAttr.user, sapuc, len(attributes['user'][0:12]) + 1) * free(sapuc) * if 'client' in attributes: # <<<<<<<<<<<<<< * # (SAP_UC[3+1]) Sender Client ("Mandant") (optional). Default is "000". * sapuc = fillString(attributes['client'][0:3]) */ - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_client, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 632, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_client, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 663, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":634 + /* "src/pyrfc/client.pyx":665 * if 'client' in attributes: * # (SAP_UC[3+1]) Sender Client ("Mandant") (optional). Default is "000". * sapuc = fillString(attributes['client'][0:3]) # <<<<<<<<<<<<<< * strncpyU(unitAttr.client, sapuc, len(attributes['client'][0:3]) + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_client); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 634, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_client); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 3, NULL, NULL, &__pyx_slice__18, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 634, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 3, NULL, NULL, &__pyx_slice__18, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 634, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 665, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_sapuc = __pyx_t_4; - /* "src/pyrfc/client.pyx":635 + /* "src/pyrfc/client.pyx":666 * # (SAP_UC[3+1]) Sender Client ("Mandant") (optional). Default is "000". * sapuc = fillString(attributes['client'][0:3]) * strncpyU(unitAttr.client, sapuc, len(attributes['client'][0:3]) + 1) # <<<<<<<<<<<<<< * free(sapuc) * if 't_code' in attributes: */ - __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_client); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 635, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_client); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 3, NULL, NULL, &__pyx_slice__18, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 635, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 3, NULL, NULL, &__pyx_slice__18, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 666, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 635, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 666, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; strncpyU(__pyx_v_unitAttr.client, __pyx_v_sapuc, (__pyx_t_6 + 1)); - /* "src/pyrfc/client.pyx":636 + /* "src/pyrfc/client.pyx":667 * sapuc = fillString(attributes['client'][0:3]) * strncpyU(unitAttr.client, sapuc, len(attributes['client'][0:3]) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -24537,7 +24501,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_sapuc); - /* "src/pyrfc/client.pyx":632 + /* "src/pyrfc/client.pyx":663 * strncpyU(unitAttr.user, sapuc, len(attributes['user'][0:12]) + 1) * free(sapuc) * if 'client' in attributes: # <<<<<<<<<<<<<< @@ -24546,50 +24510,50 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":637 + /* "src/pyrfc/client.pyx":668 * strncpyU(unitAttr.client, sapuc, len(attributes['client'][0:3]) + 1) * free(sapuc) * if 't_code' in attributes: # <<<<<<<<<<<<<< * # (SAP_UC[20+1]) Sender Transaction Code (optional). Default is "". * sapuc = fillString(attributes['t_code'][0:20]) */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_t_code, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 637, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_t_code, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 668, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":639 + /* "src/pyrfc/client.pyx":670 * if 't_code' in attributes: * # (SAP_UC[20+1]) Sender Transaction Code (optional). Default is "". * sapuc = fillString(attributes['t_code'][0:20]) # <<<<<<<<<<<<<< * strncpyU(unitAttr.tCode, sapuc, len(attributes['t_code'][0:20]) + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_t_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_t_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 20, NULL, NULL, &__pyx_slice__16, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 20, NULL, NULL, &__pyx_slice__16, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 670, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 639, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 670, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_sapuc = __pyx_t_4; - /* "src/pyrfc/client.pyx":640 + /* "src/pyrfc/client.pyx":671 * # (SAP_UC[20+1]) Sender Transaction Code (optional). Default is "". * sapuc = fillString(attributes['t_code'][0:20]) * strncpyU(unitAttr.tCode, sapuc, len(attributes['t_code'][0:20]) + 1) # <<<<<<<<<<<<<< * free(sapuc) * if 'program' in attributes and attributes['program'] is not None: */ - __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_t_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 640, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_t_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 20, NULL, NULL, &__pyx_slice__16, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 640, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 20, NULL, NULL, &__pyx_slice__16, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 671, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 640, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 671, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; strncpyU(__pyx_v_unitAttr.tCode, __pyx_v_sapuc, (__pyx_t_6 + 1)); - /* "src/pyrfc/client.pyx":641 + /* "src/pyrfc/client.pyx":672 * sapuc = fillString(attributes['t_code'][0:20]) * strncpyU(unitAttr.tCode, sapuc, len(attributes['t_code'][0:20]) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -24598,7 +24562,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_sapuc); - /* "src/pyrfc/client.pyx":637 + /* "src/pyrfc/client.pyx":668 * strncpyU(unitAttr.client, sapuc, len(attributes['client'][0:3]) + 1) * free(sapuc) * if 't_code' in attributes: # <<<<<<<<<<<<<< @@ -24607,21 +24571,21 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":642 + /* "src/pyrfc/client.pyx":673 * strncpyU(unitAttr.tCode, sapuc, len(attributes['t_code'][0:20]) + 1) * free(sapuc) * if 'program' in attributes and attributes['program'] is not None: # <<<<<<<<<<<<<< * # (SAP_UC[40+1]) Sender Program (optional). Default is current executable name. * sapuc = fillString(attributes['program'][0:40]) */ - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_program, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 642, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_program, __pyx_v_attributes, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 673, __pyx_L1_error) __pyx_t_11 = (__pyx_t_2 != 0); if (__pyx_t_11) { } else { __pyx_t_3 = __pyx_t_11; goto __pyx_L21_bool_binop_done; } - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_program); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 642, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_program); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 673, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_11 = (__pyx_t_1 != Py_None); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -24630,39 +24594,39 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_L21_bool_binop_done:; if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":644 + /* "src/pyrfc/client.pyx":675 * if 'program' in attributes and attributes['program'] is not None: * # (SAP_UC[40+1]) Sender Program (optional). Default is current executable name. * sapuc = fillString(attributes['program'][0:40]) # <<<<<<<<<<<<<< * strncpyU(unitAttr.program, sapuc, len(attributes['program'][0:40]) + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_program); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 644, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_program); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 40, NULL, NULL, &__pyx_slice__29, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 644, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetSlice(__pyx_t_1, 0, 40, NULL, NULL, &__pyx_slice__29, 1, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 644, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_5); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 675, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_sapuc = __pyx_t_4; - /* "src/pyrfc/client.pyx":645 + /* "src/pyrfc/client.pyx":676 * # (SAP_UC[40+1]) Sender Program (optional). Default is current executable name. * sapuc = fillString(attributes['program'][0:40]) * strncpyU(unitAttr.program, sapuc, len(attributes['program'][0:40]) + 1) # <<<<<<<<<<<<<< * free(sapuc) * */ - __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_program); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 645, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_attributes, __pyx_n_s_program); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 40, NULL, NULL, &__pyx_slice__29, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 645, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_5, 0, 40, NULL, NULL, &__pyx_slice__29, 1, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 676, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 645, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 676, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; strncpyU(__pyx_v_unitAttr.program, __pyx_v_sapuc, (__pyx_t_6 + 1)); - /* "src/pyrfc/client.pyx":646 + /* "src/pyrfc/client.pyx":677 * sapuc = fillString(attributes['program'][0:40]) * strncpyU(unitAttr.program, sapuc, len(attributes['program'][0:40]) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -24671,7 +24635,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_sapuc); - /* "src/pyrfc/client.pyx":642 + /* "src/pyrfc/client.pyx":673 * strncpyU(unitAttr.tCode, sapuc, len(attributes['t_code'][0:20]) + 1) * free(sapuc) * if 'program' in attributes and attributes['program'] is not None: # <<<<<<<<<<<<<< @@ -24680,7 +24644,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":616 + /* "src/pyrfc/client.pyx":647 * # Sending time in UTC (GMT-0). Used only when the external program is server. * # In the client case the nwrfclib fills this automatically. * if attributes is not None: # <<<<<<<<<<<<<< @@ -24689,7 +24653,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":648 + /* "src/pyrfc/client.pyx":679 * free(sapuc) * * self._uHandle = RfcCreateUnit(self._handle, uid, queueNames, queueNameCount, &unitAttr, &uIdentifier, &errorInfo) # <<<<<<<<<<<<<< @@ -24698,18 +24662,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_self->_uHandle = RfcCreateUnit(__pyx_v_self->_handle, __pyx_v_uid, ((const SAP_UC* *)__pyx_v_queueNames), __pyx_v_queueNameCount, (&__pyx_v_unitAttr), (&__pyx_v_uIdentifier), (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":651 + /* "src/pyrfc/client.pyx":682 * * # queue (deallocate) * if len(queue_names) > 0: # <<<<<<<<<<<<<< * for i, queue_name in enumerate(queue_names): * free(queueNames[i]) */ - __pyx_t_6 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 651, __pyx_L1_error) + __pyx_t_6 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_6 == ((Py_ssize_t)-1))) __PYX_ERR(2, 682, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_6 > 0) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":652 + /* "src/pyrfc/client.pyx":683 * # queue (deallocate) * if len(queue_names) > 0: * for i, queue_name in enumerate(queue_names): # <<<<<<<<<<<<<< @@ -24722,26 +24686,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_5 = __pyx_v_queue_names; __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_queue_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_v_queue_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 683, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_7)) { if (likely(PyList_CheckExact(__pyx_t_5))) { if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_8 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_8 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 683, __pyx_L1_error) #else - __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); #endif } else { if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 683, __pyx_L1_error) #else - __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); #endif } @@ -24751,7 +24715,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(2, 652, __pyx_L1_error) + else __PYX_ERR(2, 683, __pyx_L1_error) } break; } @@ -24761,23 +24725,23 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_8 = 0; __Pyx_INCREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); - __pyx_t_8 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 652, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_8; __pyx_t_8 = 0; - /* "src/pyrfc/client.pyx":653 + /* "src/pyrfc/client.pyx":684 * if len(queue_names) > 0: * for i, queue_name in enumerate(queue_names): * free(queueNames[i]) # <<<<<<<<<<<<<< * free(queueNames) * # uid (deallocate) */ - __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 653, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(2, 684, __pyx_L1_error) free((__pyx_v_queueNames[__pyx_t_9])); - /* "src/pyrfc/client.pyx":652 + /* "src/pyrfc/client.pyx":683 * # queue (deallocate) * if len(queue_names) > 0: * for i, queue_name in enumerate(queue_names): # <<<<<<<<<<<<<< @@ -24788,7 +24752,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":654 + /* "src/pyrfc/client.pyx":685 * for i, queue_name in enumerate(queue_names): * free(queueNames[i]) * free(queueNames) # <<<<<<<<<<<<<< @@ -24797,7 +24761,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_queueNames); - /* "src/pyrfc/client.pyx":651 + /* "src/pyrfc/client.pyx":682 * * # queue (deallocate) * if len(queue_names) > 0: # <<<<<<<<<<<<<< @@ -24806,7 +24770,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":656 + /* "src/pyrfc/client.pyx":687 * free(queueNames) * # uid (deallocate) * free(uid) # <<<<<<<<<<<<<< @@ -24815,7 +24779,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_uid); - /* "src/pyrfc/client.pyx":658 + /* "src/pyrfc/client.pyx":689 * free(uid) * * if self._uHandle == NULL: # <<<<<<<<<<<<<< @@ -24825,18 +24789,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_3 = ((__pyx_v_self->_uHandle == NULL) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":659 + /* "src/pyrfc/client.pyx":690 * * if self._uHandle == NULL: * self._error(&errorInfo) # <<<<<<<<<<<<<< * self.active_unit = True * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 659, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 690, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":658 + /* "src/pyrfc/client.pyx":689 * free(uid) * * if self._uHandle == NULL: # <<<<<<<<<<<<<< @@ -24845,7 +24809,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":660 + /* "src/pyrfc/client.pyx":691 * if self._uHandle == NULL: * self._error(&errorInfo) * self.active_unit = True # <<<<<<<<<<<<<< @@ -24854,7 +24818,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_self->active_unit = 1; - /* "src/pyrfc/client.pyx":662 + /* "src/pyrfc/client.pyx":693 * self.active_unit = True * * try: # <<<<<<<<<<<<<< @@ -24870,7 +24834,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "src/pyrfc/client.pyx":663 + /* "src/pyrfc/client.pyx":694 * * try: * for func_name, params in calls: # <<<<<<<<<<<<<< @@ -24881,26 +24845,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_1 = __pyx_v_calls; __Pyx_INCREF(__pyx_t_1); __pyx_t_6 = 0; __pyx_t_7 = NULL; } else { - __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_calls); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_calls); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_7 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 694, __pyx_L27_error) } for (;;) { if (likely(!__pyx_t_7)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 694, __pyx_L27_error) #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_5); #endif } else { if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 694, __pyx_L27_error) #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_5); #endif } @@ -24910,7 +24874,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(2, 663, __pyx_L27_error) + else __PYX_ERR(2, 694, __pyx_L27_error) } break; } @@ -24922,7 +24886,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(2, 663, __pyx_L27_error) + __PYX_ERR(2, 694, __pyx_L27_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -24935,15 +24899,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_15); #else - __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_15 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_15 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_15); #endif __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else { Py_ssize_t index = -1; - __pyx_t_16 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 663, __pyx_L27_error) + __pyx_t_16 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 694, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_16); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_17 = Py_TYPE(__pyx_t_16)->tp_iternext; @@ -24951,7 +24915,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_GOTREF(__pyx_t_8); index = 1; __pyx_t_15 = __pyx_t_17(__pyx_t_16); if (unlikely(!__pyx_t_15)) goto __pyx_L35_unpacking_failed; __Pyx_GOTREF(__pyx_t_15); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_17(__pyx_t_16), 2) < 0) __PYX_ERR(2, 663, __pyx_L27_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_17(__pyx_t_16), 2) < 0) __PYX_ERR(2, 694, __pyx_L27_error) __pyx_t_17 = NULL; __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; goto __pyx_L36_unpacking_done; @@ -24959,7 +24923,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; __pyx_t_17 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(2, 663, __pyx_L27_error) + __PYX_ERR(2, 694, __pyx_L27_error) __pyx_L36_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_v_func_name, __pyx_t_8); @@ -24967,17 +24931,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_XDECREF_SET(__pyx_v_params, __pyx_t_15); __pyx_t_15 = 0; - /* "src/pyrfc/client.pyx":664 + /* "src/pyrfc/client.pyx":695 * try: * for func_name, params in calls: * funcName = fillString(func_name) # <<<<<<<<<<<<<< * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 664, __pyx_L27_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(2, 695, __pyx_L27_error) __pyx_v_funcName = __pyx_t_4; - /* "src/pyrfc/client.pyx":665 + /* "src/pyrfc/client.pyx":696 * for func_name, params in calls: * funcName = fillString(func_name) * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) # <<<<<<<<<<<<<< @@ -24986,7 +24950,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_funcDesc = RfcGetFunctionDesc(__pyx_v_self->_handle, __pyx_v_funcName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":666 + /* "src/pyrfc/client.pyx":697 * funcName = fillString(func_name) * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) # <<<<<<<<<<<<<< @@ -24995,7 +24959,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ free(__pyx_v_funcName); - /* "src/pyrfc/client.pyx":667 + /* "src/pyrfc/client.pyx":698 * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -25005,18 +24969,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_3 = ((!(__pyx_v_funcDesc != 0)) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":668 + /* "src/pyrfc/client.pyx":699 * free(funcName) * if not funcDesc: * self._error(&errorInfo) # <<<<<<<<<<<<<< * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: */ - __pyx_t_5 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 668, __pyx_L27_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 699, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/client.pyx":667 + /* "src/pyrfc/client.pyx":698 * funcDesc = RfcGetFunctionDesc(self._handle, funcName, &errorInfo) * free(funcName) * if not funcDesc: # <<<<<<<<<<<<<< @@ -25025,7 +24989,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":669 + /* "src/pyrfc/client.pyx":700 * if not funcDesc: * self._error(&errorInfo) * funcCont = RfcCreateFunction(funcDesc, &errorInfo) # <<<<<<<<<<<<<< @@ -25034,7 +24998,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_funcCont = RfcCreateFunction(__pyx_v_funcDesc, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":670 + /* "src/pyrfc/client.pyx":701 * self._error(&errorInfo) * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: # <<<<<<<<<<<<<< @@ -25044,18 +25008,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_3 = ((!(__pyx_v_funcCont != 0)) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":671 + /* "src/pyrfc/client.pyx":702 * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: * self._error(&errorInfo) # <<<<<<<<<<<<<< * try: * for name, value in params.iteritems(): */ - __pyx_t_5 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 671, __pyx_L27_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 702, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/client.pyx":670 + /* "src/pyrfc/client.pyx":701 * self._error(&errorInfo) * funcCont = RfcCreateFunction(funcDesc, &errorInfo) * if not funcCont: # <<<<<<<<<<<<<< @@ -25064,7 +25028,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":672 + /* "src/pyrfc/client.pyx":703 * if not funcCont: * self._error(&errorInfo) * try: # <<<<<<<<<<<<<< @@ -25073,7 +25037,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ /*try:*/ { - /* "src/pyrfc/client.pyx":673 + /* "src/pyrfc/client.pyx":704 * self._error(&errorInfo) * try: * for name, value in params.iteritems(): # <<<<<<<<<<<<<< @@ -25083,9 +25047,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_9 = 0; if (unlikely(__pyx_v_params == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "iteritems"); - __PYX_ERR(2, 673, __pyx_L42_error) + __PYX_ERR(2, 704, __pyx_L42_error) } - __pyx_t_15 = __Pyx_dict_iterator(__pyx_v_params, 0, __pyx_n_s_iteritems, (&__pyx_t_18), (&__pyx_t_19)); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 673, __pyx_L42_error) + __pyx_t_15 = __Pyx_dict_iterator(__pyx_v_params, 0, __pyx_n_s_iteritems, (&__pyx_t_18), (&__pyx_t_19)); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 704, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = __pyx_t_15; @@ -25093,7 +25057,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( while (1) { __pyx_t_20 = __Pyx_dict_iter_next(__pyx_t_5, __pyx_t_18, &__pyx_t_9, &__pyx_t_15, &__pyx_t_8, NULL, __pyx_t_19); if (unlikely(__pyx_t_20 == 0)) break; - if (unlikely(__pyx_t_20 == -1)) __PYX_ERR(2, 673, __pyx_L42_error) + if (unlikely(__pyx_t_20 == -1)) __PYX_ERR(2, 704, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_15); __Pyx_GOTREF(__pyx_t_8); __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_15); @@ -25101,20 +25065,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/client.pyx":674 + /* "src/pyrfc/client.pyx":705 * try: * for name, value in params.iteritems(): * fillFunctionParameter(funcDesc, funcCont, name, value) # <<<<<<<<<<<<<< * # Add RFC call to unit * rc = RfcInvokeInUnit(self._uHandle, funcCont, &errorInfo) */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcCont, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 674, __pyx_L42_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcCont, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 705, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/client.pyx":676 + /* "src/pyrfc/client.pyx":707 * fillFunctionParameter(funcDesc, funcCont, name, value) * # Add RFC call to unit * rc = RfcInvokeInUnit(self._uHandle, funcCont, &errorInfo) # <<<<<<<<<<<<<< @@ -25123,7 +25087,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ __pyx_v_rc = RfcInvokeInUnit(__pyx_v_self->_uHandle, __pyx_v_funcCont, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":677 + /* "src/pyrfc/client.pyx":708 * # Add RFC call to unit * rc = RfcInvokeInUnit(self._uHandle, funcCont, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25133,18 +25097,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":678 + /* "src/pyrfc/client.pyx":709 * rc = RfcInvokeInUnit(self._uHandle, funcCont, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * finally: * RfcDestroyFunction(funcCont, NULL) */ - __pyx_t_5 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 678, __pyx_L42_error) + __pyx_t_5 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 709, __pyx_L42_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/client.pyx":677 + /* "src/pyrfc/client.pyx":708 * # Add RFC call to unit * rc = RfcInvokeInUnit(self._uHandle, funcCont, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25154,7 +25118,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( } } - /* "src/pyrfc/client.pyx":680 + /* "src/pyrfc/client.pyx":711 * self._error(&errorInfo) * finally: * RfcDestroyFunction(funcCont, NULL) # <<<<<<<<<<<<<< @@ -25204,7 +25168,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_L43:; } - /* "src/pyrfc/client.pyx":663 + /* "src/pyrfc/client.pyx":694 * * try: * for func_name, params in calls: # <<<<<<<<<<<<<< @@ -25214,16 +25178,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":682 + /* "src/pyrfc/client.pyx":713 * RfcDestroyFunction(funcCont, NULL) * # execute * print (" Invocation finished. submitting unit.") # <<<<<<<<<<<<<< * with nogil: * rc = RfcSubmitUnit(self._uHandle, &errorInfo) */ - if (__Pyx_PrintOne(0, __pyx_kp_s_Invocation_finished_submitting) < 0) __PYX_ERR(2, 682, __pyx_L27_error) + if (__Pyx_PrintOne(0, __pyx_kp_s_Invocation_finished_submitting) < 0) __PYX_ERR(2, 713, __pyx_L27_error) - /* "src/pyrfc/client.pyx":683 + /* "src/pyrfc/client.pyx":714 * # execute * print (" Invocation finished. submitting unit.") * with nogil: # <<<<<<<<<<<<<< @@ -25238,7 +25202,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( #endif /*try:*/ { - /* "src/pyrfc/client.pyx":684 + /* "src/pyrfc/client.pyx":715 * print (" Invocation finished. submitting unit.") * with nogil: * rc = RfcSubmitUnit(self._uHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -25248,7 +25212,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_v_rc = RfcSubmitUnit(__pyx_v_self->_uHandle, (&__pyx_v_errorInfo)); } - /* "src/pyrfc/client.pyx":683 + /* "src/pyrfc/client.pyx":714 * # execute * print (" Invocation finished. submitting unit.") * with nogil: # <<<<<<<<<<<<<< @@ -25267,7 +25231,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( } } - /* "src/pyrfc/client.pyx":685 + /* "src/pyrfc/client.pyx":716 * with nogil: * rc = RfcSubmitUnit(self._uHandle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25277,18 +25241,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":686 + /* "src/pyrfc/client.pyx":717 * rc = RfcSubmitUnit(self._uHandle, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * except RFCError as e: */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 686, __pyx_L27_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 717, __pyx_L27_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":685 + /* "src/pyrfc/client.pyx":716 * with nogil: * rc = RfcSubmitUnit(self._uHandle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25297,7 +25261,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ } - /* "src/pyrfc/client.pyx":662 + /* "src/pyrfc/client.pyx":693 * self.active_unit = True * * try: # <<<<<<<<<<<<<< @@ -25316,7 +25280,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/client.pyx":688 + /* "src/pyrfc/client.pyx":719 * self._error(&errorInfo) * * except RFCError as e: # <<<<<<<<<<<<<< @@ -25324,7 +25288,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( * RfcDestroyUnit(self._uHandle, NULL) */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_8); - __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 688, __pyx_L29_except_error) + __Pyx_GetModuleGlobalName(__pyx_t_15, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_15)) __PYX_ERR(2, 719, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_15); __pyx_t_20 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_15); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; @@ -25332,7 +25296,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_8 = 0; if (__pyx_t_20) { __Pyx_AddTraceback("pyrfc._cyrfc.Connection._create_and_submit_unit", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(2, 688, __pyx_L29_except_error) + if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(2, 719, __pyx_L29_except_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_1); @@ -25340,7 +25304,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_v_e = __pyx_t_5; /*try:*/ { - /* "src/pyrfc/client.pyx":690 + /* "src/pyrfc/client.pyx":721 * except RFCError as e: * # clean up actions * RfcDestroyUnit(self._uHandle, NULL) # <<<<<<<<<<<<<< @@ -25349,7 +25313,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( */ (void)(RfcDestroyUnit(__pyx_v_self->_uHandle, NULL)); - /* "src/pyrfc/client.pyx":691 + /* "src/pyrfc/client.pyx":722 * # clean up actions * RfcDestroyUnit(self._uHandle, NULL) * raise # <<<<<<<<<<<<<< @@ -25361,10 +25325,10 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __Pyx_XGIVEREF(__pyx_t_1); __Pyx_ErrRestoreWithState(__pyx_t_8, __pyx_t_5, __pyx_t_1); __pyx_t_8 = 0; __pyx_t_5 = 0; __pyx_t_1 = 0; - __PYX_ERR(2, 691, __pyx_L60_error) + __PYX_ERR(2, 722, __pyx_L60_error) } - /* "src/pyrfc/client.pyx":688 + /* "src/pyrfc/client.pyx":719 * self._error(&errorInfo) * * except RFCError as e: # <<<<<<<<<<<<<< @@ -25411,7 +25375,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( goto __pyx_L29_except_error; __pyx_L29_except_error:; - /* "src/pyrfc/client.pyx":662 + /* "src/pyrfc/client.pyx":693 * self.active_unit = True * * try: # <<<<<<<<<<<<<< @@ -25426,19 +25390,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( __pyx_L32_try_end:; } - /* "src/pyrfc/client.pyx":693 + /* "src/pyrfc/client.pyx":724 * raise * * unit_identifier = wrapUnitIdentifier(uIdentifier) # <<<<<<<<<<<<<< * return unit_identifier["queued"] * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier(__pyx_v_uIdentifier); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 693, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier(__pyx_v_uIdentifier); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 724, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_unit_identifier = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":694 + /* "src/pyrfc/client.pyx":725 * * unit_identifier = wrapUnitIdentifier(uIdentifier) * return unit_identifier["queued"] # <<<<<<<<<<<<<< @@ -25446,13 +25410,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( * def _get_unit_state(self, unit): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit_identifier, __pyx_n_s_queued); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 694, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit_identifier, __pyx_n_s_queued); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 725, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":558 + /* "src/pyrfc/client.pyx":589 * return wrapString(uid, RFC_UNITID_LN) * * def _create_and_submit_unit(self, unit_id, calls, queue_names=None, attributes=None): # <<<<<<<<<<<<<< @@ -25484,7 +25448,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_50_create_and_submit_unit( return __pyx_r; } -/* "src/pyrfc/client.pyx":696 +/* "src/pyrfc/client.pyx":727 * return unit_identifier["queued"] * * def _get_unit_state(self, unit): # <<<<<<<<<<<<<< @@ -25527,17 +25491,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_unit_state", 0); - /* "src/pyrfc/client.pyx":699 + /* "src/pyrfc/client.pyx":730 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * cdef RFC_UNIT_IDENTIFIER uIdentifier = fillUnitIdentifier(unit) # <<<<<<<<<<<<<< * cdef RFC_UNIT_STATE state * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(__pyx_v_unit); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 699, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(__pyx_v_unit); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 730, __pyx_L1_error) __pyx_v_uIdentifier = __pyx_t_1; - /* "src/pyrfc/client.pyx":702 + /* "src/pyrfc/client.pyx":733 * cdef RFC_UNIT_STATE state * * if not self.active_unit: # <<<<<<<<<<<<<< @@ -25547,14 +25511,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_2 = ((!(__pyx_v_self->active_unit != 0)) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":703 + /* "src/pyrfc/client.pyx":734 * * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") # <<<<<<<<<<<<<< * if not self.alive: * self._open() */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 703, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -25568,14 +25532,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_No_unit_handle_for_this_connecti) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_No_unit_handle_for_this_connecti); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 703, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 734, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(2, 703, __pyx_L1_error) + __PYX_ERR(2, 734, __pyx_L1_error) - /* "src/pyrfc/client.pyx":702 + /* "src/pyrfc/client.pyx":733 * cdef RFC_UNIT_STATE state * * if not self.active_unit: # <<<<<<<<<<<<<< @@ -25584,32 +25548,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ */ } - /* "src/pyrfc/client.pyx":704 + /* "src/pyrfc/client.pyx":735 * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcGetUnitState(self._handle, &uIdentifier, &state, &errorInfo) */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 704, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 735, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 704, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 735, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = ((!__pyx_t_2) != 0); if (__pyx_t_6) { - /* "src/pyrfc/client.pyx":705 + /* "src/pyrfc/client.pyx":736 * raise RFCError("No unit handle for this connection available.") * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcGetUnitState(self._handle, &uIdentifier, &state, &errorInfo) * if rc != RFC_OK: */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 705, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 736, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":704 + /* "src/pyrfc/client.pyx":735 * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< @@ -25618,7 +25582,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ */ } - /* "src/pyrfc/client.pyx":706 + /* "src/pyrfc/client.pyx":737 * if not self.alive: * self._open() * rc = RfcGetUnitState(self._handle, &uIdentifier, &state, &errorInfo) # <<<<<<<<<<<<<< @@ -25627,7 +25591,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ */ __pyx_v_rc = RfcGetUnitState(__pyx_v_self->_handle, (&__pyx_v_uIdentifier), (&__pyx_v_state), (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":707 + /* "src/pyrfc/client.pyx":738 * self._open() * rc = RfcGetUnitState(self._handle, &uIdentifier, &state, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25637,18 +25601,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_6 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_6) { - /* "src/pyrfc/client.pyx":708 + /* "src/pyrfc/client.pyx":739 * rc = RfcGetUnitState(self._handle, &uIdentifier, &state, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * if state not in enum_values(UnitState): * raise RFCError(f"Unit {unit['id']} has invalid state '{state}'") */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 708, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 739, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":707 + /* "src/pyrfc/client.pyx":738 * self._open() * rc = RfcGetUnitState(self._handle, &uIdentifier, &state, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25657,18 +25621,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ */ } - /* "src/pyrfc/client.pyx":709 + /* "src/pyrfc/client.pyx":740 * if rc != RFC_OK: * self._error(&errorInfo) * if state not in enum_values(UnitState): # <<<<<<<<<<<<<< * raise RFCError(f"Unit {unit['id']} has invalid state '{state}'") * return UnitState(state).name */ - __pyx_t_3 = __Pyx_PyInt_From_RFC_UNIT_STATE(__pyx_v_state); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 709, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_RFC_UNIT_STATE(__pyx_v_state); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_enum_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 709, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_enum_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 709, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { @@ -25683,25 +25647,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 709, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 740, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_t_3, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 709, __pyx_L1_error) + __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_t_3, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 740, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_2 = (__pyx_t_6 != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":710 + /* "src/pyrfc/client.pyx":741 * self._error(&errorInfo) * if state not in enum_values(UnitState): * raise RFCError(f"Unit {unit['id']} has invalid state '{state}'") # <<<<<<<<<<<<<< * return UnitState(state).name * */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 710, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 710, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_9 = 0; __pyx_t_10 = 127; @@ -25709,9 +25673,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_9 += 5; __Pyx_GIVEREF(__pyx_kp_u_Unit); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Unit); - __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 710, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 710, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_10; @@ -25723,7 +25687,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_9 += 20; __Pyx_GIVEREF(__pyx_kp_u_has_invalid_state); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_has_invalid_state); - __pyx_t_8 = __Pyx_PyUnicode_From_RFC_UNIT_STATE(__pyx_v_state, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 710, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_From_RFC_UNIT_STATE(__pyx_v_state, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_10; __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8); @@ -25734,7 +25698,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_9 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_kp_u__6); - __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 710, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_5, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; @@ -25750,14 +25714,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_8); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 710, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 741, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 710, __pyx_L1_error) + __PYX_ERR(2, 741, __pyx_L1_error) - /* "src/pyrfc/client.pyx":709 + /* "src/pyrfc/client.pyx":740 * if rc != RFC_OK: * self._error(&errorInfo) * if state not in enum_values(UnitState): # <<<<<<<<<<<<<< @@ -25766,7 +25730,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ */ } - /* "src/pyrfc/client.pyx":711 + /* "src/pyrfc/client.pyx":742 * if state not in enum_values(UnitState): * raise RFCError(f"Unit {unit['id']} has invalid state '{state}'") * return UnitState(state).name # <<<<<<<<<<<<<< @@ -25774,9 +25738,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ * def _destroy_unit(self): */ __Pyx_XDECREF(__pyx_r); - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 711, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = __Pyx_PyInt_From_RFC_UNIT_STATE(__pyx_v_state); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 711, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_From_RFC_UNIT_STATE(__pyx_v_state); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { @@ -25791,17 +25755,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_8); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 711, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 711, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 742, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":696 + /* "src/pyrfc/client.pyx":727 * return unit_identifier["queued"] * * def _get_unit_state(self, unit): # <<<<<<<<<<<<<< @@ -25824,7 +25788,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_52_get_unit_state(struct _ return __pyx_r; } -/* "src/pyrfc/client.pyx":713 +/* "src/pyrfc/client.pyx":744 * return UnitState(state).name * * def _destroy_unit(self): # <<<<<<<<<<<<<< @@ -25860,7 +25824,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_destroy_unit", 0); - /* "src/pyrfc/client.pyx":716 + /* "src/pyrfc/client.pyx":747 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if not self.active_unit: # <<<<<<<<<<<<<< @@ -25870,14 +25834,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p __pyx_t_1 = ((!(__pyx_v_self->active_unit != 0)) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":717 + /* "src/pyrfc/client.pyx":748 * cdef RFC_ERROR_INFO errorInfo * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") # <<<<<<<<<<<<<< * if not self.alive: * self._open() */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 717, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { @@ -25891,14 +25855,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_kp_s_No_unit_handle_for_this_connecti) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s_No_unit_handle_for_this_connecti); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 717, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 748, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(2, 717, __pyx_L1_error) + __PYX_ERR(2, 748, __pyx_L1_error) - /* "src/pyrfc/client.pyx":716 + /* "src/pyrfc/client.pyx":747 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * if not self.active_unit: # <<<<<<<<<<<<<< @@ -25907,32 +25871,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p */ } - /* "src/pyrfc/client.pyx":718 + /* "src/pyrfc/client.pyx":749 * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcDestroyUnit(self._uHandle, &errorInfo) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 718, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 749, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 718, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 749, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_5 = ((!__pyx_t_1) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":719 + /* "src/pyrfc/client.pyx":750 * raise RFCError("No unit handle for this connection available.") * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 719, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 750, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":718 + /* "src/pyrfc/client.pyx":749 * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< @@ -25941,7 +25905,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p */ } - /* "src/pyrfc/client.pyx":720 + /* "src/pyrfc/client.pyx":751 * if not self.alive: * self._open() * rc = RfcDestroyUnit(self._uHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -25950,7 +25914,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p */ __pyx_v_rc = RfcDestroyUnit(__pyx_v_self->_uHandle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":721 + /* "src/pyrfc/client.pyx":752 * self._open() * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False # <<<<<<<<<<<<<< @@ -25959,7 +25923,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p */ __pyx_v_self->active_unit = 0; - /* "src/pyrfc/client.pyx":722 + /* "src/pyrfc/client.pyx":753 * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25969,18 +25933,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p __pyx_t_5 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_5) { - /* "src/pyrfc/client.pyx":723 + /* "src/pyrfc/client.pyx":754 * self.active_unit = False * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * def _confirm_unit(self, unit): */ - __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 723, __pyx_L1_error) + __pyx_t_2 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 754, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":722 + /* "src/pyrfc/client.pyx":753 * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -25989,7 +25953,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p */ } - /* "src/pyrfc/client.pyx":713 + /* "src/pyrfc/client.pyx":744 * return UnitState(state).name * * def _destroy_unit(self): # <<<<<<<<<<<<<< @@ -26012,7 +25976,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_54_destroy_unit(struct __p return __pyx_r; } -/* "src/pyrfc/client.pyx":725 +/* "src/pyrfc/client.pyx":756 * self._error(&errorInfo) * * def _confirm_unit(self, unit): # <<<<<<<<<<<<<< @@ -26050,17 +26014,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_confirm_unit", 0); - /* "src/pyrfc/client.pyx":728 + /* "src/pyrfc/client.pyx":759 * cdef RFC_RC rc * cdef RFC_ERROR_INFO errorInfo * cdef RFC_UNIT_IDENTIFIER uIdentifier = fillUnitIdentifier(unit) # <<<<<<<<<<<<<< * * if not self.active_unit: */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(__pyx_v_unit); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 728, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(__pyx_v_unit); if (unlikely(PyErr_Occurred())) __PYX_ERR(2, 759, __pyx_L1_error) __pyx_v_uIdentifier = __pyx_t_1; - /* "src/pyrfc/client.pyx":730 + /* "src/pyrfc/client.pyx":761 * cdef RFC_UNIT_IDENTIFIER uIdentifier = fillUnitIdentifier(unit) * * if not self.active_unit: # <<<<<<<<<<<<<< @@ -26070,14 +26034,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p __pyx_t_2 = ((!(__pyx_v_self->active_unit != 0)) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":731 + /* "src/pyrfc/client.pyx":762 * * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") # <<<<<<<<<<<<<< * if not self.alive: * self._open() */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 731, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -26091,14 +26055,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_No_unit_handle_for_this_connecti) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_No_unit_handle_for_this_connecti); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 731, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 762, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(2, 731, __pyx_L1_error) + __PYX_ERR(2, 762, __pyx_L1_error) - /* "src/pyrfc/client.pyx":730 + /* "src/pyrfc/client.pyx":761 * cdef RFC_UNIT_IDENTIFIER uIdentifier = fillUnitIdentifier(unit) * * if not self.active_unit: # <<<<<<<<<<<<<< @@ -26107,32 +26071,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ } - /* "src/pyrfc/client.pyx":732 + /* "src/pyrfc/client.pyx":763 * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< * self._open() * rc = RfcConfirmUnit(self._handle, &uIdentifier, &errorInfo) */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 732, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_alive); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 763, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 732, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 763, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_6 = ((!__pyx_t_2) != 0); if (__pyx_t_6) { - /* "src/pyrfc/client.pyx":733 + /* "src/pyrfc/client.pyx":764 * raise RFCError("No unit handle for this connection available.") * if not self.alive: * self._open() # <<<<<<<<<<<<<< * rc = RfcConfirmUnit(self._handle, &uIdentifier, &errorInfo) * if rc != RFC_OK: */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 733, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_open(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 764, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":732 + /* "src/pyrfc/client.pyx":763 * if not self.active_unit: * raise RFCError("No unit handle for this connection available.") * if not self.alive: # <<<<<<<<<<<<<< @@ -26141,7 +26105,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ } - /* "src/pyrfc/client.pyx":734 + /* "src/pyrfc/client.pyx":765 * if not self.alive: * self._open() * rc = RfcConfirmUnit(self._handle, &uIdentifier, &errorInfo) # <<<<<<<<<<<<<< @@ -26150,7 +26114,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ __pyx_v_rc = RfcConfirmUnit(__pyx_v_self->_handle, (&__pyx_v_uIdentifier), (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":735 + /* "src/pyrfc/client.pyx":766 * self._open() * rc = RfcConfirmUnit(self._handle, &uIdentifier, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -26160,18 +26124,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p __pyx_t_6 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_6) { - /* "src/pyrfc/client.pyx":736 + /* "src/pyrfc/client.pyx":767 * rc = RfcConfirmUnit(self._handle, &uIdentifier, &errorInfo) * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 736, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 767, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":735 + /* "src/pyrfc/client.pyx":766 * self._open() * rc = RfcConfirmUnit(self._handle, &uIdentifier, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -26180,7 +26144,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ } - /* "src/pyrfc/client.pyx":737 + /* "src/pyrfc/client.pyx":768 * if rc != RFC_OK: * self._error(&errorInfo) * rc = RfcDestroyUnit(self._uHandle, &errorInfo) # <<<<<<<<<<<<<< @@ -26189,7 +26153,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ __pyx_v_rc = RfcDestroyUnit(__pyx_v_self->_uHandle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/client.pyx":738 + /* "src/pyrfc/client.pyx":769 * self._error(&errorInfo) * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False # <<<<<<<<<<<<<< @@ -26198,7 +26162,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ __pyx_v_self->active_unit = 0; - /* "src/pyrfc/client.pyx":739 + /* "src/pyrfc/client.pyx":770 * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -26208,18 +26172,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p __pyx_t_6 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_6) { - /* "src/pyrfc/client.pyx":740 + /* "src/pyrfc/client.pyx":771 * self.active_unit = False * if rc != RFC_OK: * self._error(&errorInfo) # <<<<<<<<<<<<<< * * ########################################################################## */ - __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 740, __pyx_L1_error) + __pyx_t_3 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Connection *)__pyx_v_self->__pyx_vtab)->_error(__pyx_v_self, (&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 771, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":739 + /* "src/pyrfc/client.pyx":770 * rc = RfcDestroyUnit(self._uHandle, &errorInfo) * self.active_unit = False * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -26228,7 +26192,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p */ } - /* "src/pyrfc/client.pyx":725 + /* "src/pyrfc/client.pyx":756 * self._error(&errorInfo) * * def _confirm_unit(self, unit): # <<<<<<<<<<<<<< @@ -26251,7 +26215,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_56_confirm_unit(struct __p return __pyx_r; } -/* "src/pyrfc/client.pyx":750 +/* "src/pyrfc/client.pyx":781 * # * queued - boolean, set on fill_and_submit_unit() call * * def initialize_unit(self, background=True): # <<<<<<<<<<<<<< @@ -26292,7 +26256,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_59initialize_unit(PyObject } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "initialize_unit") < 0)) __PYX_ERR(2, 750, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "initialize_unit") < 0)) __PYX_ERR(2, 781, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -26306,7 +26270,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_59initialize_unit(PyObject } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("initialize_unit", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 750, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("initialize_unit", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 781, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.initialize_unit", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -26333,7 +26297,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("initialize_unit", 0); - /* "src/pyrfc/client.pyx":765 + /* "src/pyrfc/client.pyx":796 * :returns: A dictionary describing the unit. * """ * if background is True: # use bgRFC # <<<<<<<<<<<<<< @@ -26344,14 +26308,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "src/pyrfc/client.pyx":766 + /* "src/pyrfc/client.pyx":797 * """ * if background is True: # use bgRFC * id = self._get_unit_id() # <<<<<<<<<<<<<< * elif background is False: # classic t/qRFC * id = self._get_transaction_id() */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_unit_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 766, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_unit_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -26365,13 +26329,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 766, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 797, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_id = __pyx_t_3; __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":765 + /* "src/pyrfc/client.pyx":796 * :returns: A dictionary describing the unit. * """ * if background is True: # use bgRFC # <<<<<<<<<<<<<< @@ -26381,7 +26345,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ goto __pyx_L3; } - /* "src/pyrfc/client.pyx":767 + /* "src/pyrfc/client.pyx":798 * if background is True: # use bgRFC * id = self._get_unit_id() * elif background is False: # classic t/qRFC # <<<<<<<<<<<<<< @@ -26392,14 +26356,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ __pyx_t_1 = (__pyx_t_2 != 0); if (likely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":768 + /* "src/pyrfc/client.pyx":799 * id = self._get_unit_id() * elif background is False: # classic t/qRFC * id = self._get_transaction_id() # <<<<<<<<<<<<<< * else: * raise RFCError("Argument 'background' must be a boolean value.") */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_transaction_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 768, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_transaction_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -26413,13 +26377,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 768, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 799, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_id = __pyx_t_3; __pyx_t_3 = 0; - /* "src/pyrfc/client.pyx":767 + /* "src/pyrfc/client.pyx":798 * if background is True: # use bgRFC * id = self._get_unit_id() * elif background is False: # classic t/qRFC # <<<<<<<<<<<<<< @@ -26429,7 +26393,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ goto __pyx_L3; } - /* "src/pyrfc/client.pyx":770 + /* "src/pyrfc/client.pyx":801 * id = self._get_transaction_id() * else: * raise RFCError("Argument 'background' must be a boolean value.") # <<<<<<<<<<<<<< @@ -26437,7 +26401,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ * */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 770, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -26451,16 +26415,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ } __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_Argument_background_must_be_a_bo) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_Argument_background_must_be_a_bo); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 770, __pyx_L1_error) + if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 801, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(2, 770, __pyx_L1_error) + __PYX_ERR(2, 801, __pyx_L1_error) } __pyx_L3:; - /* "src/pyrfc/client.pyx":771 + /* "src/pyrfc/client.pyx":802 * else: * raise RFCError("Argument 'background' must be a boolean value.") * return {'background': background, 'id': id, "queued": False} # <<<<<<<<<<<<<< @@ -26468,16 +26432,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ * def fill_and_submit_unit(self, unit, calls, queue_names=None, attributes=None): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 771, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 802, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_background, __pyx_v_background) < 0) __PYX_ERR(2, 771, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_id, __pyx_v_id) < 0) __PYX_ERR(2, 771, __pyx_L1_error) - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_queued, Py_False) < 0) __PYX_ERR(2, 771, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_background, __pyx_v_background) < 0) __PYX_ERR(2, 802, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_id, __pyx_v_id) < 0) __PYX_ERR(2, 802, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_queued, Py_False) < 0) __PYX_ERR(2, 802, __pyx_L1_error) __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":750 + /* "src/pyrfc/client.pyx":781 * # * queued - boolean, set on fill_and_submit_unit() call * * def initialize_unit(self, background=True): # <<<<<<<<<<<<<< @@ -26499,7 +26463,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_58initialize_unit(struct _ return __pyx_r; } -/* "src/pyrfc/client.pyx":773 +/* "src/pyrfc/client.pyx":804 * return {'background': background, 'id': id, "queued": False} * * def fill_and_submit_unit(self, unit, calls, queue_names=None, attributes=None): # <<<<<<<<<<<<<< @@ -26550,7 +26514,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_61fill_and_submit_unit(PyO case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_calls)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("fill_and_submit_unit", 0, 2, 4, 1); __PYX_ERR(2, 773, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("fill_and_submit_unit", 0, 2, 4, 1); __PYX_ERR(2, 804, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: @@ -26566,7 +26530,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_61fill_and_submit_unit(PyO } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fill_and_submit_unit") < 0)) __PYX_ERR(2, 773, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fill_and_submit_unit") < 0)) __PYX_ERR(2, 804, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -26587,7 +26551,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Connection_61fill_and_submit_unit(PyO } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("fill_and_submit_unit", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 773, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("fill_and_submit_unit", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 804, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Connection.fill_and_submit_unit", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -26627,7 +26591,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str int __pyx_clineno = 0; __Pyx_RefNannySetupContext("fill_and_submit_unit", 0); - /* "src/pyrfc/client.pyx":826 + /* "src/pyrfc/client.pyx":857 * """ * * if type(unit) is not dict or 'id' not in unit or 'background' not in unit: # <<<<<<<<<<<<<< @@ -26641,33 +26605,33 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_1 = __pyx_t_3; goto __pyx_L4_bool_binop_done; } - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_id, __pyx_v_unit, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 826, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_id, __pyx_v_unit, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 857, __pyx_L1_error) __pyx_t_2 = (__pyx_t_3 != 0); if (!__pyx_t_2) { } else { __pyx_t_1 = __pyx_t_2; goto __pyx_L4_bool_binop_done; } - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_background, __pyx_v_unit, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 826, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_background, __pyx_v_unit, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 857, __pyx_L1_error) __pyx_t_3 = (__pyx_t_2 != 0); __pyx_t_1 = __pyx_t_3; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":827 + /* "src/pyrfc/client.pyx":858 * * if type(unit) is not dict or 'id' not in unit or 'background' not in unit: * raise TypeError("Parameter 'unit' not valid. Please use initialize_unit() to retrieve a valid unit.") # <<<<<<<<<<<<<< * if not isinstance(calls, Iterable): * raise TypeError("Parameter 'calls' must be iterable.") */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 827, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 858, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 827, __pyx_L1_error) + __PYX_ERR(2, 858, __pyx_L1_error) - /* "src/pyrfc/client.pyx":826 + /* "src/pyrfc/client.pyx":857 * """ * * if type(unit) is not dict or 'id' not in unit or 'background' not in unit: # <<<<<<<<<<<<<< @@ -26676,34 +26640,34 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":828 + /* "src/pyrfc/client.pyx":859 * if type(unit) is not dict or 'id' not in unit or 'background' not in unit: * raise TypeError("Parameter 'unit' not valid. Please use initialize_unit() to retrieve a valid unit.") * if not isinstance(calls, Iterable): # <<<<<<<<<<<<<< * raise TypeError("Parameter 'calls' must be iterable.") * if len(calls)==0: */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_Iterable); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 828, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_Iterable); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 859, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = PyObject_IsInstance(__pyx_v_calls, __pyx_t_4); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 828, __pyx_L1_error) + __pyx_t_1 = PyObject_IsInstance(__pyx_v_calls, __pyx_t_4); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(2, 859, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/client.pyx":829 + /* "src/pyrfc/client.pyx":860 * raise TypeError("Parameter 'unit' not valid. Please use initialize_unit() to retrieve a valid unit.") * if not isinstance(calls, Iterable): * raise TypeError("Parameter 'calls' must be iterable.") # <<<<<<<<<<<<<< * if len(calls)==0: * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 829, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 829, __pyx_L1_error) + __PYX_ERR(2, 860, __pyx_L1_error) - /* "src/pyrfc/client.pyx":828 + /* "src/pyrfc/client.pyx":859 * if type(unit) is not dict or 'id' not in unit or 'background' not in unit: * raise TypeError("Parameter 'unit' not valid. Please use initialize_unit() to retrieve a valid unit.") * if not isinstance(calls, Iterable): # <<<<<<<<<<<<<< @@ -26712,31 +26676,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":830 + /* "src/pyrfc/client.pyx":861 * if not isinstance(calls, Iterable): * raise TypeError("Parameter 'calls' must be iterable.") * if len(calls)==0: # <<<<<<<<<<<<<< * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") * for func_name, params in calls: */ - __pyx_t_5 = PyObject_Length(__pyx_v_calls); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 830, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_calls); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 861, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_5 == 0) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/client.pyx":831 + /* "src/pyrfc/client.pyx":862 * raise TypeError("Parameter 'calls' must be iterable.") * if len(calls)==0: * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") # <<<<<<<<<<<<<< * for func_name, params in calls: * if type(func_name) is not str or type(params) is not dict: */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 831, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 862, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 831, __pyx_L1_error) + __PYX_ERR(2, 862, __pyx_L1_error) - /* "src/pyrfc/client.pyx":830 + /* "src/pyrfc/client.pyx":861 * if not isinstance(calls, Iterable): * raise TypeError("Parameter 'calls' must be iterable.") * if len(calls)==0: # <<<<<<<<<<<<<< @@ -26745,7 +26709,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":832 + /* "src/pyrfc/client.pyx":863 * if len(calls)==0: * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") * for func_name, params in calls: # <<<<<<<<<<<<<< @@ -26756,26 +26720,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_4 = __pyx_v_calls; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_6 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_calls); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_calls); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 863, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_6)) { if (likely(PyList_CheckExact(__pyx_t_4))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(2, 863, __pyx_L1_error) #else - __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(2, 863, __pyx_L1_error) #else - __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif } @@ -26785,7 +26749,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(2, 832, __pyx_L1_error) + else __PYX_ERR(2, 863, __pyx_L1_error) } break; } @@ -26797,7 +26761,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(2, 832, __pyx_L1_error) + __PYX_ERR(2, 863, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -26810,15 +26774,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_9); #else - __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); #endif __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else { Py_ssize_t index = -1; - __pyx_t_10 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 832, __pyx_L1_error) + __pyx_t_10 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 863, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext; @@ -26826,7 +26790,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_GOTREF(__pyx_t_8); index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L11_unpacking_failed; __Pyx_GOTREF(__pyx_t_9); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(2, 832, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(2, 863, __pyx_L1_error) __pyx_t_11 = NULL; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; goto __pyx_L12_unpacking_done; @@ -26834,7 +26798,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_11 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(2, 832, __pyx_L1_error) + __PYX_ERR(2, 863, __pyx_L1_error) __pyx_L12_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_v_func_name, __pyx_t_8); @@ -26842,7 +26806,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_XDECREF_SET(__pyx_v_params, __pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/client.pyx":833 + /* "src/pyrfc/client.pyx":864 * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") * for func_name, params in calls: * if type(func_name) is not str or type(params) is not dict: # <<<<<<<<<<<<<< @@ -26862,20 +26826,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_L14_bool_binop_done:; if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/client.pyx":834 + /* "src/pyrfc/client.pyx":865 * for func_name, params in calls: * if type(func_name) is not str or type(params) is not dict: * raise TypeError("Parameter 'calls' must contain valid call descriptions (func_name, params dict).") # <<<<<<<<<<<<<< * if self.active_unit: * raise RFCError("There is an active unit for this connection. " */ - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 834, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __PYX_ERR(2, 834, __pyx_L1_error) + __PYX_ERR(2, 865, __pyx_L1_error) - /* "src/pyrfc/client.pyx":833 + /* "src/pyrfc/client.pyx":864 * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") * for func_name, params in calls: * if type(func_name) is not str or type(params) is not dict: # <<<<<<<<<<<<<< @@ -26884,7 +26848,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":832 + /* "src/pyrfc/client.pyx":863 * if len(calls)==0: * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") * for func_name, params in calls: # <<<<<<<<<<<<<< @@ -26894,7 +26858,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":835 + /* "src/pyrfc/client.pyx":866 * if type(func_name) is not str or type(params) is not dict: * raise TypeError("Parameter 'calls' must contain valid call descriptions (func_name, params dict).") * if self.active_unit: # <<<<<<<<<<<<<< @@ -26904,24 +26868,24 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_3 = (__pyx_v_self->active_unit != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/client.pyx":836 + /* "src/pyrfc/client.pyx":867 * raise TypeError("Parameter 'calls' must contain valid call descriptions (func_name, params dict).") * if self.active_unit: * raise RFCError("There is an active unit for this connection. " # <<<<<<<<<<<<<< * "Use destroy_unit() " + * "or confirm_unit().") */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 836, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "src/pyrfc/client.pyx":837 + /* "src/pyrfc/client.pyx":868 * if self.active_unit: * raise RFCError("There is an active unit for this connection. " * "Use destroy_unit() " + # <<<<<<<<<<<<<< * "or confirm_unit().") * bg = unit['background'] */ - __pyx_t_9 = PyNumber_Add(__pyx_kp_s_There_is_an_active_unit_for_this, __pyx_kp_s_or_confirm_unit); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 837, __pyx_L1_error) + __pyx_t_9 = PyNumber_Add(__pyx_kp_s_There_is_an_active_unit_for_this, __pyx_kp_s_or_confirm_unit); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 868, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -26936,14 +26900,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_9) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_9); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 836, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 867, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 836, __pyx_L1_error) + __PYX_ERR(2, 867, __pyx_L1_error) - /* "src/pyrfc/client.pyx":835 + /* "src/pyrfc/client.pyx":866 * if type(func_name) is not str or type(params) is not dict: * raise TypeError("Parameter 'calls' must contain valid call descriptions (func_name, params dict).") * if self.active_unit: # <<<<<<<<<<<<<< @@ -26952,31 +26916,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":839 + /* "src/pyrfc/client.pyx":870 * "Use destroy_unit() " + * "or confirm_unit().") * bg = unit['background'] # <<<<<<<<<<<<<< * unit_id = unit['id'] * */ - __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 839, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 870, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_bg = __pyx_t_4; __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":840 + /* "src/pyrfc/client.pyx":871 * "or confirm_unit().") * bg = unit['background'] * unit_id = unit['id'] # <<<<<<<<<<<<<< * * if bg is True: */ - __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 840, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 871, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_unit_id = __pyx_t_4; __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":842 + /* "src/pyrfc/client.pyx":873 * unit_id = unit['id'] * * if bg is True: # <<<<<<<<<<<<<< @@ -26987,25 +26951,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":843 + /* "src/pyrfc/client.pyx":874 * * if bg is True: * if len(unit_id) != RFC_UNITID_LN: # <<<<<<<<<<<<<< * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_UNITID_LN} chars, found {len(unit_id)}.") * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) */ - __pyx_t_5 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 843, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 874, __pyx_L1_error) __pyx_t_1 = ((__pyx_t_5 != RFC_UNITID_LN) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":844 + /* "src/pyrfc/client.pyx":875 * if bg is True: * if len(unit_id) != RFC_UNITID_LN: * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_UNITID_LN} chars, found {len(unit_id)}.") # <<<<<<<<<<<<<< * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) * elif bg is False: */ - __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 844, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_12 = 127; @@ -27013,7 +26977,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_5 += 41; __Pyx_GIVEREF(__pyx_kp_u_Length_of_parameter_unit_id_must); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Length_of_parameter_unit_id_must); - __pyx_t_7 = __Pyx_PyUnicode_From_int(RFC_UNITID_LN, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 844, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_From_int(RFC_UNITID_LN, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); @@ -27023,8 +26987,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_5 += 14; __Pyx_GIVEREF(__pyx_kp_u_chars_found); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_chars_found); - __pyx_t_13 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(2, 844, __pyx_L1_error) - __pyx_t_7 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_13, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 844, __pyx_L1_error) + __pyx_t_13 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(2, 875, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_13, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); @@ -27034,17 +26998,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_5 += 1; __Pyx_GIVEREF(__pyx_kp_u__8); PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__8); - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 844, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 844, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 875, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 844, __pyx_L1_error) + __PYX_ERR(2, 875, __pyx_L1_error) - /* "src/pyrfc/client.pyx":843 + /* "src/pyrfc/client.pyx":874 * * if bg is True: * if len(unit_id) != RFC_UNITID_LN: # <<<<<<<<<<<<<< @@ -27053,14 +27017,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":845 + /* "src/pyrfc/client.pyx":876 * if len(unit_id) != RFC_UNITID_LN: * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_UNITID_LN} chars, found {len(unit_id)}.") * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) # <<<<<<<<<<<<<< * elif bg is False: * if len(unit_id) != RFC_TID_LN: */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_create_and_submit_unit); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 845, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_create_and_submit_unit); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_14 = 0; @@ -27077,7 +27041,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[5] = {__pyx_t_9, __pyx_v_unit_id, __pyx_v_calls, __pyx_v_queue_names, __pyx_v_attributes}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 4+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 845, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 4+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 876, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -27085,13 +27049,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[5] = {__pyx_t_9, __pyx_v_unit_id, __pyx_v_calls, __pyx_v_queue_names, __pyx_v_attributes}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 4+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 845, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 4+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 876, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_8 = PyTuple_New(4+__pyx_t_14); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 845, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(4+__pyx_t_14); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -27108,15 +27072,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_INCREF(__pyx_v_attributes); __Pyx_GIVEREF(__pyx_v_attributes); PyTuple_SET_ITEM(__pyx_t_8, 3+__pyx_t_14, __pyx_v_attributes); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 845, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 876, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(PyObject_SetItem(__pyx_v_unit, __pyx_n_s_queued, __pyx_t_4) < 0)) __PYX_ERR(2, 845, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_v_unit, __pyx_n_s_queued, __pyx_t_4) < 0)) __PYX_ERR(2, 876, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":842 + /* "src/pyrfc/client.pyx":873 * unit_id = unit['id'] * * if bg is True: # <<<<<<<<<<<<<< @@ -27126,7 +27090,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str goto __pyx_L17; } - /* "src/pyrfc/client.pyx":846 + /* "src/pyrfc/client.pyx":877 * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_UNITID_LN} chars, found {len(unit_id)}.") * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) * elif bg is False: # <<<<<<<<<<<<<< @@ -27137,25 +27101,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_3 = (__pyx_t_1 != 0); if (likely(__pyx_t_3)) { - /* "src/pyrfc/client.pyx":847 + /* "src/pyrfc/client.pyx":878 * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) * elif bg is False: * if len(unit_id) != RFC_TID_LN: # <<<<<<<<<<<<<< * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_TID_LN} chars, found {len(unit_id)}.") * if attributes is not None: */ - __pyx_t_5 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 847, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 878, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_5 != RFC_TID_LN) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/client.pyx":848 + /* "src/pyrfc/client.pyx":879 * elif bg is False: * if len(unit_id) != RFC_TID_LN: * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_TID_LN} chars, found {len(unit_id)}.") # <<<<<<<<<<<<<< * if attributes is not None: * raise RFCError("Argument 'attributes' not valid. (t/qRFC does not support attributes.)") */ - __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 848, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_12 = 127; @@ -27163,7 +27127,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_5 += 41; __Pyx_GIVEREF(__pyx_kp_u_Length_of_parameter_unit_id_must); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Length_of_parameter_unit_id_must); - __pyx_t_7 = __Pyx_PyUnicode_From_int(RFC_TID_LN, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 848, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_From_int(RFC_TID_LN, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); @@ -27173,8 +27137,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_5 += 14; __Pyx_GIVEREF(__pyx_kp_u_chars_found); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_chars_found); - __pyx_t_13 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(2, 848, __pyx_L1_error) - __pyx_t_7 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_13, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 848, __pyx_L1_error) + __pyx_t_13 = PyObject_Length(__pyx_v_unit_id); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(2, 879, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_13, 0, ' ', 'd'); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7); __Pyx_GIVEREF(__pyx_t_7); @@ -27184,17 +27148,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_5 += 1; __Pyx_GIVEREF(__pyx_kp_u__8); PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__8); - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 848, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_5, __pyx_t_12); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 848, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 879, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 848, __pyx_L1_error) + __PYX_ERR(2, 879, __pyx_L1_error) - /* "src/pyrfc/client.pyx":847 + /* "src/pyrfc/client.pyx":878 * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) * elif bg is False: * if len(unit_id) != RFC_TID_LN: # <<<<<<<<<<<<<< @@ -27203,7 +27167,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":849 + /* "src/pyrfc/client.pyx":880 * if len(unit_id) != RFC_TID_LN: * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_TID_LN} chars, found {len(unit_id)}.") * if attributes is not None: # <<<<<<<<<<<<<< @@ -27214,14 +27178,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_1 = (__pyx_t_3 != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":850 + /* "src/pyrfc/client.pyx":881 * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_TID_LN} chars, found {len(unit_id)}.") * if attributes is not None: * raise RFCError("Argument 'attributes' not valid. (t/qRFC does not support attributes.)") # <<<<<<<<<<<<<< * if queue_names is None or type(queue_names) is list and len(queue_names) == 0: * self._create_and_submit_transaction(unit_id, calls) */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 850, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -27235,14 +27199,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str } __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_kp_s_Argument_attributes_not_valid_t) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_kp_s_Argument_attributes_not_valid_t); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 850, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 881, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 850, __pyx_L1_error) + __PYX_ERR(2, 881, __pyx_L1_error) - /* "src/pyrfc/client.pyx":849 + /* "src/pyrfc/client.pyx":880 * if len(unit_id) != RFC_TID_LN: * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_TID_LN} chars, found {len(unit_id)}.") * if attributes is not None: # <<<<<<<<<<<<<< @@ -27251,7 +27215,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str */ } - /* "src/pyrfc/client.pyx":851 + /* "src/pyrfc/client.pyx":882 * if attributes is not None: * raise RFCError("Argument 'attributes' not valid. (t/qRFC does not support attributes.)") * if queue_names is None or type(queue_names) is list and len(queue_names) == 0: # <<<<<<<<<<<<<< @@ -27272,20 +27236,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_t_1 = __pyx_t_3; goto __pyx_L22_bool_binop_done; } - __pyx_t_5 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 851, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 882, __pyx_L1_error) __pyx_t_3 = ((__pyx_t_5 == 0) != 0); __pyx_t_1 = __pyx_t_3; __pyx_L22_bool_binop_done:; if (__pyx_t_1) { - /* "src/pyrfc/client.pyx":852 + /* "src/pyrfc/client.pyx":883 * raise RFCError("Argument 'attributes' not valid. (t/qRFC does not support attributes.)") * if queue_names is None or type(queue_names) is list and len(queue_names) == 0: * self._create_and_submit_transaction(unit_id, calls) # <<<<<<<<<<<<<< * unit['queued'] = False * elif len(queue_names) == 1: */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_create_and_submit_transaction); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 852, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_create_and_submit_transaction); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; __pyx_t_14 = 0; @@ -27302,7 +27266,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_v_unit_id, __pyx_v_calls}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 852, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 883, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -27310,13 +27274,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_v_unit_id, __pyx_v_calls}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 852, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 2+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 883, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_9 = PyTuple_New(2+__pyx_t_14); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 852, __pyx_L1_error) + __pyx_t_9 = PyTuple_New(2+__pyx_t_14); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -27327,23 +27291,23 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_INCREF(__pyx_v_calls); __Pyx_GIVEREF(__pyx_v_calls); PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_14, __pyx_v_calls); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 852, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 883, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":853 + /* "src/pyrfc/client.pyx":884 * if queue_names is None or type(queue_names) is list and len(queue_names) == 0: * self._create_and_submit_transaction(unit_id, calls) * unit['queued'] = False # <<<<<<<<<<<<<< * elif len(queue_names) == 1: * queue_name = queue_names[0] */ - if (unlikely(PyObject_SetItem(__pyx_v_unit, __pyx_n_s_queued, Py_False) < 0)) __PYX_ERR(2, 853, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_v_unit, __pyx_n_s_queued, Py_False) < 0)) __PYX_ERR(2, 884, __pyx_L1_error) - /* "src/pyrfc/client.pyx":851 + /* "src/pyrfc/client.pyx":882 * if attributes is not None: * raise RFCError("Argument 'attributes' not valid. (t/qRFC does not support attributes.)") * if queue_names is None or type(queue_names) is list and len(queue_names) == 0: # <<<<<<<<<<<<<< @@ -27353,37 +27317,37 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str goto __pyx_L21; } - /* "src/pyrfc/client.pyx":854 + /* "src/pyrfc/client.pyx":885 * self._create_and_submit_transaction(unit_id, calls) * unit['queued'] = False * elif len(queue_names) == 1: # <<<<<<<<<<<<<< * queue_name = queue_names[0] * self._create_and_submit_transaction(unit_id, calls, queue_name) */ - __pyx_t_5 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 854, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_v_queue_names); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 885, __pyx_L1_error) __pyx_t_1 = ((__pyx_t_5 == 1) != 0); if (likely(__pyx_t_1)) { - /* "src/pyrfc/client.pyx":855 + /* "src/pyrfc/client.pyx":886 * unit['queued'] = False * elif len(queue_names) == 1: * queue_name = queue_names[0] # <<<<<<<<<<<<<< * self._create_and_submit_transaction(unit_id, calls, queue_name) * unit['queued'] = True */ - __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_queue_names, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 855, __pyx_L1_error) + __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_queue_names, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 886, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_v_queue_name = __pyx_t_4; __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":856 + /* "src/pyrfc/client.pyx":887 * elif len(queue_names) == 1: * queue_name = queue_names[0] * self._create_and_submit_transaction(unit_id, calls, queue_name) # <<<<<<<<<<<<<< * unit['queued'] = True * else: */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_create_and_submit_transaction); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 856, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_create_and_submit_transaction); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_9 = NULL; __pyx_t_14 = 0; @@ -27400,7 +27364,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_unit_id, __pyx_v_calls, __pyx_v_queue_name}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 3+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 856, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 3+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 887, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); } else @@ -27408,13 +27372,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[4] = {__pyx_t_9, __pyx_v_unit_id, __pyx_v_calls, __pyx_v_queue_name}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 3+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 856, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_14, 3+__pyx_t_14); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 887, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_4); } else #endif { - __pyx_t_8 = PyTuple_New(3+__pyx_t_14); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 856, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(3+__pyx_t_14); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -27428,23 +27392,23 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __Pyx_INCREF(__pyx_v_queue_name); __Pyx_GIVEREF(__pyx_v_queue_name); PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_14, __pyx_v_queue_name); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 856, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 887, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/client.pyx":857 + /* "src/pyrfc/client.pyx":888 * queue_name = queue_names[0] * self._create_and_submit_transaction(unit_id, calls, queue_name) * unit['queued'] = True # <<<<<<<<<<<<<< * else: * raise RFCError("Argument 'queue_names' not valid. (t/qRFC only support one queue name.)") */ - if (unlikely(PyObject_SetItem(__pyx_v_unit, __pyx_n_s_queued, Py_True) < 0)) __PYX_ERR(2, 857, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_v_unit, __pyx_n_s_queued, Py_True) < 0)) __PYX_ERR(2, 888, __pyx_L1_error) - /* "src/pyrfc/client.pyx":854 + /* "src/pyrfc/client.pyx":885 * self._create_and_submit_transaction(unit_id, calls) * unit['queued'] = False * elif len(queue_names) == 1: # <<<<<<<<<<<<<< @@ -27454,7 +27418,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str goto __pyx_L21; } - /* "src/pyrfc/client.pyx":859 + /* "src/pyrfc/client.pyx":890 * unit['queued'] = True * else: * raise RFCError("Argument 'queue_names' not valid. (t/qRFC only support one queue name.)") # <<<<<<<<<<<<<< @@ -27462,7 +27426,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 859, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -27476,16 +27440,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str } __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_kp_s_Argument_queue_names_not_valid_t) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_kp_s_Argument_queue_names_not_valid_t); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 859, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 890, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 859, __pyx_L1_error) + __PYX_ERR(2, 890, __pyx_L1_error) } __pyx_L21:; - /* "src/pyrfc/client.pyx":846 + /* "src/pyrfc/client.pyx":877 * raise TypeError(f"Length of parameter 'unit['id']' must be {RFC_UNITID_LN} chars, found {len(unit_id)}.") * unit['queued'] = self._create_and_submit_unit(unit_id, calls, queue_names, attributes) * elif bg is False: # <<<<<<<<<<<<<< @@ -27495,7 +27459,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str goto __pyx_L17; } - /* "src/pyrfc/client.pyx":861 + /* "src/pyrfc/client.pyx":892 * raise RFCError("Argument 'queue_names' not valid. (t/qRFC only support one queue name.)") * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") # <<<<<<<<<<<<<< @@ -27503,7 +27467,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str * */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 861, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_8 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) { @@ -27517,16 +27481,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str } __pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_kp_s_Argument_unit_not_valid_Is_unit) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_kp_s_Argument_unit_not_valid_Is_unit); __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 861, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 892, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(2, 861, __pyx_L1_error) + __PYX_ERR(2, 892, __pyx_L1_error) } __pyx_L17:; - /* "src/pyrfc/client.pyx":862 + /* "src/pyrfc/client.pyx":893 * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") * return unit # <<<<<<<<<<<<<< @@ -27538,7 +27502,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str __pyx_r = __pyx_v_unit; goto __pyx_L0; - /* "src/pyrfc/client.pyx":773 + /* "src/pyrfc/client.pyx":804 * return {'background': background, 'id': id, "queued": False} * * def fill_and_submit_unit(self, unit, calls, queue_names=None, attributes=None): # <<<<<<<<<<<<<< @@ -27566,7 +27530,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_60fill_and_submit_unit(str return __pyx_r; } -/* "src/pyrfc/client.pyx":864 +/* "src/pyrfc/client.pyx":895 * return unit * * def get_unit_state(self, unit): # <<<<<<<<<<<<<< @@ -27602,19 +27566,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_unit_state", 0); - /* "src/pyrfc/client.pyx":879 + /* "src/pyrfc/client.pyx":910 * RFC_UNIT_CONFIRMED * """ * bg = unit['background'] # <<<<<<<<<<<<<< * if bg is True: * return self._get_unit_state(unit) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 879, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 910, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_bg = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":880 + /* "src/pyrfc/client.pyx":911 * """ * bg = unit['background'] * if bg is True: # <<<<<<<<<<<<<< @@ -27625,7 +27589,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":881 + /* "src/pyrfc/client.pyx":912 * bg = unit['background'] * if bg is True: * return self._get_unit_state(unit) # <<<<<<<<<<<<<< @@ -27633,7 +27597,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ * raise RFCError("No state check possible of non-bgRFC units.") */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_unit_state); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 881, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_unit_state); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -27647,14 +27611,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_unit) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_unit); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 881, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 912, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/client.pyx":880 + /* "src/pyrfc/client.pyx":911 * """ * bg = unit['background'] * if bg is True: # <<<<<<<<<<<<<< @@ -27663,7 +27627,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ */ } - /* "src/pyrfc/client.pyx":882 + /* "src/pyrfc/client.pyx":913 * if bg is True: * return self._get_unit_state(unit) * elif bg is False: # <<<<<<<<<<<<<< @@ -27674,14 +27638,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ __pyx_t_2 = (__pyx_t_3 != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":883 + /* "src/pyrfc/client.pyx":914 * return self._get_unit_state(unit) * elif bg is False: * raise RFCError("No state check possible of non-bgRFC units.") # <<<<<<<<<<<<<< * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 883, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -27695,14 +27659,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_No_state_check_possible_of_non_b) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_No_state_check_possible_of_non_b); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 883, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 914, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(2, 883, __pyx_L1_error) + __PYX_ERR(2, 914, __pyx_L1_error) - /* "src/pyrfc/client.pyx":882 + /* "src/pyrfc/client.pyx":913 * if bg is True: * return self._get_unit_state(unit) * elif bg is False: # <<<<<<<<<<<<<< @@ -27711,7 +27675,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ */ } - /* "src/pyrfc/client.pyx":885 + /* "src/pyrfc/client.pyx":916 * raise RFCError("No state check possible of non-bgRFC units.") * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") # <<<<<<<<<<<<<< @@ -27719,7 +27683,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ * def destroy_unit(self, unit): */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 885, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -27733,15 +27697,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_Argument_unit_not_valid_Is_unit) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_Argument_unit_not_valid_Is_unit); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 885, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 916, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(2, 885, __pyx_L1_error) + __PYX_ERR(2, 916, __pyx_L1_error) } - /* "src/pyrfc/client.pyx":864 + /* "src/pyrfc/client.pyx":895 * return unit * * def get_unit_state(self, unit): # <<<<<<<<<<<<<< @@ -27763,7 +27727,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_62get_unit_state(struct __ return __pyx_r; } -/* "src/pyrfc/client.pyx":887 +/* "src/pyrfc/client.pyx":918 * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") * * def destroy_unit(self, unit): # <<<<<<<<<<<<<< @@ -27799,19 +27763,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("destroy_unit", 0); - /* "src/pyrfc/client.pyx":897 + /* "src/pyrfc/client.pyx":928 * thereof if the connection attempt fails. * """ * bg = unit['background'] # <<<<<<<<<<<<<< * if bg is True: * self._destroy_unit() */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 897, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 928, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_bg = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":898 + /* "src/pyrfc/client.pyx":929 * """ * bg = unit['background'] * if bg is True: # <<<<<<<<<<<<<< @@ -27822,14 +27786,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":899 + /* "src/pyrfc/client.pyx":930 * bg = unit['background'] * if bg is True: * self._destroy_unit() # <<<<<<<<<<<<<< * elif bg is False: * self._destroy_transaction() */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy_unit); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 899, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy_unit); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -27843,12 +27807,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 899, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 930, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":898 + /* "src/pyrfc/client.pyx":929 * """ * bg = unit['background'] * if bg is True: # <<<<<<<<<<<<<< @@ -27858,7 +27822,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py goto __pyx_L3; } - /* "src/pyrfc/client.pyx":900 + /* "src/pyrfc/client.pyx":931 * if bg is True: * self._destroy_unit() * elif bg is False: # <<<<<<<<<<<<<< @@ -27869,14 +27833,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py __pyx_t_2 = (__pyx_t_3 != 0); if (likely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":901 + /* "src/pyrfc/client.pyx":932 * self._destroy_unit() * elif bg is False: * self._destroy_transaction() # <<<<<<<<<<<<<< * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy_transaction); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 901, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy_transaction); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -27890,12 +27854,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 901, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 932, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":900 + /* "src/pyrfc/client.pyx":931 * if bg is True: * self._destroy_unit() * elif bg is False: # <<<<<<<<<<<<<< @@ -27905,7 +27869,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py goto __pyx_L3; } - /* "src/pyrfc/client.pyx":903 + /* "src/pyrfc/client.pyx":934 * self._destroy_transaction() * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") # <<<<<<<<<<<<<< @@ -27913,7 +27877,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py * def confirm_unit(self, unit): */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 903, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -27927,16 +27891,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_Argument_unit_not_valid_Is_unit) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_Argument_unit_not_valid_Is_unit); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 903, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 934, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(2, 903, __pyx_L1_error) + __PYX_ERR(2, 934, __pyx_L1_error) } __pyx_L3:; - /* "src/pyrfc/client.pyx":887 + /* "src/pyrfc/client.pyx":918 * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") * * def destroy_unit(self, unit): # <<<<<<<<<<<<<< @@ -27960,7 +27924,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_64destroy_unit(struct __py return __pyx_r; } -/* "src/pyrfc/client.pyx":905 +/* "src/pyrfc/client.pyx":936 * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") * * def confirm_unit(self, unit): # <<<<<<<<<<<<<< @@ -27996,19 +27960,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("confirm_unit", 0); - /* "src/pyrfc/client.pyx":915 + /* "src/pyrfc/client.pyx":946 * thereof if the connection attempt fails. * """ * bg = unit['background'] # <<<<<<<<<<<<<< * if bg is True: * self._confirm_unit(unit) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 915, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_background); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 946, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_bg = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":916 + /* "src/pyrfc/client.pyx":947 * """ * bg = unit['background'] * if bg is True: # <<<<<<<<<<<<<< @@ -28019,14 +27983,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/client.pyx":917 + /* "src/pyrfc/client.pyx":948 * bg = unit['background'] * if bg is True: * self._confirm_unit(unit) # <<<<<<<<<<<<<< * elif bg is False: * self._confirm_transaction() */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_confirm_unit); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 917, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_confirm_unit); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -28040,12 +28004,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_unit) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_unit); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 917, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 948, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":916 + /* "src/pyrfc/client.pyx":947 * """ * bg = unit['background'] * if bg is True: # <<<<<<<<<<<<<< @@ -28055,7 +28019,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py goto __pyx_L3; } - /* "src/pyrfc/client.pyx":918 + /* "src/pyrfc/client.pyx":949 * if bg is True: * self._confirm_unit(unit) * elif bg is False: # <<<<<<<<<<<<<< @@ -28066,14 +28030,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py __pyx_t_2 = (__pyx_t_3 != 0); if (likely(__pyx_t_2)) { - /* "src/pyrfc/client.pyx":919 + /* "src/pyrfc/client.pyx":950 * self._confirm_unit(unit) * elif bg is False: * self._confirm_transaction() # <<<<<<<<<<<<<< * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_confirm_transaction); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 919, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_confirm_transaction); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -28087,12 +28051,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 919, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 950, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/client.pyx":918 + /* "src/pyrfc/client.pyx":949 * if bg is True: * self._confirm_unit(unit) * elif bg is False: # <<<<<<<<<<<<<< @@ -28102,13 +28066,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py goto __pyx_L3; } - /* "src/pyrfc/client.pyx":921 + /* "src/pyrfc/client.pyx":952 * self._confirm_transaction() * else: * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") # <<<<<<<<<<<<<< */ /*else*/ { - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 921, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) { @@ -28122,16 +28086,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py } __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_Argument_unit_not_valid_Is_unit) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_Argument_unit_not_valid_Is_unit); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 921, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 952, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(2, 921, __pyx_L1_error) + __PYX_ERR(2, 952, __pyx_L1_error) } __pyx_L3:; - /* "src/pyrfc/client.pyx":905 + /* "src/pyrfc/client.pyx":936 * raise RFCError("Argument 'unit' not valid. (Is unit['background'] boolean?)") * * def confirm_unit(self, unit): # <<<<<<<<<<<<<< @@ -28155,7 +28119,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Connection_66confirm_unit(struct __py return __pyx_r; } -/* "src/pyrfc/client.pyx":60 +/* "src/pyrfc/client.pyx":63 * """ * cdef unsigned __bconfig * cdef public dict __config # <<<<<<<<<<<<<< @@ -28213,7 +28177,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Connection_8__config_2__set__(struct __pyx_ const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(2, 60, __pyx_L1_error) + if (!(likely(PyDict_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(2, 63, __pyx_L1_error) __pyx_t_1 = __pyx_v_value; __Pyx_INCREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); @@ -29482,8 +29446,8 @@ static int __pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_6__bool__(struct __pyx_obj * * @property * def handle(self): # <<<<<<<<<<<<<< - * """Get server connection handle - * :returns: Server connection handle + * """Server connection handle + * */ /* Python wrapper */ @@ -29508,15 +29472,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_6handle___get__(stru int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/server.pyx":73 - * :returns: Server connection handle + /* "src/pyrfc/server.pyx":75 + * :type: uitptr_t * """ * return self._handle # <<<<<<<<<<<<<< * * @property */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 73, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 75, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -29526,8 +29490,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_6handle___get__(stru * * @property * def handle(self): # <<<<<<<<<<<<<< - * """Get server connection handle - * :returns: Server connection handle + * """Server connection handle + * */ /* function exit code */ @@ -29541,12 +29505,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_6handle___get__(stru return __pyx_r; } -/* "src/pyrfc/server.pyx":76 +/* "src/pyrfc/server.pyx":78 * * @property * def alive(self): # <<<<<<<<<<<<<< - * """Get conection alive property - * :returns: True when alive + * """Conection alive property + * */ /* Python wrapper */ @@ -29571,26 +29535,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_5alive___get__(struc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/server.pyx":81 - * :type alive: boolean + /* "src/pyrfc/server.pyx":84 + * :type: boolean * """ * return self._handle != NULL # <<<<<<<<<<<<<< * * def __del__(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_handle != NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 81, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_handle != NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/server.pyx":76 + /* "src/pyrfc/server.pyx":78 * * @property * def alive(self): # <<<<<<<<<<<<<< - * """Get conection alive property - * :returns: True when alive + * """Conection alive property + * */ /* function exit code */ @@ -29604,7 +29568,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_5alive___get__(struc return __pyx_r; } -/* "src/pyrfc/server.pyx":83 +/* "src/pyrfc/server.pyx":86 * return self._handle != NULL * * def __del__(self): # <<<<<<<<<<<<<< @@ -29636,25 +29600,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_8__del__(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__del__", 0); - /* "src/pyrfc/server.pyx":84 + /* "src/pyrfc/server.pyx":87 * * def __del__(self): * self._close() # <<<<<<<<<<<<<< * self._connection._free() * */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_ServerConnection *)__pyx_v_self->__pyx_vtab)->_close(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 84, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_ServerConnection *)__pyx_v_self->__pyx_vtab)->_close(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 87, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":85 + /* "src/pyrfc/server.pyx":88 * def __del__(self): * self._close() * self._connection._free() # <<<<<<<<<<<<<< * * cdef RFC_RC metadataLookup( */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_connection), __pyx_n_s_free); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 85, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_connection), __pyx_n_s_free); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -29668,12 +29632,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_8__del__(struct __py } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 85, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 88, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":83 + /* "src/pyrfc/server.pyx":86 * return self._handle != NULL * * def __del__(self): # <<<<<<<<<<<<<< @@ -29973,7 +29937,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_16ServerConnection_12__setstate_cython_ return __pyx_r; } -/* "src/pyrfc/server.pyx":87 +/* "src/pyrfc/server.pyx":90 * self._connection._free() * * cdef RFC_RC metadataLookup( # <<<<<<<<<<<<<< @@ -30005,42 +29969,42 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi #endif __Pyx_RefNannySetupContext("metadataLookup", 0); - /* "src/pyrfc/server.pyx":93 + /* "src/pyrfc/server.pyx":96 * ) with gil: * global server_functions * function_name = wrapString(functionName) # <<<<<<<<<<<<<< * if function_name not in server_functions: * _server_log("metadataLookup", f"No metadata found for function '{function_name}'.") */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_functionName, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 93, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_functionName, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 96, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_function_name = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":94 + /* "src/pyrfc/server.pyx":97 * global server_functions * function_name = wrapString(functionName) * if function_name not in server_functions: # <<<<<<<<<<<<<< * _server_log("metadataLookup", f"No metadata found for function '{function_name}'.") * return RFC_NOT_FOUND */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 94, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 97, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_function_name, __pyx_t_1, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(5, 94, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_function_name, __pyx_t_1, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(5, 97, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/server.pyx":95 + /* "src/pyrfc/server.pyx":98 * function_name = wrapString(functionName) * if function_name not in server_functions: * _server_log("metadataLookup", f"No metadata found for function '{function_name}'.") # <<<<<<<<<<<<<< * return RFC_NOT_FOUND * func_metadata = server_functions[function_name] */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_server_log); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 95, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_server_log); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = 0; __pyx_t_7 = 127; @@ -30048,7 +30012,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_t_6 += 32; __Pyx_GIVEREF(__pyx_kp_u_No_metadata_found_for_function); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_No_metadata_found_for_function); - __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_function_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_function_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_7; __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8); @@ -30059,7 +30023,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_t_6 += 2; __Pyx_GIVEREF(__pyx_kp_u__41); PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u__41); - __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_5 = NULL; @@ -30077,7 +30041,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_n_s_metadataLookup, __pyx_t_8}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -30086,14 +30050,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_n_s_metadataLookup, __pyx_t_8}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { - __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -30104,14 +30068,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_8); __pyx_t_8 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 95, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 98, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":96 + /* "src/pyrfc/server.pyx":99 * if function_name not in server_functions: * _server_log("metadataLookup", f"No metadata found for function '{function_name}'.") * return RFC_NOT_FOUND # <<<<<<<<<<<<<< @@ -30121,7 +30085,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_r = RFC_NOT_FOUND; goto __pyx_L0; - /* "src/pyrfc/server.pyx":94 + /* "src/pyrfc/server.pyx":97 * global server_functions * function_name = wrapString(functionName) * if function_name not in server_functions: # <<<<<<<<<<<<<< @@ -30130,44 +30094,44 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi */ } - /* "src/pyrfc/server.pyx":97 + /* "src/pyrfc/server.pyx":100 * _server_log("metadataLookup", f"No metadata found for function '{function_name}'.") * return RFC_NOT_FOUND * func_metadata = server_functions[function_name] # <<<<<<<<<<<<<< * # callback = func_metadata['callback'] * funcDescHandle[0] = func_metadata['func_desc_handle'] */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 97, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_function_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 97, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_function_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_func_metadata = __pyx_t_4; __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":99 + /* "src/pyrfc/server.pyx":102 * func_metadata = server_functions[function_name] * # callback = func_metadata['callback'] * funcDescHandle[0] = func_metadata['func_desc_handle'] # <<<<<<<<<<<<<< * _server_log("metadataLookup", f"Function '{function_name}' handle {funcDescHandle[0]}.") * return RFC_OK */ - __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_metadata, __pyx_n_s_func_desc_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 99, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_metadata, __pyx_n_s_func_desc_handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 102, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_11 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_11 == ((uintptr_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 99, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyInt_As_size_t(__pyx_t_4); if (unlikely((__pyx_t_11 == ((uintptr_t)-1)) && PyErr_Occurred())) __PYX_ERR(5, 102, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (__pyx_v_funcDescHandle[0]) = ((RFC_FUNCTION_DESC_HANDLE)((uintptr_t)__pyx_t_11)); - /* "src/pyrfc/server.pyx":100 + /* "src/pyrfc/server.pyx":103 * # callback = func_metadata['callback'] * funcDescHandle[0] = func_metadata['func_desc_handle'] * _server_log("metadataLookup", f"Function '{function_name}' handle {funcDescHandle[0]}.") # <<<<<<<<<<<<<< * return RFC_OK * */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 100, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = PyTuple_New(5); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(5); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_6 = 0; __pyx_t_7 = 127; @@ -30175,7 +30139,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_t_6 += 10; __Pyx_GIVEREF(__pyx_kp_u_Function); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_kp_u_Function); - __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_function_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_function_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_7; __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8); @@ -30186,9 +30150,9 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_t_6 += 9; __Pyx_GIVEREF(__pyx_kp_u_handle); PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_kp_u_handle); - __pyx_t_8 = __Pyx_PyInt_FromSize_t(((uintptr_t)(__pyx_v_funcDescHandle[0]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyInt_FromSize_t(((uintptr_t)(__pyx_v_funcDescHandle[0]))); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_8, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_8, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_7; @@ -30200,7 +30164,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_t_6 += 1; __Pyx_GIVEREF(__pyx_kp_u__8); PyTuple_SET_ITEM(__pyx_t_10, 4, __pyx_kp_u__8); - __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_10, 5, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_10, 5, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; @@ -30218,7 +30182,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_n_s_metadataLookup, __pyx_t_5}; - __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -30227,14 +30191,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_n_s_metadataLookup, __pyx_t_5}; - __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { - __pyx_t_8 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -30245,14 +30209,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_9, __pyx_t_5); __pyx_t_5 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 100, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 103, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":101 + /* "src/pyrfc/server.pyx":104 * funcDescHandle[0] = func_metadata['func_desc_handle'] * _server_log("metadataLookup", f"Function '{function_name}' handle {funcDescHandle[0]}.") * return RFC_OK # <<<<<<<<<<<<<< @@ -30262,7 +30226,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi __pyx_r = RFC_OK; goto __pyx_L0; - /* "src/pyrfc/server.pyx":87 + /* "src/pyrfc/server.pyx":90 * self._connection._free() * * cdef RFC_RC metadataLookup( # <<<<<<<<<<<<<< @@ -30289,7 +30253,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_metadataLookup(SAP_UC const *__pyx_v_functi return __pyx_r; } -/* "src/pyrfc/server.pyx":103 +/* "src/pyrfc/server.pyx":106 * return RFC_OK * * cdef get_server_context(RFC_CONNECTION_HANDLE rfcHandle, RFC_ERROR_INFO* serverErrorInfo): # <<<<<<<<<<<<<< @@ -30315,7 +30279,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_server_context", 0); - /* "src/pyrfc/server.pyx":105 + /* "src/pyrfc/server.pyx":108 * cdef get_server_context(RFC_CONNECTION_HANDLE rfcHandle, RFC_ERROR_INFO* serverErrorInfo): * cdef RFC_SERVER_CONTEXT context * cdef RFC_RC rc = RfcGetServerContext(rfcHandle, &context, serverErrorInfo) # <<<<<<<<<<<<<< @@ -30324,7 +30288,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE */ __pyx_v_rc = RfcGetServerContext(__pyx_v_rfcHandle, (&__pyx_v_context), __pyx_v_serverErrorInfo); - /* "src/pyrfc/server.pyx":106 + /* "src/pyrfc/server.pyx":109 * cdef RFC_SERVER_CONTEXT context * cdef RFC_RC rc = RfcGetServerContext(rfcHandle, &context, serverErrorInfo) * if rc != RFC_OK or serverErrorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -30342,7 +30306,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "src/pyrfc/server.pyx":107 + /* "src/pyrfc/server.pyx":110 * cdef RFC_RC rc = RfcGetServerContext(rfcHandle, &context, serverErrorInfo) * if rc != RFC_OK or serverErrorInfo.code != RFC_OK: * return None # <<<<<<<<<<<<<< @@ -30353,7 +30317,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "src/pyrfc/server.pyx":106 + /* "src/pyrfc/server.pyx":109 * cdef RFC_SERVER_CONTEXT context * cdef RFC_RC rc = RfcGetServerContext(rfcHandle, &context, serverErrorInfo) * if rc != RFC_OK or serverErrorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -30362,18 +30326,18 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE */ } - /* "src/pyrfc/server.pyx":110 + /* "src/pyrfc/server.pyx":113 * * server_context = { * "call_type": UnitCallType(context.type), # <<<<<<<<<<<<<< * "is_stateful": context.isStateful != 0 * } */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 110, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_UnitCallType); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 110, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_UnitCallType); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyInt_From_RFC_CALL_TYPE(__pyx_v_context.type); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 110, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_RFC_CALL_TYPE(__pyx_v_context.type); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) { @@ -30388,27 +30352,27 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 110, __pyx_L1_error) + if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_call_type, __pyx_t_4) < 0) __PYX_ERR(5, 110, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_call_type, __pyx_t_4) < 0) __PYX_ERR(5, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":111 + /* "src/pyrfc/server.pyx":114 * server_context = { * "call_type": UnitCallType(context.type), * "is_stateful": context.isStateful != 0 # <<<<<<<<<<<<<< * } * if context.type != RFC_SYNCHRONOUS: */ - __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_context.isStateful != 0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 111, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyBool_FromLong((__pyx_v_context.isStateful != 0)); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_is_stateful, __pyx_t_4) < 0) __PYX_ERR(5, 110, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_is_stateful, __pyx_t_4) < 0) __PYX_ERR(5, 113, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_v_server_context = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/server.pyx":113 + /* "src/pyrfc/server.pyx":116 * "is_stateful": context.isStateful != 0 * } * if context.type != RFC_SYNCHRONOUS: # <<<<<<<<<<<<<< @@ -30418,19 +30382,19 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE __pyx_t_1 = ((__pyx_v_context.type != RFC_SYNCHRONOUS) != 0); if (__pyx_t_1) { - /* "src/pyrfc/server.pyx":114 + /* "src/pyrfc/server.pyx":117 * } * if context.type != RFC_SYNCHRONOUS: * server_context["unit_identifier"] = wrapUnitIdentifier(context.unitIdentifier[0]) # <<<<<<<<<<<<<< * if context.type == RFC_BACKGROUND_UNIT: * server_context ["unit_attributes"] = wrapUnitAttributes(context.unitAttributes) */ - __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_context.unitIdentifier[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 114, __pyx_L1_error) + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_context.unitIdentifier[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (unlikely(PyDict_SetItem(__pyx_v_server_context, __pyx_n_s_unit_identifier, __pyx_t_3) < 0)) __PYX_ERR(5, 114, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_server_context, __pyx_n_s_unit_identifier, __pyx_t_3) < 0)) __PYX_ERR(5, 117, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/server.pyx":113 + /* "src/pyrfc/server.pyx":116 * "is_stateful": context.isStateful != 0 * } * if context.type != RFC_SYNCHRONOUS: # <<<<<<<<<<<<<< @@ -30439,7 +30403,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE */ } - /* "src/pyrfc/server.pyx":115 + /* "src/pyrfc/server.pyx":118 * if context.type != RFC_SYNCHRONOUS: * server_context["unit_identifier"] = wrapUnitIdentifier(context.unitIdentifier[0]) * if context.type == RFC_BACKGROUND_UNIT: # <<<<<<<<<<<<<< @@ -30449,19 +30413,19 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE __pyx_t_1 = ((__pyx_v_context.type == RFC_BACKGROUND_UNIT) != 0); if (__pyx_t_1) { - /* "src/pyrfc/server.pyx":116 + /* "src/pyrfc/server.pyx":119 * server_context["unit_identifier"] = wrapUnitIdentifier(context.unitIdentifier[0]) * if context.type == RFC_BACKGROUND_UNIT: * server_context ["unit_attributes"] = wrapUnitAttributes(context.unitAttributes) # <<<<<<<<<<<<<< * * return server_context */ - __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitAttributes(__pyx_v_context.unitAttributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 116, __pyx_L1_error) + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitAttributes(__pyx_v_context.unitAttributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 119, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (unlikely(PyDict_SetItem(__pyx_v_server_context, __pyx_n_s_unit_attributes, __pyx_t_3) < 0)) __PYX_ERR(5, 116, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_server_context, __pyx_n_s_unit_attributes, __pyx_t_3) < 0)) __PYX_ERR(5, 119, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/server.pyx":115 + /* "src/pyrfc/server.pyx":118 * if context.type != RFC_SYNCHRONOUS: * server_context["unit_identifier"] = wrapUnitIdentifier(context.unitIdentifier[0]) * if context.type == RFC_BACKGROUND_UNIT: # <<<<<<<<<<<<<< @@ -30470,7 +30434,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE */ } - /* "src/pyrfc/server.pyx":118 + /* "src/pyrfc/server.pyx":121 * server_context ["unit_attributes"] = wrapUnitAttributes(context.unitAttributes) * * return server_context # <<<<<<<<<<<<<< @@ -30482,7 +30446,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE __pyx_r = __pyx_v_server_context; goto __pyx_L0; - /* "src/pyrfc/server.pyx":103 + /* "src/pyrfc/server.pyx":106 * return RFC_OK * * cdef get_server_context(RFC_CONNECTION_HANDLE rfcHandle, RFC_ERROR_INFO* serverErrorInfo): # <<<<<<<<<<<<<< @@ -30506,7 +30470,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_get_server_context(RFC_CONNECTION_HANDLE return __pyx_r; } -/* "src/pyrfc/server.pyx":120 +/* "src/pyrfc/server.pyx":123 * return server_context * * cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO* serverErrorInfo) with gil: # <<<<<<<<<<<<<< @@ -30577,19 +30541,19 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #endif __Pyx_RefNannySetupContext("genericHandler", 0); - /* "src/pyrfc/server.pyx":130 + /* "src/pyrfc/server.pyx":133 * * # section 5.6.2 of SAP NWRFC SDK Programming Guide 7.50 * context = get_server_context(rfcHandle, serverErrorInfo) # <<<<<<<<<<<<<< * if context is None: * err_msg = f"Error code {serverErrorInfo.code} when getting server context for connection '{rfcHandle}'" */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_get_server_context(__pyx_v_rfcHandle, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 130, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_get_server_context(__pyx_v_rfcHandle, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 133, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_context = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":131 + /* "src/pyrfc/server.pyx":134 * # section 5.6.2 of SAP NWRFC SDK Programming Guide 7.50 * context = get_server_context(rfcHandle, serverErrorInfo) * if context is None: # <<<<<<<<<<<<<< @@ -30600,14 +30564,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "src/pyrfc/server.pyx":132 + /* "src/pyrfc/server.pyx":135 * context = get_server_context(rfcHandle, serverErrorInfo) * if context is None: * err_msg = f"Error code {serverErrorInfo.code} when getting server context for connection '{rfcHandle}'" # <<<<<<<<<<<<<< * new_error = ExternalRuntimeError( * message=err_msg, */ - __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 132, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = 0; __pyx_t_5 = 127; @@ -30615,7 +30579,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 11; __Pyx_GIVEREF(__pyx_kp_u_Error_code); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_Error_code); - __pyx_t_6 = __Pyx_PyUnicode_From_RFC_RC(__pyx_v_serverErrorInfo->code, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 132, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_From_RFC_RC(__pyx_v_serverErrorInfo->code, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6); @@ -30626,9 +30590,9 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 45; __Pyx_GIVEREF(__pyx_kp_u_when_getting_server_context_for); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_when_getting_server_context_for); - __pyx_t_6 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 132, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 132, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5; @@ -30640,71 +30604,71 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__6); - __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 132, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 135, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_err_msg = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":133 + /* "src/pyrfc/server.pyx":136 * if context is None: * err_msg = f"Error code {serverErrorInfo.code} when getting server context for connection '{rfcHandle}'" * new_error = ExternalRuntimeError( # <<<<<<<<<<<<<< * message=err_msg, * code=RFC_EXTERNAL_FAILURE */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 133, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - /* "src/pyrfc/server.pyx":134 + /* "src/pyrfc/server.pyx":137 * err_msg = f"Error code {serverErrorInfo.code} when getting server context for connection '{rfcHandle}'" * new_error = ExternalRuntimeError( * message=err_msg, # <<<<<<<<<<<<<< * code=RFC_EXTERNAL_FAILURE * ) */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 134, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 137, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_message, __pyx_v_err_msg) < 0) __PYX_ERR(5, 134, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_message, __pyx_v_err_msg) < 0) __PYX_ERR(5, 137, __pyx_L1_error) - /* "src/pyrfc/server.pyx":135 + /* "src/pyrfc/server.pyx":138 * new_error = ExternalRuntimeError( * message=err_msg, * code=RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< * ) * fillError(new_error, serverErrorInfo) */ - __pyx_t_6 = __Pyx_PyInt_From_RFC_RC(RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 135, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_From_RFC_RC(RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_code, __pyx_t_6) < 0) __PYX_ERR(5, 134, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_code, __pyx_t_6) < 0) __PYX_ERR(5, 137, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":133 + /* "src/pyrfc/server.pyx":136 * if context is None: * err_msg = f"Error code {serverErrorInfo.code} when getting server context for connection '{rfcHandle}'" * new_error = ExternalRuntimeError( # <<<<<<<<<<<<<< * message=err_msg, * code=RFC_EXTERNAL_FAILURE */ - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 133, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 136, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_new_error = __pyx_t_6; __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":137 + /* "src/pyrfc/server.pyx":140 * code=RFC_EXTERNAL_FAILURE * ) * fillError(new_error, serverErrorInfo) # <<<<<<<<<<<<<< * return RFC_EXTERNAL_FAILURE * */ - __pyx_t_6 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_new_error, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 137, __pyx_L1_error) + __pyx_t_6 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_new_error, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 140, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":138 + /* "src/pyrfc/server.pyx":141 * ) * fillError(new_error, serverErrorInfo) * return RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< @@ -30714,7 +30678,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_r = RFC_EXTERNAL_FAILURE; goto __pyx_L0; - /* "src/pyrfc/server.pyx":131 + /* "src/pyrfc/server.pyx":134 * # section 5.6.2 of SAP NWRFC SDK Programming Guide 7.50 * context = get_server_context(rfcHandle, serverErrorInfo) * if context is None: # <<<<<<<<<<<<<< @@ -30723,7 +30687,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ } - /* "src/pyrfc/server.pyx":140 + /* "src/pyrfc/server.pyx":143 * return RFC_EXTERNAL_FAILURE * * funcDesc = RfcDescribeFunction(funcHandle, NULL) # <<<<<<<<<<<<<< @@ -30732,7 +30696,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ __pyx_v_funcDesc = RfcDescribeFunction(__pyx_v_funcHandle, NULL); - /* "src/pyrfc/server.pyx":141 + /* "src/pyrfc/server.pyx":144 * * funcDesc = RfcDescribeFunction(funcHandle, NULL) * RfcGetFunctionName(funcDesc, funcName, NULL) # <<<<<<<<<<<<<< @@ -30741,42 +30705,42 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ (void)(RfcGetFunctionName(__pyx_v_funcDesc, __pyx_v_funcName, NULL)); - /* "src/pyrfc/server.pyx":143 + /* "src/pyrfc/server.pyx":146 * RfcGetFunctionName(funcDesc, funcName, NULL) * * func_name = wrapString(funcName) # <<<<<<<<<<<<<< * if func_name not in server_functions: * _server_log("genericHandler", f"No metadata found for function '{function_name}'") */ - __pyx_t_6 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_funcName, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 143, __pyx_L1_error) + __pyx_t_6 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_funcName, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 146, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_v_func_name = __pyx_t_6; __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":144 + /* "src/pyrfc/server.pyx":147 * * func_name = wrapString(funcName) * if func_name not in server_functions: # <<<<<<<<<<<<<< * _server_log("genericHandler", f"No metadata found for function '{function_name}'") * return RFC_NOT_FOUND */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 144, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 147, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_func_name, __pyx_t_6, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 144, __pyx_L1_error) + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_func_name, __pyx_t_6, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 147, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_2 = (__pyx_t_3 != 0); if (__pyx_t_2) { - /* "src/pyrfc/server.pyx":145 + /* "src/pyrfc/server.pyx":148 * func_name = wrapString(funcName) * if func_name not in server_functions: * _server_log("genericHandler", f"No metadata found for function '{function_name}'") # <<<<<<<<<<<<<< * return RFC_NOT_FOUND * */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 145, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __pyx_t_4 = 0; __pyx_t_5 = 127; @@ -30784,9 +30748,9 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 32; __Pyx_GIVEREF(__pyx_kp_u_No_metadata_found_for_function); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u_No_metadata_found_for_function); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_function_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 145, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_function_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_t_8, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_t_8, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_5; @@ -30798,7 +30762,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_kp_u__6); - __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_7, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_t_7 = NULL; @@ -30816,7 +30780,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_n_s_genericHandler, __pyx_t_9}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -30825,14 +30789,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_n_s_genericHandler, __pyx_t_9}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { - __pyx_t_8 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -30843,14 +30807,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_10, __pyx_t_9); __pyx_t_9 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 145, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":146 + /* "src/pyrfc/server.pyx":149 * if func_name not in server_functions: * _server_log("genericHandler", f"No metadata found for function '{function_name}'") * return RFC_NOT_FOUND # <<<<<<<<<<<<<< @@ -30860,7 +30824,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_r = RFC_NOT_FOUND; goto __pyx_L0; - /* "src/pyrfc/server.pyx":144 + /* "src/pyrfc/server.pyx":147 * * func_name = wrapString(funcName) * if func_name not in server_functions: # <<<<<<<<<<<<<< @@ -30869,46 +30833,46 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ } - /* "src/pyrfc/server.pyx":148 + /* "src/pyrfc/server.pyx":151 * return RFC_NOT_FOUND * * func_data = server_functions[func_name] # <<<<<<<<<<<<<< * callback = func_data['callback'] * server = func_data['server'] */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 148, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_func_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 148, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_v_func_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 151, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_func_data = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":149 + /* "src/pyrfc/server.pyx":152 * * func_data = server_functions[func_name] * callback = func_data['callback'] # <<<<<<<<<<<<<< * server = func_data['server'] * # func_desc = func_data['func_desc_handle'] */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_data, __pyx_n_s_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 149, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_data, __pyx_n_s_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 152, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_callback = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":150 + /* "src/pyrfc/server.pyx":153 * func_data = server_functions[func_name] * callback = func_data['callback'] * server = func_data['server'] # <<<<<<<<<<<<<< * # func_desc = func_data['func_desc_handle'] * */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_data, __pyx_n_s_server); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 150, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_data, __pyx_n_s_server); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 153, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v_server = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":153 + /* "src/pyrfc/server.pyx":156 * # func_desc = func_data['func_desc_handle'] * * try: # <<<<<<<<<<<<<< @@ -30924,7 +30888,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "src/pyrfc/server.pyx":154 + /* "src/pyrfc/server.pyx":157 * * try: * rc = RfcGetConnectionAttributes(rfcHandle, &attributes, &errorInfo) # <<<<<<<<<<<<<< @@ -30933,7 +30897,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ __pyx_v_rc = RfcGetConnectionAttributes(__pyx_v_rfcHandle, (&__pyx_v_attributes), (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":155 + /* "src/pyrfc/server.pyx":158 * try: * rc = RfcGetConnectionAttributes(rfcHandle, &attributes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -30943,16 +30907,16 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_2) { - /* "src/pyrfc/server.pyx":156 + /* "src/pyrfc/server.pyx":159 * rc = RfcGetConnectionAttributes(rfcHandle, &attributes, &errorInfo) * if rc != RFC_OK: * _server_log("genericHandler", f"Request for '{func_name}': Error while retrieving connection attributes (rc={rc}).") # <<<<<<<<<<<<<< * if not server.debug: * raise ExternalRuntimeError(message="Invalid connection handle.") */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 156, __pyx_L5_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = PyTuple_New(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_8 = PyTuple_New(5); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_4 = 0; __pyx_t_5 = 127; @@ -30960,7 +30924,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 13; __Pyx_GIVEREF(__pyx_kp_u_Request_for); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u_Request_for); - __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_5; __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9); @@ -30971,7 +30935,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 52; __Pyx_GIVEREF(__pyx_kp_u_Error_while_retrieving_connecti); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u_Error_while_retrieving_connecti); - __pyx_t_9 = __Pyx_PyUnicode_From_RFC_RC(__pyx_v_rc, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_9 = __Pyx_PyUnicode_From_RFC_RC(__pyx_v_rc, 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_5; __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9); @@ -30982,7 +30946,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 2; __Pyx_GIVEREF(__pyx_kp_u__42); PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_kp_u__42); - __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_8, 5, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_8, 5, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; @@ -31000,7 +30964,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_n_s_genericHandler, __pyx_t_9}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -31009,14 +30973,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_n_s_genericHandler, __pyx_t_9}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_7 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -31027,48 +30991,48 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_10, __pyx_t_9); __pyx_t_9 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 156, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 159, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":157 + /* "src/pyrfc/server.pyx":160 * if rc != RFC_OK: * _server_log("genericHandler", f"Request for '{func_name}': Error while retrieving connection attributes (rc={rc}).") * if not server.debug: # <<<<<<<<<<<<<< * raise ExternalRuntimeError(message="Invalid connection handle.") * conn_attr = {} */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_server, __pyx_n_s_debug); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 157, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_server, __pyx_n_s_debug); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 160, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(5, 157, __pyx_L5_error) + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(5, 160, __pyx_L5_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((!__pyx_t_2) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/server.pyx":158 + /* "src/pyrfc/server.pyx":161 * _server_log("genericHandler", f"Request for '{func_name}': Error while retrieving connection attributes (rc={rc}).") * if not server.debug: * raise ExternalRuntimeError(message="Invalid connection handle.") # <<<<<<<<<<<<<< * conn_attr = {} * else: */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 158, __pyx_L5_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 161, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 158, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 161, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_message, __pyx_kp_s_Invalid_connection_handle) < 0) __PYX_ERR(5, 158, __pyx_L5_error) - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 158, __pyx_L5_error) + if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_message, __pyx_kp_s_Invalid_connection_handle) < 0) __PYX_ERR(5, 161, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 161, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_7, 0, 0, 0); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __PYX_ERR(5, 158, __pyx_L5_error) + __PYX_ERR(5, 161, __pyx_L5_error) - /* "src/pyrfc/server.pyx":157 + /* "src/pyrfc/server.pyx":160 * if rc != RFC_OK: * _server_log("genericHandler", f"Request for '{func_name}': Error while retrieving connection attributes (rc={rc}).") * if not server.debug: # <<<<<<<<<<<<<< @@ -31077,19 +31041,19 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ } - /* "src/pyrfc/server.pyx":159 + /* "src/pyrfc/server.pyx":162 * if not server.debug: * raise ExternalRuntimeError(message="Invalid connection handle.") * conn_attr = {} # <<<<<<<<<<<<<< * else: * conn_attr = wrapConnectionAttributes(attributes) */ - __pyx_t_7 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 159, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 162, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_conn_attr = __pyx_t_7; __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":155 + /* "src/pyrfc/server.pyx":158 * try: * rc = RfcGetConnectionAttributes(rfcHandle, &attributes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -31099,7 +31063,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ goto __pyx_L11; } - /* "src/pyrfc/server.pyx":161 + /* "src/pyrfc/server.pyx":164 * conn_attr = {} * else: * conn_attr = wrapConnectionAttributes(attributes) # <<<<<<<<<<<<<< @@ -31107,41 +31071,41 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ * "genericHandler", */ /*else*/ { - __pyx_t_7 = __pyx_f_5pyrfc_6_cyrfc_wrapConnectionAttributes(__pyx_v_attributes); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 161, __pyx_L5_error) + __pyx_t_7 = __pyx_f_5pyrfc_6_cyrfc_wrapConnectionAttributes(__pyx_v_attributes); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 164, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __pyx_v_conn_attr = __pyx_t_7; __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":162 + /* "src/pyrfc/server.pyx":165 * else: * conn_attr = wrapConnectionAttributes(attributes) * _server_log( # <<<<<<<<<<<<<< * "genericHandler", * "User '{user}' from system '{sysId}' client '{client}' host '{partnerHost}' invokes '{func_name}'" */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 162, __pyx_L5_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 165, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); - /* "src/pyrfc/server.pyx":165 + /* "src/pyrfc/server.pyx":168 * "genericHandler", * "User '{user}' from system '{sysId}' client '{client}' host '{partnerHost}' invokes '{func_name}'" * .format(func_name=func_name, **conn_attr) # <<<<<<<<<<<<<< * ) * */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_User_user_from_system_sysId_clie, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 165, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_User_user_from_system_sysId_clie, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 168, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 165, __pyx_L5_error) + __pyx_t_8 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 168, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_func_name, __pyx_v_func_name) < 0) __PYX_ERR(5, 165, __pyx_L5_error) + if (PyDict_SetItem(__pyx_t_8, __pyx_n_s_func_name, __pyx_v_func_name) < 0) __PYX_ERR(5, 168, __pyx_L5_error) __pyx_t_9 = __pyx_t_8; __pyx_t_8 = 0; if (unlikely(__pyx_v_conn_attr == Py_None)) { PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType"); - __PYX_ERR(5, 165, __pyx_L5_error) + __PYX_ERR(5, 168, __pyx_L5_error) } - if (__Pyx_MergeKeywords(__pyx_t_9, __pyx_v_conn_attr) < 0) __PYX_ERR(5, 165, __pyx_L5_error) - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 165, __pyx_L5_error) + if (__Pyx_MergeKeywords(__pyx_t_9, __pyx_v_conn_attr) < 0) __PYX_ERR(5, 168, __pyx_L5_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 168, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; @@ -31160,7 +31124,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_n_s_genericHandler, __pyx_t_8}; - __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 162, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 165, __pyx_L5_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -31169,14 +31133,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_n_s_genericHandler, __pyx_t_8}; - __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 162, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 165, __pyx_L5_error) __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } else #endif { - __pyx_t_1 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 162, __pyx_L5_error) + __pyx_t_1 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 165, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); if (__pyx_t_9) { __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_9); __pyx_t_9 = NULL; @@ -31187,7 +31151,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_10, __pyx_t_8); __pyx_t_8 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 162, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_1, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 165, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } @@ -31196,44 +31160,44 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ } __pyx_L11:; - /* "src/pyrfc/server.pyx":170 + /* "src/pyrfc/server.pyx":173 * # Context of the request. Might later be extended by activeParameter information. * request_context = { * 'connection_attributes': conn_attr, # <<<<<<<<<<<<<< * 'server_context': context * } */ - __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 170, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 173, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_connection_attributes, __pyx_v_conn_attr) < 0) __PYX_ERR(5, 170, __pyx_L5_error) + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_connection_attributes, __pyx_v_conn_attr) < 0) __PYX_ERR(5, 173, __pyx_L5_error) - /* "src/pyrfc/server.pyx":171 + /* "src/pyrfc/server.pyx":174 * request_context = { * 'connection_attributes': conn_attr, * 'server_context': context # <<<<<<<<<<<<<< * } * */ - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_server_context, __pyx_v_context) < 0) __PYX_ERR(5, 170, __pyx_L5_error) + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_server_context, __pyx_v_context) < 0) __PYX_ERR(5, 173, __pyx_L5_error) __pyx_v_request_context = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":175 + /* "src/pyrfc/server.pyx":178 * * # Authorization check * auth_function = server_context["auth_check"] # <<<<<<<<<<<<<< * rc = auth_function(func_name, request_context) * if rc != RFC_OK: */ - __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_server_context); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 175, __pyx_L5_error) + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_server_context); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 178, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_n_s_auth_check); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 175, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_t_7, __pyx_n_s_auth_check); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 178, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_auth_function = __pyx_t_6; __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":176 + /* "src/pyrfc/server.pyx":179 * # Authorization check * auth_function = server_context["auth_check"] * rc = auth_function(func_name, request_context) # <<<<<<<<<<<<<< @@ -31256,7 +31220,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_v_func_name, __pyx_v_request_context}; - __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 176, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 179, __pyx_L5_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else @@ -31264,13 +31228,13 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) { PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_v_func_name, __pyx_v_request_context}; - __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 176, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 179, __pyx_L5_error) __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GOTREF(__pyx_t_6); } else #endif { - __pyx_t_8 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 176, __pyx_L5_error) + __pyx_t_8 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 179, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_1) { __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_1); __pyx_t_1 = NULL; @@ -31281,16 +31245,16 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_INCREF(__pyx_v_request_context); __Pyx_GIVEREF(__pyx_v_request_context); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_10, __pyx_v_request_context); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 176, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 179, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_14 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_6)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 176, __pyx_L5_error) + __pyx_t_14 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_6)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 179, __pyx_L5_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_rc = __pyx_t_14; - /* "src/pyrfc/server.pyx":177 + /* "src/pyrfc/server.pyx":180 * auth_function = server_context["auth_check"] * rc = auth_function(func_name, request_context) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -31300,26 +31264,26 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (__pyx_t_3) { - /* "src/pyrfc/server.pyx":178 + /* "src/pyrfc/server.pyx":181 * rc = auth_function(func_name, request_context) * if rc != RFC_OK: * new_error = ExternalRuntimeError( # <<<<<<<<<<<<<< * message=f"Authentication exception raised by callback function: '{func_name}'", * code=RFC_EXTERNAL_FAILURE */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 178, __pyx_L5_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 181, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); - /* "src/pyrfc/server.pyx":179 + /* "src/pyrfc/server.pyx":182 * if rc != RFC_OK: * new_error = ExternalRuntimeError( * message=f"Authentication exception raised by callback function: '{func_name}'", # <<<<<<<<<<<<<< * code=RFC_EXTERNAL_FAILURE * ) */ - __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 179, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 182, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 179, __pyx_L5_error) + __pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 182, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_4 = 0; __pyx_t_5 = 127; @@ -31327,7 +31291,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 55; __Pyx_GIVEREF(__pyx_kp_u_Authentication_exception_raised); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u_Authentication_exception_raised); - __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 179, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 182, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_5; __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1); @@ -31338,50 +31302,50 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u__6); - __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 179, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_8, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 182, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_message, __pyx_t_1) < 0) __PYX_ERR(5, 179, __pyx_L5_error) + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_message, __pyx_t_1) < 0) __PYX_ERR(5, 182, __pyx_L5_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":180 + /* "src/pyrfc/server.pyx":183 * new_error = ExternalRuntimeError( * message=f"Authentication exception raised by callback function: '{func_name}'", * code=RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< * ) * fillError(new_error, serverErrorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_RFC_RC(RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 180, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyInt_From_RFC_RC(RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 183, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_code, __pyx_t_1) < 0) __PYX_ERR(5, 179, __pyx_L5_error) + if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_code, __pyx_t_1) < 0) __PYX_ERR(5, 182, __pyx_L5_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":178 + /* "src/pyrfc/server.pyx":181 * rc = auth_function(func_name, request_context) * if rc != RFC_OK: * new_error = ExternalRuntimeError( # <<<<<<<<<<<<<< * message=f"Authentication exception raised by callback function: '{func_name}'", * code=RFC_EXTERNAL_FAILURE */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 178, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_empty_tuple, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 181, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_new_error = __pyx_t_1; __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":182 + /* "src/pyrfc/server.pyx":185 * code=RFC_EXTERNAL_FAILURE * ) * fillError(new_error, serverErrorInfo) # <<<<<<<<<<<<<< * return RFC_EXTERNAL_FAILURE * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_new_error, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 182, __pyx_L5_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_new_error, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 185, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":183 + /* "src/pyrfc/server.pyx":186 * ) * fillError(new_error, serverErrorInfo) * return RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< @@ -31391,7 +31355,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_r = RFC_EXTERNAL_FAILURE; goto __pyx_L9_try_return; - /* "src/pyrfc/server.pyx":177 + /* "src/pyrfc/server.pyx":180 * auth_function = server_context["auth_check"] * rc = auth_function(func_name, request_context) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -31400,73 +31364,73 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ } - /* "src/pyrfc/server.pyx":187 + /* "src/pyrfc/server.pyx":190 * # Filter out variables that are of direction u'RFC_EXPORT' * # (these will be set by the callback function) * func_handle_variables = wrapResult(funcDesc, funcHandle, RFC_EXPORT, server.rstrip) # <<<<<<<<<<<<<< * * # Invoke callback function */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_server, __pyx_n_s_rstrip); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 187, __pyx_L5_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_server, __pyx_n_s_rstrip); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 190, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = __pyx_f_5pyrfc_6_cyrfc_wrapResult(__pyx_v_funcDesc, __pyx_v_funcHandle, RFC_EXPORT, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 187, __pyx_L5_error) + __pyx_t_7 = __pyx_f_5pyrfc_6_cyrfc_wrapResult(__pyx_v_funcDesc, __pyx_v_funcHandle, RFC_EXPORT, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 190, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_func_handle_variables = __pyx_t_7; __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":190 + /* "src/pyrfc/server.pyx":193 * * # Invoke callback function * result = callback(request_context, **func_handle_variables) # <<<<<<<<<<<<<< * * # Return results */ - __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 190, __pyx_L5_error) + __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 193, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_INCREF(__pyx_v_request_context); __Pyx_GIVEREF(__pyx_v_request_context); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_request_context); if (unlikely(__pyx_v_func_handle_variables == Py_None)) { PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType"); - __PYX_ERR(5, 190, __pyx_L5_error) + __PYX_ERR(5, 193, __pyx_L5_error) } if (likely(PyDict_CheckExact(__pyx_v_func_handle_variables))) { - __pyx_t_1 = PyDict_Copy(__pyx_v_func_handle_variables); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 190, __pyx_L5_error) + __pyx_t_1 = PyDict_Copy(__pyx_v_func_handle_variables); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 193, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); } else { - __pyx_t_1 = PyObject_CallFunctionObjArgs((PyObject*)&PyDict_Type, __pyx_v_func_handle_variables, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 190, __pyx_L5_error) + __pyx_t_1 = PyObject_CallFunctionObjArgs((PyObject*)&PyDict_Type, __pyx_v_func_handle_variables, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 193, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_v_callback, __pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 190, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_v_callback, __pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 193, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_result = __pyx_t_6; __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":193 + /* "src/pyrfc/server.pyx":196 * * # Return results * if context["call_type"] != UnitCallType.background_unit: # <<<<<<<<<<<<<< * for name, value in result.iteritems(): * fillFunctionParameter(funcDesc, funcHandle, name, value) */ - __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_v_context, __pyx_n_s_call_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 193, __pyx_L5_error) + __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_v_context, __pyx_n_s_call_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 196, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_UnitCallType); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 193, __pyx_L5_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_UnitCallType); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 196, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_background_unit); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 193, __pyx_L5_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_background_unit); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 196, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_RichCompare(__pyx_t_6, __pyx_t_7, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 193, __pyx_L5_error) + __pyx_t_1 = PyObject_RichCompare(__pyx_t_6, __pyx_t_7, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 196, __pyx_L5_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 193, __pyx_L5_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 196, __pyx_L5_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { - /* "src/pyrfc/server.pyx":194 + /* "src/pyrfc/server.pyx":197 * # Return results * if context["call_type"] != UnitCallType.background_unit: * for name, value in result.iteritems(): # <<<<<<<<<<<<<< @@ -31476,9 +31440,9 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_4 = 0; if (unlikely(__pyx_v_result == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "iteritems"); - __PYX_ERR(5, 194, __pyx_L5_error) + __PYX_ERR(5, 197, __pyx_L5_error) } - __pyx_t_7 = __Pyx_dict_iterator(__pyx_v_result, 0, __pyx_n_s_iteritems, (&__pyx_t_15), (&__pyx_t_10)); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 194, __pyx_L5_error) + __pyx_t_7 = __Pyx_dict_iterator(__pyx_v_result, 0, __pyx_n_s_iteritems, (&__pyx_t_15), (&__pyx_t_10)); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 197, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = __pyx_t_7; @@ -31486,7 +31450,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ while (1) { __pyx_t_16 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_15, &__pyx_t_4, &__pyx_t_7, &__pyx_t_6, NULL, __pyx_t_10); if (unlikely(__pyx_t_16 == 0)) break; - if (unlikely(__pyx_t_16 == -1)) __PYX_ERR(5, 194, __pyx_L5_error) + if (unlikely(__pyx_t_16 == -1)) __PYX_ERR(5, 197, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_6); __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_7); @@ -31494,20 +31458,20 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":195 + /* "src/pyrfc/server.pyx":198 * if context["call_type"] != UnitCallType.background_unit: * for name, value in result.iteritems(): * fillFunctionParameter(funcDesc, funcHandle, name, value) # <<<<<<<<<<<<<< * * # Server exception handling: cf. SAP NetWeaver RFC SDK 7.50 */ - __pyx_t_6 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcHandle, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 195, __pyx_L5_error) + __pyx_t_6 = __pyx_f_5pyrfc_6_cyrfc_fillFunctionParameter(__pyx_v_funcDesc, __pyx_v_funcHandle, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 198, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":193 + /* "src/pyrfc/server.pyx":196 * * # Return results * if context["call_type"] != UnitCallType.background_unit: # <<<<<<<<<<<<<< @@ -31516,7 +31480,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ } - /* "src/pyrfc/server.pyx":153 + /* "src/pyrfc/server.pyx":156 * # func_desc = func_data['func_desc_handle'] * * try: # <<<<<<<<<<<<<< @@ -31535,7 +31499,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":199 + /* "src/pyrfc/server.pyx":202 * # Server exception handling: cf. SAP NetWeaver RFC SDK 7.50 * # 5.1 Preparing a Server Program for Receiving RFC Requests * except ExternalRuntimeError as e: # System failure # <<<<<<<<<<<<<< @@ -31543,7 +31507,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ * # returns: RFC_EXTERNAL_FAILURE */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 199, __pyx_L7_except_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 202, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -31551,7 +31515,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_1 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; if (__pyx_t_10) { __Pyx_AddTraceback("pyrfc._cyrfc.genericHandler", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_1) < 0) __PYX_ERR(5, 199, __pyx_L7_except_error) + if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_1) < 0) __PYX_ERR(5, 202, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_1); @@ -31559,18 +31523,18 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_v_e = __pyx_t_6; /*try:*/ { - /* "src/pyrfc/server.pyx":202 + /* "src/pyrfc/server.pyx":205 * # Parameter: message (optional: msg_type, msg_class, msg_number, msg_v1-v4) * # returns: RFC_EXTERNAL_FAILURE * fillError(e, serverErrorInfo) # <<<<<<<<<<<<<< * serverErrorInfo.code = RFC_EXTERNAL_FAILURE # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ExternalRuntimeError {e} - code set to RFC_EXTERNAL_FAILURE.") */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_e, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 202, __pyx_L22_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_e, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 205, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/server.pyx":203 + /* "src/pyrfc/server.pyx":206 * # returns: RFC_EXTERNAL_FAILURE * fillError(e, serverErrorInfo) * serverErrorInfo.code = RFC_EXTERNAL_FAILURE # Overwrite code, if set. # <<<<<<<<<<<<<< @@ -31579,16 +31543,16 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ __pyx_v_serverErrorInfo->code = RFC_EXTERNAL_FAILURE; - /* "src/pyrfc/server.pyx":204 + /* "src/pyrfc/server.pyx":207 * fillError(e, serverErrorInfo) * serverErrorInfo.code = RFC_EXTERNAL_FAILURE # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ExternalRuntimeError {e} - code set to RFC_EXTERNAL_FAILURE.") # <<<<<<<<<<<<<< * return RFC_EXTERNAL_FAILURE * except ABAPRuntimeError as e: # ABAP Message */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_server_log); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 204, __pyx_L22_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_server_log); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = PyTuple_New(5); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_17 = PyTuple_New(5); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_17); __pyx_t_15 = 0; __pyx_t_5 = 127; @@ -31596,7 +31560,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 13; __Pyx_GIVEREF(__pyx_kp_u_Request_for); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_kp_u_Request_for); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -31607,7 +31571,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 30; __Pyx_GIVEREF(__pyx_kp_u_raises_ExternalRuntimeError); PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_kp_u_raises_ExternalRuntimeError); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_e, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_e, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -31618,7 +31582,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 36; __Pyx_GIVEREF(__pyx_kp_u_code_set_to_RFC_EXTERNAL_FAILUR); PyTuple_SET_ITEM(__pyx_t_17, 4, __pyx_kp_u_code_set_to_RFC_EXTERNAL_FAILUR); - __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_17, 5, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_17, 5, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __pyx_t_17 = NULL; @@ -31636,7 +31600,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_17, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; @@ -31645,14 +31609,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_17, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; } else #endif { - __pyx_t_19 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_19 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_19); if (__pyx_t_17) { __Pyx_GIVEREF(__pyx_t_17); PyTuple_SET_ITEM(__pyx_t_19, 0, __pyx_t_17); __pyx_t_17 = NULL; @@ -31663,14 +31627,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_18); PyTuple_SET_ITEM(__pyx_t_19, 1+__pyx_t_10, __pyx_t_18); __pyx_t_18 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_19, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 204, __pyx_L22_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_19, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 207, __pyx_L22_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/server.pyx":205 + /* "src/pyrfc/server.pyx":208 * serverErrorInfo.code = RFC_EXTERNAL_FAILURE # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ExternalRuntimeError {e} - code set to RFC_EXTERNAL_FAILURE.") * return RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< @@ -31684,7 +31648,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ goto __pyx_L21_return; } - /* "src/pyrfc/server.pyx":199 + /* "src/pyrfc/server.pyx":202 * # Server exception handling: cf. SAP NetWeaver RFC SDK 7.50 * # 5.1 Preparing a Server Program for Receiving RFC Requests * except ExternalRuntimeError as e: # System failure # <<<<<<<<<<<<<< @@ -31739,7 +31703,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ } } - /* "src/pyrfc/server.pyx":206 + /* "src/pyrfc/server.pyx":209 * _server_log("genericHandler", f"Request for '{func_name}' raises ExternalRuntimeError {e} - code set to RFC_EXTERNAL_FAILURE.") * return RFC_EXTERNAL_FAILURE * except ABAPRuntimeError as e: # ABAP Message # <<<<<<<<<<<<<< @@ -31747,7 +31711,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ * # returns: RFC_ABAP_MESSAGE */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ABAPRuntimeError); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 206, __pyx_L7_except_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ABAPRuntimeError); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 209, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_16 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -31755,7 +31719,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_1 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; if (__pyx_t_16) { __Pyx_AddTraceback("pyrfc._cyrfc.genericHandler", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_1) < 0) __PYX_ERR(5, 206, __pyx_L7_except_error) + if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_1) < 0) __PYX_ERR(5, 209, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_1); @@ -31763,18 +31727,18 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_v_e = __pyx_t_6; /*try:*/ { - /* "src/pyrfc/server.pyx":209 + /* "src/pyrfc/server.pyx":212 * # Parameter: msg_type, msg_class, msg_number, msg_v1-v4 * # returns: RFC_ABAP_MESSAGE * fillError(e, serverErrorInfo) # <<<<<<<<<<<<<< * serverErrorInfo.code = RFC_ABAP_MESSAGE # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPRuntimeError {e} - code set to RFC_ABAP_MESSAGE.") */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_e, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 209, __pyx_L33_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_e, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 212, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/server.pyx":210 + /* "src/pyrfc/server.pyx":213 * # returns: RFC_ABAP_MESSAGE * fillError(e, serverErrorInfo) * serverErrorInfo.code = RFC_ABAP_MESSAGE # Overwrite code, if set. # <<<<<<<<<<<<<< @@ -31783,16 +31747,16 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ __pyx_v_serverErrorInfo->code = RFC_ABAP_MESSAGE; - /* "src/pyrfc/server.pyx":211 + /* "src/pyrfc/server.pyx":214 * fillError(e, serverErrorInfo) * serverErrorInfo.code = RFC_ABAP_MESSAGE # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPRuntimeError {e} - code set to RFC_ABAP_MESSAGE.") # <<<<<<<<<<<<<< * return RFC_ABAP_MESSAGE * except ABAPApplicationError as e: # ABAP Exception in implementing function */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_server_log); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 211, __pyx_L33_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_server_log); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_19 = PyTuple_New(5); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_19 = PyTuple_New(5); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_19); __pyx_t_15 = 0; __pyx_t_5 = 127; @@ -31800,7 +31764,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 13; __Pyx_GIVEREF(__pyx_kp_u_Request_for); PyTuple_SET_ITEM(__pyx_t_19, 0, __pyx_kp_u_Request_for); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -31811,7 +31775,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 26; __Pyx_GIVEREF(__pyx_kp_u_raises_ABAPRuntimeError); PyTuple_SET_ITEM(__pyx_t_19, 2, __pyx_kp_u_raises_ABAPRuntimeError); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_e, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_e, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -31822,7 +31786,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 32; __Pyx_GIVEREF(__pyx_kp_u_code_set_to_RFC_ABAP_MESSAGE); PyTuple_SET_ITEM(__pyx_t_19, 4, __pyx_kp_u_code_set_to_RFC_ABAP_MESSAGE); - __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_19, 5, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_19, 5, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; __pyx_t_19 = NULL; @@ -31840,7 +31804,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_19, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0; __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; @@ -31849,14 +31813,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_19, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0; __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; } else #endif { - __pyx_t_17 = PyTuple_New(2+__pyx_t_16); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_17 = PyTuple_New(2+__pyx_t_16); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_17); if (__pyx_t_19) { __Pyx_GIVEREF(__pyx_t_19); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_19); __pyx_t_19 = NULL; @@ -31867,14 +31831,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_18); PyTuple_SET_ITEM(__pyx_t_17, 1+__pyx_t_16, __pyx_t_18); __pyx_t_18 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_17, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 211, __pyx_L33_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_17, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 214, __pyx_L33_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/server.pyx":212 + /* "src/pyrfc/server.pyx":215 * serverErrorInfo.code = RFC_ABAP_MESSAGE # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPRuntimeError {e} - code set to RFC_ABAP_MESSAGE.") * return RFC_ABAP_MESSAGE # <<<<<<<<<<<<<< @@ -31888,7 +31852,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ goto __pyx_L32_return; } - /* "src/pyrfc/server.pyx":206 + /* "src/pyrfc/server.pyx":209 * _server_log("genericHandler", f"Request for '{func_name}' raises ExternalRuntimeError {e} - code set to RFC_EXTERNAL_FAILURE.") * return RFC_EXTERNAL_FAILURE * except ABAPRuntimeError as e: # ABAP Message # <<<<<<<<<<<<<< @@ -31943,7 +31907,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ } } - /* "src/pyrfc/server.pyx":213 + /* "src/pyrfc/server.pyx":216 * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPRuntimeError {e} - code set to RFC_ABAP_MESSAGE.") * return RFC_ABAP_MESSAGE * except ABAPApplicationError as e: # ABAP Exception in implementing function # <<<<<<<<<<<<<< @@ -31951,7 +31915,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ * # returns: RFC_ABAP_EXCEPTION */ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7); - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ABAPApplicationError); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 213, __pyx_L7_except_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_ABAPApplicationError); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 216, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -31959,7 +31923,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_1 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0; if (__pyx_t_10) { __Pyx_AddTraceback("pyrfc._cyrfc.genericHandler", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_1) < 0) __PYX_ERR(5, 213, __pyx_L7_except_error) + if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_6, &__pyx_t_1) < 0) __PYX_ERR(5, 216, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_1); @@ -31967,18 +31931,18 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_v_e = __pyx_t_6; /*try:*/ { - /* "src/pyrfc/server.pyx":216 + /* "src/pyrfc/server.pyx":219 * # Parameter: key (optional: msg_type, msg_class, msg_number, msg_v1-v4) * # returns: RFC_ABAP_EXCEPTION * fillError(e, serverErrorInfo) # <<<<<<<<<<<<<< * serverErrorInfo.code = RFC_ABAP_EXCEPTION # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPApplicationError {e} - code set to RFC_ABAP_EXCEPTION.") */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_e, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 216, __pyx_L44_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_e, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 219, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/server.pyx":217 + /* "src/pyrfc/server.pyx":220 * # returns: RFC_ABAP_EXCEPTION * fillError(e, serverErrorInfo) * serverErrorInfo.code = RFC_ABAP_EXCEPTION # Overwrite code, if set. # <<<<<<<<<<<<<< @@ -31987,16 +31951,16 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ */ __pyx_v_serverErrorInfo->code = RFC_ABAP_EXCEPTION; - /* "src/pyrfc/server.pyx":218 + /* "src/pyrfc/server.pyx":221 * fillError(e, serverErrorInfo) * serverErrorInfo.code = RFC_ABAP_EXCEPTION # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPApplicationError {e} - code set to RFC_ABAP_EXCEPTION.") # <<<<<<<<<<<<<< * return RFC_ABAP_EXCEPTION * except Exception as ex: */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_server_log); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 218, __pyx_L44_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_server_log); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_17 = PyTuple_New(5); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_17 = PyTuple_New(5); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_17); __pyx_t_15 = 0; __pyx_t_5 = 127; @@ -32004,7 +31968,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 13; __Pyx_GIVEREF(__pyx_kp_u_Request_for); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_kp_u_Request_for); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32015,7 +31979,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 30; __Pyx_GIVEREF(__pyx_kp_u_raises_ABAPApplicationError); PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_kp_u_raises_ABAPApplicationError); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_e, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_e, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32026,7 +31990,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 34; __Pyx_GIVEREF(__pyx_kp_u_code_set_to_RFC_ABAP_EXCEPTION); PyTuple_SET_ITEM(__pyx_t_17, 4, __pyx_kp_u_code_set_to_RFC_ABAP_EXCEPTION); - __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_17, 5, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_17, 5, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; __pyx_t_17 = NULL; @@ -32044,7 +32008,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_17, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; @@ -32053,14 +32017,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_17, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_10, 2+__pyx_t_10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0; __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; } else #endif { - __pyx_t_19 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_19 = PyTuple_New(2+__pyx_t_10); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_19); if (__pyx_t_17) { __Pyx_GIVEREF(__pyx_t_17); PyTuple_SET_ITEM(__pyx_t_19, 0, __pyx_t_17); __pyx_t_17 = NULL; @@ -32071,14 +32035,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_18); PyTuple_SET_ITEM(__pyx_t_19, 1+__pyx_t_10, __pyx_t_18); __pyx_t_18 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_19, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 218, __pyx_L44_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_19, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 221, __pyx_L44_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "src/pyrfc/server.pyx":219 + /* "src/pyrfc/server.pyx":222 * serverErrorInfo.code = RFC_ABAP_EXCEPTION # Overwrite code, if set. * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPApplicationError {e} - code set to RFC_ABAP_EXCEPTION.") * return RFC_ABAP_EXCEPTION # <<<<<<<<<<<<<< @@ -32092,7 +32056,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ goto __pyx_L43_return; } - /* "src/pyrfc/server.pyx":213 + /* "src/pyrfc/server.pyx":216 * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPRuntimeError {e} - code set to RFC_ABAP_MESSAGE.") * return RFC_ABAP_MESSAGE * except ABAPApplicationError as e: # ABAP Exception in implementing function # <<<<<<<<<<<<<< @@ -32147,7 +32111,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ } } - /* "src/pyrfc/server.pyx":220 + /* "src/pyrfc/server.pyx":223 * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPApplicationError {e} - code set to RFC_ABAP_EXCEPTION.") * return RFC_ABAP_EXCEPTION * except Exception as ex: # <<<<<<<<<<<<<< @@ -32157,7 +32121,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_16 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_16) { __Pyx_AddTraceback("pyrfc._cyrfc.genericHandler", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(5, 220, __pyx_L7_except_error) + if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(5, 223, __pyx_L7_except_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); @@ -32165,14 +32129,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_v_ex = __pyx_t_6; /*try:*/ { - /* "src/pyrfc/server.pyx":221 + /* "src/pyrfc/server.pyx":224 * return RFC_ABAP_EXCEPTION * except Exception as ex: * exctype, value = exc_info()[:2] # <<<<<<<<<<<<<< * _server_log( * "genericHandler", */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_exc_info); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 221, __pyx_L55_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_exc_info); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 224, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_19 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) { @@ -32186,10 +32150,10 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ } __pyx_t_8 = (__pyx_t_19) ? __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_19) : __Pyx_PyObject_CallNoArg(__pyx_t_9); __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0; - if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 221, __pyx_L55_error) + if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 224, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetSlice(__pyx_t_8, 0, 2, NULL, NULL, &__pyx_slice__12, 0, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 221, __pyx_L55_error) + __pyx_t_9 = __Pyx_PyObject_GetSlice(__pyx_t_8, 0, 2, NULL, NULL, &__pyx_slice__12, 0, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 224, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if ((likely(PyTuple_CheckExact(__pyx_t_9))) || (PyList_CheckExact(__pyx_t_9))) { @@ -32198,7 +32162,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(5, 221, __pyx_L55_error) + __PYX_ERR(5, 224, __pyx_L55_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -32211,15 +32175,15 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_INCREF(__pyx_t_8); __Pyx_INCREF(__pyx_t_19); #else - __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 221, __pyx_L55_error) + __pyx_t_8 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 224, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_19 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 221, __pyx_L55_error) + __pyx_t_19 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 224, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_19); #endif __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; } else { Py_ssize_t index = -1; - __pyx_t_18 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 221, __pyx_L55_error) + __pyx_t_18 = PyObject_GetIter(__pyx_t_9); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 224, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_29 = Py_TYPE(__pyx_t_18)->tp_iternext; @@ -32227,7 +32191,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GOTREF(__pyx_t_8); index = 1; __pyx_t_19 = __pyx_t_29(__pyx_t_18); if (unlikely(!__pyx_t_19)) goto __pyx_L57_unpacking_failed; __Pyx_GOTREF(__pyx_t_19); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_29(__pyx_t_18), 2) < 0) __PYX_ERR(5, 221, __pyx_L55_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_29(__pyx_t_18), 2) < 0) __PYX_ERR(5, 224, __pyx_L55_error) __pyx_t_29 = NULL; __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; goto __pyx_L58_unpacking_done; @@ -32235,7 +32199,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; __pyx_t_29 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(5, 221, __pyx_L55_error) + __PYX_ERR(5, 224, __pyx_L55_error) __pyx_L58_unpacking_done:; } __pyx_v_exctype = __pyx_t_8; @@ -32243,24 +32207,24 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_19); __pyx_t_19 = 0; - /* "src/pyrfc/server.pyx":222 + /* "src/pyrfc/server.pyx":225 * except Exception as ex: * exctype, value = exc_info()[:2] * _server_log( # <<<<<<<<<<<<<< * "genericHandler", * f"Request for '{func_name}' raises an invalid exception:\n Exception: {exctype}\n Values: {value}\n" */ - __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_server_log); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 222, __pyx_L55_error) + __Pyx_GetModuleGlobalName(__pyx_t_19, __pyx_n_s_server_log); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 225, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_19); - /* "src/pyrfc/server.pyx":224 + /* "src/pyrfc/server.pyx":227 * _server_log( * "genericHandler", * f"Request for '{func_name}' raises an invalid exception:\n Exception: {exctype}\n Values: {value}\n" # <<<<<<<<<<<<<< * "Callback functions may only raise ABAPApplicationError, ABAPRuntimeError, or ExternalRuntimeError.\n" * "The values of the request were:\n" */ - __pyx_t_8 = PyTuple_New(10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 224, __pyx_L55_error) + __pyx_t_8 = PyTuple_New(10); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 227, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_15 = 0; __pyx_t_5 = 127; @@ -32268,7 +32232,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 13; __Pyx_GIVEREF(__pyx_kp_u_Request_for); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_kp_u_Request_for); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 224, __pyx_L55_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 227, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32279,7 +32243,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 43; __Pyx_GIVEREF(__pyx_kp_u_raises_an_invalid_exception_Exc); PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_kp_u_raises_an_invalid_exception_Exc); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_exctype, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 224, __pyx_L55_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_exctype, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 227, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32290,7 +32254,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 10; __Pyx_GIVEREF(__pyx_kp_u_Values); PyTuple_SET_ITEM(__pyx_t_8, 4, __pyx_kp_u_Values); - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 224, __pyx_L55_error) + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 227, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32302,15 +32266,15 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_kp_u_Callback_functions_may_only_rai); PyTuple_SET_ITEM(__pyx_t_8, 6, __pyx_kp_u_Callback_functions_may_only_rai); - /* "src/pyrfc/server.pyx":227 + /* "src/pyrfc/server.pyx":230 * "Callback functions may only raise ABAPApplicationError, ABAPRuntimeError, or ExternalRuntimeError.\n" * "The values of the request were:\n" * f"params: {func_handle_variables}\nrequest_context: {request_context}" # <<<<<<<<<<<<<< * ) * new_error = ExternalRuntimeError( */ - if (unlikely(!__pyx_v_func_handle_variables)) { __Pyx_RaiseUnboundLocalError("func_handle_variables"); __PYX_ERR(5, 227, __pyx_L55_error) } - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_handle_variables, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 227, __pyx_L55_error) + if (unlikely(!__pyx_v_func_handle_variables)) { __Pyx_RaiseUnboundLocalError("func_handle_variables"); __PYX_ERR(5, 230, __pyx_L55_error) } + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_func_handle_variables, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 230, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32321,8 +32285,8 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_t_15 += 18; __Pyx_GIVEREF(__pyx_kp_u_request_context_2); PyTuple_SET_ITEM(__pyx_t_8, 8, __pyx_kp_u_request_context_2); - if (unlikely(!__pyx_v_request_context)) { __Pyx_RaiseUnboundLocalError("request_context"); __PYX_ERR(5, 227, __pyx_L55_error) } - __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_request_context, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 227, __pyx_L55_error) + if (unlikely(!__pyx_v_request_context)) { __Pyx_RaiseUnboundLocalError("request_context"); __PYX_ERR(5, 230, __pyx_L55_error) } + __pyx_t_18 = __Pyx_PyObject_FormatSimple(__pyx_v_request_context, __pyx_empty_unicode); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 230, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_18) : __pyx_t_5; __pyx_t_15 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_18); @@ -32330,14 +32294,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ PyTuple_SET_ITEM(__pyx_t_8, 9, __pyx_t_18); __pyx_t_18 = 0; - /* "src/pyrfc/server.pyx":224 + /* "src/pyrfc/server.pyx":227 * _server_log( * "genericHandler", * f"Request for '{func_name}' raises an invalid exception:\n Exception: {exctype}\n Values: {value}\n" # <<<<<<<<<<<<<< * "Callback functions may only raise ABAPApplicationError, ABAPRuntimeError, or ExternalRuntimeError.\n" * "The values of the request were:\n" */ - __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_8, 10, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 224, __pyx_L55_error) + __pyx_t_18 = __Pyx_PyUnicode_Join(__pyx_t_8, 10, __pyx_t_15, __pyx_t_5); if (unlikely(!__pyx_t_18)) __PYX_ERR(5, 227, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_18); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_8 = NULL; @@ -32355,7 +32319,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_19)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_19, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 222, __pyx_L55_error) + __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_19, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 225, __pyx_L55_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; @@ -32364,14 +32328,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_19)) { PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_n_s_genericHandler, __pyx_t_18}; - __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_19, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 222, __pyx_L55_error) + __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_19, __pyx_temp+1-__pyx_t_16, 2+__pyx_t_16); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 225, __pyx_L55_error) __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0; } else #endif { - __pyx_t_17 = PyTuple_New(2+__pyx_t_16); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 222, __pyx_L55_error) + __pyx_t_17 = PyTuple_New(2+__pyx_t_16); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 225, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_17); if (__pyx_t_8) { __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_8); __pyx_t_8 = NULL; @@ -32382,72 +32346,72 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __Pyx_GIVEREF(__pyx_t_18); PyTuple_SET_ITEM(__pyx_t_17, 1+__pyx_t_16, __pyx_t_18); __pyx_t_18 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_19, __pyx_t_17, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 222, __pyx_L55_error) + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_19, __pyx_t_17, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 225, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; } __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":229 + /* "src/pyrfc/server.pyx":232 * f"params: {func_handle_variables}\nrequest_context: {request_context}" * ) * new_error = ExternalRuntimeError( # <<<<<<<<<<<<<< * message="Invalid exception raised by callback function.", * code=RFC_EXTERNAL_FAILURE */ - __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 229, __pyx_L55_error) + __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ExternalRuntimeError); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 232, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_9); - /* "src/pyrfc/server.pyx":230 + /* "src/pyrfc/server.pyx":233 * ) * new_error = ExternalRuntimeError( * message="Invalid exception raised by callback function.", # <<<<<<<<<<<<<< * code=RFC_EXTERNAL_FAILURE * ) */ - __pyx_t_19 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 230, __pyx_L55_error) + __pyx_t_19 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_19)) __PYX_ERR(5, 233, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_19); - if (PyDict_SetItem(__pyx_t_19, __pyx_n_s_message, __pyx_kp_s_Invalid_exception_raised_by_call) < 0) __PYX_ERR(5, 230, __pyx_L55_error) + if (PyDict_SetItem(__pyx_t_19, __pyx_n_s_message, __pyx_kp_s_Invalid_exception_raised_by_call) < 0) __PYX_ERR(5, 233, __pyx_L55_error) - /* "src/pyrfc/server.pyx":231 + /* "src/pyrfc/server.pyx":234 * new_error = ExternalRuntimeError( * message="Invalid exception raised by callback function.", * code=RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< * ) * fillError(new_error, serverErrorInfo) */ - __pyx_t_17 = __Pyx_PyInt_From_RFC_RC(RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 231, __pyx_L55_error) + __pyx_t_17 = __Pyx_PyInt_From_RFC_RC(RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 234, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_17); - if (PyDict_SetItem(__pyx_t_19, __pyx_n_s_code, __pyx_t_17) < 0) __PYX_ERR(5, 230, __pyx_L55_error) + if (PyDict_SetItem(__pyx_t_19, __pyx_n_s_code, __pyx_t_17) < 0) __PYX_ERR(5, 233, __pyx_L55_error) __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - /* "src/pyrfc/server.pyx":229 + /* "src/pyrfc/server.pyx":232 * f"params: {func_handle_variables}\nrequest_context: {request_context}" * ) * new_error = ExternalRuntimeError( # <<<<<<<<<<<<<< * message="Invalid exception raised by callback function.", * code=RFC_EXTERNAL_FAILURE */ - __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_empty_tuple, __pyx_t_19); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 229, __pyx_L55_error) + __pyx_t_17 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_empty_tuple, __pyx_t_19); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 232, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0; __Pyx_XDECREF_SET(__pyx_v_new_error, __pyx_t_17); __pyx_t_17 = 0; - /* "src/pyrfc/server.pyx":233 + /* "src/pyrfc/server.pyx":236 * code=RFC_EXTERNAL_FAILURE * ) * fillError(new_error, serverErrorInfo) # <<<<<<<<<<<<<< * return RFC_EXTERNAL_FAILURE * */ - __pyx_t_17 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_new_error, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 233, __pyx_L55_error) + __pyx_t_17 = __pyx_f_5pyrfc_6_cyrfc_fillError(__pyx_v_new_error, __pyx_v_serverErrorInfo); if (unlikely(!__pyx_t_17)) __PYX_ERR(5, 236, __pyx_L55_error) __Pyx_GOTREF(__pyx_t_17); __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0; - /* "src/pyrfc/server.pyx":234 + /* "src/pyrfc/server.pyx":237 * ) * fillError(new_error, serverErrorInfo) * return RFC_EXTERNAL_FAILURE # <<<<<<<<<<<<<< @@ -32461,7 +32425,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ goto __pyx_L54_return; } - /* "src/pyrfc/server.pyx":220 + /* "src/pyrfc/server.pyx":223 * _server_log("genericHandler", f"Request for '{func_name}' raises ABAPApplicationError {e} - code set to RFC_ABAP_EXCEPTION.") * return RFC_ABAP_EXCEPTION * except Exception as ex: # <<<<<<<<<<<<<< @@ -32518,7 +32482,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ goto __pyx_L7_except_error; __pyx_L7_except_error:; - /* "src/pyrfc/server.pyx":153 + /* "src/pyrfc/server.pyx":156 * # func_desc = func_data['func_desc_handle'] * * try: # <<<<<<<<<<<<<< @@ -32545,7 +32509,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_L10_try_end:; } - /* "src/pyrfc/server.pyx":236 + /* "src/pyrfc/server.pyx":239 * return RFC_EXTERNAL_FAILURE * * return RFC_OK # <<<<<<<<<<<<<< @@ -32555,7 +32519,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ __pyx_r = RFC_OK; goto __pyx_L0; - /* "src/pyrfc/server.pyx":120 + /* "src/pyrfc/server.pyx":123 * return server_context * * cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE funcHandle, RFC_ERROR_INFO* serverErrorInfo) with gil: # <<<<<<<<<<<<<< @@ -32600,262 +32564,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_genericHandler(RFC_CONNECTION_HANDLE __pyx_ return __pyx_r; } -/* "src/pyrfc/server.pyx":241 - * class BasicServer(BaseHTTPRequestHandler): - * # TODO: management-console - * def _set_response(self): # <<<<<<<<<<<<<< - * self.send_response(200) - * self.send_header('Content-type', 'text/html') - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5pyrfc_6_cyrfc_11BasicServer_1_set_response(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5pyrfc_6_cyrfc_11BasicServer_1_set_response = {"_set_response", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_11BasicServer_1_set_response, METH_O, 0}; -static PyObject *__pyx_pw_5pyrfc_6_cyrfc_11BasicServer_1_set_response(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_set_response (wrapper)", 0); - __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_11BasicServer__set_response(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5pyrfc_6_cyrfc_11BasicServer__set_response(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_set_response", 0); - - /* "src/pyrfc/server.pyx":242 - * # TODO: management-console - * def _set_response(self): - * self.send_response(200) # <<<<<<<<<<<<<< - * self.send_header('Content-type', 'text/html') - * self.end_headers() - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_send_response); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_200) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_200); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "src/pyrfc/server.pyx":243 - * def _set_response(self): - * self.send_response(200) - * self.send_header('Content-type', 'text/html') # <<<<<<<<<<<<<< - * self.end_headers() - * - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_send_header); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "src/pyrfc/server.pyx":244 - * self.send_response(200) - * self.send_header('Content-type', 'text/html') - * self.end_headers() # <<<<<<<<<<<<<< - * - * def do_GET(self): - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_end_headers); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_1, function); - } - } - __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "src/pyrfc/server.pyx":241 - * class BasicServer(BaseHTTPRequestHandler): - * # TODO: management-console - * def _set_response(self): # <<<<<<<<<<<<<< - * self.send_response(200) - * self.send_header('Content-type', 'text/html') - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("pyrfc._cyrfc.BasicServer._set_response", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "src/pyrfc/server.pyx":246 - * self.end_headers() - * - * def do_GET(self): # <<<<<<<<<<<<<< - * # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - * self._set_response() - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5pyrfc_6_cyrfc_11BasicServer_3do_GET(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5pyrfc_6_cyrfc_11BasicServer_3do_GET = {"do_GET", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_11BasicServer_3do_GET, METH_O, 0}; -static PyObject *__pyx_pw_5pyrfc_6_cyrfc_11BasicServer_3do_GET(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("do_GET (wrapper)", 0); - __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_11BasicServer_2do_GET(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5pyrfc_6_cyrfc_11BasicServer_2do_GET(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("do_GET", 0); - - /* "src/pyrfc/server.pyx":248 - * def do_GET(self): - * # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - * self._set_response() # <<<<<<<<<<<<<< - * self.wfile.write("Press CTRL-C to end".encode("utf-8")) - * - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_response); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 248, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 248, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "src/pyrfc/server.pyx":249 - * # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - * self._set_response() - * self.wfile.write("Press CTRL-C to end".encode("utf-8")) # <<<<<<<<<<<<<< - * - * - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_wfile); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_write); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_Press_CTRL_C_to_end, __pyx_n_s_encode); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_5); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); - } - } - __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_utf_8) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_utf_8); - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = NULL; - if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "src/pyrfc/server.pyx":246 - * self.end_headers() - * - * def do_GET(self): # <<<<<<<<<<<<<< - * # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - * self._set_response() - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("pyrfc._cyrfc.BasicServer.do_GET", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "src/pyrfc/server.pyx":298 +/* "src/pyrfc/server.pyx":288 * } * * def __cinit__(self, server_params, client_params, config={}): # <<<<<<<<<<<<<< @@ -32878,7 +32587,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_6Server_1__cinit__(PyObject *__pyx_v_self, Py { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_server_params,&__pyx_n_s_client_params,&__pyx_n_s_config,0}; PyObject* values[3] = {0,0,0}; - values[2] = __pyx_k__44; + values[2] = __pyx_k__43; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); @@ -32901,7 +32610,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_6Server_1__cinit__(PyObject *__pyx_v_self, Py case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_client_params)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, 1); __PYX_ERR(5, 298, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, 1); __PYX_ERR(5, 288, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: @@ -32911,7 +32620,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_6Server_1__cinit__(PyObject *__pyx_v_self, Py } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(5, 298, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(5, 288, __pyx_L3_error) } } else { switch (PyTuple_GET_SIZE(__pyx_args)) { @@ -32929,7 +32638,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_6Server_1__cinit__(PyObject *__pyx_v_self, Py } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(5, 298, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(5, 288, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Server.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -32957,66 +32666,66 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__cinit__", 0); - /* "src/pyrfc/server.pyx":302 + /* "src/pyrfc/server.pyx":292 * * # config parsing * self.debug = config.get('debug', False) # <<<<<<<<<<<<<< * self.rstrip = config.get('rstrip', True) * server_context["server_log"] = config.get("server_log", False) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 302, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 302, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 292, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 302, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 292, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_v_self->debug = __pyx_t_3; - /* "src/pyrfc/server.pyx":303 + /* "src/pyrfc/server.pyx":293 * # config parsing * self.debug = config.get('debug', False) * self.rstrip = config.get('rstrip', True) # <<<<<<<<<<<<<< * server_context["server_log"] = config.get("server_log", False) * server_context["auth_check"] = config.get("auth_check", default_auth_check) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 303, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 303, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 293, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 303, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 293, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_self->rstrip = __pyx_t_3; - /* "src/pyrfc/server.pyx":304 + /* "src/pyrfc/server.pyx":294 * self.debug = config.get('debug', False) * self.rstrip = config.get('rstrip', True) * server_context["server_log"] = config.get("server_log", False) # <<<<<<<<<<<<<< * server_context["auth_check"] = config.get("auth_check", default_auth_check) * server_context["port"] = config.get("port", 8080) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 304, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 304, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_context); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 304, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_context); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 294, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_s_server_log_2, __pyx_t_2) < 0)) __PYX_ERR(5, 304, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_s_server_log_2, __pyx_t_2) < 0)) __PYX_ERR(5, 294, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":305 + /* "src/pyrfc/server.pyx":295 * self.rstrip = config.get('rstrip', True) * server_context["server_log"] = config.get("server_log", False) * server_context["auth_check"] = config.get("auth_check", default_auth_check) # <<<<<<<<<<<<<< * server_context["port"] = config.get("port", 8080) * */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 305, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_default_auth_check); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 305, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_default_auth_check); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; @@ -33033,7 +32742,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_n_s_auth_check, __pyx_t_4}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 305, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -33042,14 +32751,14 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) { PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_n_s_auth_check, __pyx_t_4}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 305, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; } else #endif { - __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 305, __pyx_L1_error) + __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); if (__pyx_t_5) { __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL; @@ -33060,36 +32769,36 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_t_4); __pyx_t_4 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 305, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_context); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 305, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_context); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_s_auth_check, __pyx_t_2) < 0)) __PYX_ERR(5, 305, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_s_auth_check, __pyx_t_2) < 0)) __PYX_ERR(5, 295, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":306 + /* "src/pyrfc/server.pyx":296 * server_context["server_log"] = config.get("server_log", False) * server_context["auth_check"] = config.get("auth_check", default_auth_check) * server_context["port"] = config.get("port", 8080) # <<<<<<<<<<<<<< * * self._client_connection = Connection(**client_params) */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 306, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_config, __pyx_n_s_get); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 306, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_server_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 306, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_server_context); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_s_port, __pyx_t_1) < 0)) __PYX_ERR(5, 306, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_s_port, __pyx_t_1) < 0)) __PYX_ERR(5, 296, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":308 + /* "src/pyrfc/server.pyx":298 * server_context["port"] = config.get("port", 8080) * * self._client_connection = Connection(**client_params) # <<<<<<<<<<<<<< @@ -33098,16 +32807,16 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c */ if (unlikely(__pyx_v_client_params == Py_None)) { PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType"); - __PYX_ERR(5, 308, __pyx_L1_error) + __PYX_ERR(5, 298, __pyx_L1_error) } if (likely(PyDict_CheckExact(__pyx_v_client_params))) { - __pyx_t_1 = PyDict_Copy(__pyx_v_client_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 308, __pyx_L1_error) + __pyx_t_1 = PyDict_Copy(__pyx_v_client_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } else { - __pyx_t_1 = PyObject_CallFunctionObjArgs((PyObject*)&PyDict_Type, __pyx_v_client_params, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 308, __pyx_L1_error) + __pyx_t_1 = PyObject_CallFunctionObjArgs((PyObject*)&PyDict_Type, __pyx_v_client_params, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); } - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Connection), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 308, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Connection), __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 298, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_GIVEREF(__pyx_t_2); @@ -33116,7 +32825,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c __pyx_v_self->_client_connection = ((struct __pyx_obj_5pyrfc_6_cyrfc_Connection *)__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":309 + /* "src/pyrfc/server.pyx":299 * * self._client_connection = Connection(**client_params) * self._server_connection = ServerConnection(**server_params) # <<<<<<<<<<<<<< @@ -33125,16 +32834,16 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c */ if (unlikely(__pyx_v_server_params == Py_None)) { PyErr_SetString(PyExc_TypeError, "argument after ** must be a mapping, not NoneType"); - __PYX_ERR(5, 309, __pyx_L1_error) + __PYX_ERR(5, 299, __pyx_L1_error) } if (likely(PyDict_CheckExact(__pyx_v_server_params))) { - __pyx_t_2 = PyDict_Copy(__pyx_v_server_params); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 309, __pyx_L1_error) + __pyx_t_2 = PyDict_Copy(__pyx_v_server_params); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } else { - __pyx_t_2 = PyObject_CallFunctionObjArgs((PyObject*)&PyDict_Type, __pyx_v_server_params, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 309, __pyx_L1_error) + __pyx_t_2 = PyObject_CallFunctionObjArgs((PyObject*)&PyDict_Type, __pyx_v_server_params, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); } - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_ServerConnection), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 309, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_ServerConnection), __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 299, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_GIVEREF(__pyx_t_1); @@ -33143,22 +32852,22 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c __pyx_v_self->_server_connection = ((struct __pyx_obj_5pyrfc_6_cyrfc_ServerConnection *)__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":310 + /* "src/pyrfc/server.pyx":300 * self._client_connection = Connection(**client_params) * self._server_connection = ServerConnection(**server_params) * self._server_thread=Thread(target=self.serve) # <<<<<<<<<<<<<< * * @staticmethod */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Thread); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 310, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Thread); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 310, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_serve); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 310, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_serve); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_target, __pyx_t_7) < 0) __PYX_ERR(5, 310, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_target, __pyx_t_7) < 0) __PYX_ERR(5, 300, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 310, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 300, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -33168,7 +32877,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c __pyx_v_self->_server_thread = __pyx_t_7; __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":298 + /* "src/pyrfc/server.pyx":288 * } * * def __cinit__(self, server_params, client_params, config={}): # <<<<<<<<<<<<<< @@ -33192,7 +32901,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server___cinit__(struct __pyx_obj_5pyrfc_6_c return __pyx_r; } -/* "src/pyrfc/server.pyx":313 +/* "src/pyrfc/server.pyx":303 * * @staticmethod * cdef RFC_RC __onCheckFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -33236,22 +32945,22 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA #endif __Pyx_RefNannySetupContext("__onCheckFunction", 0); - /* "src/pyrfc/server.pyx":314 + /* "src/pyrfc/server.pyx":304 * @staticmethod * cdef RFC_RC __onCheckFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["check"] # <<<<<<<<<<<<<< * if handler is None: * return RCStatus.OK.value */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 314, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_check); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 314, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_check); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 304, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handler = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":315 + /* "src/pyrfc/server.pyx":305 * cdef RFC_RC __onCheckFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["check"] * if handler is None: # <<<<<<<<<<<<<< @@ -33262,27 +32971,27 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":316 + /* "src/pyrfc/server.pyx":306 * handler = Server.__bgRfcFunction["check"] * if handler is None: * return RCStatus.OK.value # <<<<<<<<<<<<<< * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 316, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 316, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 316, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 306, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 316, __pyx_L1_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 306, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; goto __pyx_L0; - /* "src/pyrfc/server.pyx":315 + /* "src/pyrfc/server.pyx":305 * cdef RFC_RC __onCheckFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["check"] * if handler is None: # <<<<<<<<<<<<<< @@ -33291,7 +33000,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA */ } - /* "src/pyrfc/server.pyx":317 + /* "src/pyrfc/server.pyx":307 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -33307,26 +33016,26 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "src/pyrfc/server.pyx":318 + /* "src/pyrfc/server.pyx":308 * return RCStatus.OK.value * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) # <<<<<<<<<<<<<< * return handler(rfcHandle, unit_identifier).value * except Exception as ex: */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 318, __pyx_L4_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 308, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_unit_identifier = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":319 + /* "src/pyrfc/server.pyx":309 * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value # <<<<<<<<<<<<<< * except Exception as ex: * _server_log("Error in bgRFC handler onCheck:", ex) */ - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_handler); __pyx_t_9 = __pyx_v_handler; __pyx_t_10 = NULL; @@ -33344,7 +33053,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -33353,14 +33062,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -33371,20 +33080,20 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __Pyx_GIVEREF(__pyx_v_unit_identifier); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_v_unit_identifier); __pyx_t_1 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 319, __pyx_L4_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 309, __pyx_L4_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_5; goto __pyx_L8_try_return; - /* "src/pyrfc/server.pyx":317 + /* "src/pyrfc/server.pyx":307 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -33399,7 +33108,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":320 + /* "src/pyrfc/server.pyx":310 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -33409,7 +33118,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("pyrfc._cyrfc.Server.__onCheckFunction", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 320, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 310, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_12); @@ -33417,14 +33126,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __pyx_v_ex = __pyx_t_2; /*try:*/ { - /* "src/pyrfc/server.pyx":321 + /* "src/pyrfc/server.pyx":311 * return handler(rfcHandle, unit_identifier).value * except Exception as ex: * _server_log("Error in bgRFC handler onCheck:", ex) # <<<<<<<<<<<<<< * return RCStatus.RFC_EXTERNAL_FAILURE.value * */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 321, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 311, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_13 = NULL; __pyx_t_11 = 0; @@ -33441,7 +33150,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onCheck, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 321, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 311, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -33449,13 +33158,13 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onCheck, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 321, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 311, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 321, __pyx_L15_error) + __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 311, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_14); if (__pyx_t_13) { __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; @@ -33466,29 +33175,29 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA __Pyx_INCREF(__pyx_v_ex); __Pyx_GIVEREF(__pyx_v_ex); PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_v_ex); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 321, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 311, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":322 + /* "src/pyrfc/server.pyx":312 * except Exception as ex: * _server_log("Error in bgRFC handler onCheck:", ex) * return RCStatus.RFC_EXTERNAL_FAILURE.value # <<<<<<<<<<<<<< * * @staticmethod */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 322, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 312, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 322, __pyx_L15_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 312, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 322, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 312, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 322, __pyx_L15_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 312, __pyx_L15_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -33497,7 +33206,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA goto __pyx_L14_return; } - /* "src/pyrfc/server.pyx":320 + /* "src/pyrfc/server.pyx":310 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -33553,7 +33262,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "src/pyrfc/server.pyx":317 + /* "src/pyrfc/server.pyx":307 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -33579,7 +33288,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA goto __pyx_L0; } - /* "src/pyrfc/server.pyx":313 + /* "src/pyrfc/server.pyx":303 * * @staticmethod * cdef RFC_RC __onCheckFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -33609,7 +33318,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction(RFC_CONNECTION_HA return __pyx_r; } -/* "src/pyrfc/server.pyx":325 +/* "src/pyrfc/server.pyx":315 * * @staticmethod * cdef RFC_RC __onCommitFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -33653,22 +33362,22 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H #endif __Pyx_RefNannySetupContext("__onCommitFunction", 0); - /* "src/pyrfc/server.pyx":326 + /* "src/pyrfc/server.pyx":316 * @staticmethod * cdef RFC_RC __onCommitFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["commit"] # <<<<<<<<<<<<<< * if handler is None: * return RCStatus.OK.value */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 326, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_commit); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 326, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_commit); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 316, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handler = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":327 + /* "src/pyrfc/server.pyx":317 * cdef RFC_RC __onCommitFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["commit"] * if handler is None: # <<<<<<<<<<<<<< @@ -33679,27 +33388,27 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":328 + /* "src/pyrfc/server.pyx":318 * handler = Server.__bgRfcFunction["commit"] * if handler is None: * return RCStatus.OK.value # <<<<<<<<<<<<<< * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 328, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 328, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 328, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 318, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 328, __pyx_L1_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 318, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; goto __pyx_L0; - /* "src/pyrfc/server.pyx":327 + /* "src/pyrfc/server.pyx":317 * cdef RFC_RC __onCommitFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["commit"] * if handler is None: # <<<<<<<<<<<<<< @@ -33708,7 +33417,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H */ } - /* "src/pyrfc/server.pyx":329 + /* "src/pyrfc/server.pyx":319 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -33724,26 +33433,26 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "src/pyrfc/server.pyx":330 + /* "src/pyrfc/server.pyx":320 * return RCStatus.OK.value * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) # <<<<<<<<<<<<<< * return handler(rfcHandle, unit_identifier).value * except Exception as ex: */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 330, __pyx_L4_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 320, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_unit_identifier = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":331 + /* "src/pyrfc/server.pyx":321 * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value # <<<<<<<<<<<<<< * except Exception as ex: * _server_log("Error in bgRFC handler onCommit:", ex) */ - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_handler); __pyx_t_9 = __pyx_v_handler; __pyx_t_10 = NULL; @@ -33761,7 +33470,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -33770,14 +33479,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -33788,20 +33497,20 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __Pyx_GIVEREF(__pyx_v_unit_identifier); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_v_unit_identifier); __pyx_t_1 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 331, __pyx_L4_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 321, __pyx_L4_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_5; goto __pyx_L8_try_return; - /* "src/pyrfc/server.pyx":329 + /* "src/pyrfc/server.pyx":319 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -33816,7 +33525,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":332 + /* "src/pyrfc/server.pyx":322 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -33826,7 +33535,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("pyrfc._cyrfc.Server.__onCommitFunction", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 332, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 322, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_12); @@ -33834,14 +33543,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __pyx_v_ex = __pyx_t_2; /*try:*/ { - /* "src/pyrfc/server.pyx":333 + /* "src/pyrfc/server.pyx":323 * return handler(rfcHandle, unit_identifier).value * except Exception as ex: * _server_log("Error in bgRFC handler onCommit:", ex) # <<<<<<<<<<<<<< * return RCStatus.RFC_EXTERNAL_FAILURE.value * */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 333, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 323, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_13 = NULL; __pyx_t_11 = 0; @@ -33858,7 +33567,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onCommit, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 333, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 323, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -33866,13 +33575,13 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onCommit, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 333, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 323, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 333, __pyx_L15_error) + __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 323, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_14); if (__pyx_t_13) { __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; @@ -33883,29 +33592,29 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H __Pyx_INCREF(__pyx_v_ex); __Pyx_GIVEREF(__pyx_v_ex); PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_v_ex); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 333, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 323, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":334 + /* "src/pyrfc/server.pyx":324 * except Exception as ex: * _server_log("Error in bgRFC handler onCommit:", ex) * return RCStatus.RFC_EXTERNAL_FAILURE.value # <<<<<<<<<<<<<< * * @staticmethod */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 334, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 324, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 334, __pyx_L15_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 324, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 334, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 324, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 334, __pyx_L15_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 324, __pyx_L15_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -33914,7 +33623,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H goto __pyx_L14_return; } - /* "src/pyrfc/server.pyx":332 + /* "src/pyrfc/server.pyx":322 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -33970,7 +33679,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "src/pyrfc/server.pyx":329 + /* "src/pyrfc/server.pyx":319 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -33996,7 +33705,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H goto __pyx_L0; } - /* "src/pyrfc/server.pyx":325 + /* "src/pyrfc/server.pyx":315 * * @staticmethod * cdef RFC_RC __onCommitFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -34026,7 +33735,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction(RFC_CONNECTION_H return __pyx_r; } -/* "src/pyrfc/server.pyx":337 +/* "src/pyrfc/server.pyx":327 * * @staticmethod * cdef RFC_RC __onRollbackFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -34070,22 +33779,22 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION #endif __Pyx_RefNannySetupContext("__onRollbackFunction", 0); - /* "src/pyrfc/server.pyx":338 + /* "src/pyrfc/server.pyx":328 * @staticmethod * cdef RFC_RC __onRollbackFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["rollback"] # <<<<<<<<<<<<<< * if handler is None: * return RCStatus.OK.value */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 338, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_rollback); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 338, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_rollback); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 328, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handler = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":339 + /* "src/pyrfc/server.pyx":329 * cdef RFC_RC __onRollbackFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["rollback"] * if handler is None: # <<<<<<<<<<<<<< @@ -34096,27 +33805,27 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":340 + /* "src/pyrfc/server.pyx":330 * handler = Server.__bgRfcFunction["rollback"] * if handler is None: * return RCStatus.OK.value # <<<<<<<<<<<<<< * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 340, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 340, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 340, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 340, __pyx_L1_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 330, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; goto __pyx_L0; - /* "src/pyrfc/server.pyx":339 + /* "src/pyrfc/server.pyx":329 * cdef RFC_RC __onRollbackFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["rollback"] * if handler is None: # <<<<<<<<<<<<<< @@ -34125,7 +33834,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION */ } - /* "src/pyrfc/server.pyx":341 + /* "src/pyrfc/server.pyx":331 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -34141,26 +33850,26 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "src/pyrfc/server.pyx":342 + /* "src/pyrfc/server.pyx":332 * return RCStatus.OK.value * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) # <<<<<<<<<<<<<< * return handler(rfcHandle, unit_identifier).value * except Exception as ex: */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 342, __pyx_L4_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 332, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_unit_identifier = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":343 + /* "src/pyrfc/server.pyx":333 * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value # <<<<<<<<<<<<<< * except Exception as ex: * _server_log("Error in bgRFC handler onRollback:", ex) */ - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_handler); __pyx_t_9 = __pyx_v_handler; __pyx_t_10 = NULL; @@ -34178,7 +33887,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -34187,14 +33896,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -34205,20 +33914,20 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __Pyx_GIVEREF(__pyx_v_unit_identifier); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_v_unit_identifier); __pyx_t_1 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 343, __pyx_L4_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 333, __pyx_L4_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_5; goto __pyx_L8_try_return; - /* "src/pyrfc/server.pyx":341 + /* "src/pyrfc/server.pyx":331 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -34233,7 +33942,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":344 + /* "src/pyrfc/server.pyx":334 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -34243,7 +33952,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("pyrfc._cyrfc.Server.__onRollbackFunction", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 344, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 334, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_12); @@ -34251,14 +33960,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __pyx_v_ex = __pyx_t_2; /*try:*/ { - /* "src/pyrfc/server.pyx":345 + /* "src/pyrfc/server.pyx":335 * return handler(rfcHandle, unit_identifier).value * except Exception as ex: * _server_log("Error in bgRFC handler onRollback:", ex) # <<<<<<<<<<<<<< * return RCStatus.RFC_EXTERNAL_FAILURE.value * */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 345, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 335, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_13 = NULL; __pyx_t_11 = 0; @@ -34275,7 +33984,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onRollbac, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 345, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 335, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -34283,13 +33992,13 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onRollbac, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 345, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 335, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 345, __pyx_L15_error) + __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 335, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_14); if (__pyx_t_13) { __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; @@ -34300,29 +34009,29 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION __Pyx_INCREF(__pyx_v_ex); __Pyx_GIVEREF(__pyx_v_ex); PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_v_ex); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 345, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 335, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":346 + /* "src/pyrfc/server.pyx":336 * except Exception as ex: * _server_log("Error in bgRFC handler onRollback:", ex) * return RCStatus.RFC_EXTERNAL_FAILURE.value # <<<<<<<<<<<<<< * * @staticmethod */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 346, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 336, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 346, __pyx_L15_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 336, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 346, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 336, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 346, __pyx_L15_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 336, __pyx_L15_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -34331,7 +34040,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION goto __pyx_L14_return; } - /* "src/pyrfc/server.pyx":344 + /* "src/pyrfc/server.pyx":334 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -34387,7 +34096,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "src/pyrfc/server.pyx":341 + /* "src/pyrfc/server.pyx":331 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -34413,7 +34122,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION goto __pyx_L0; } - /* "src/pyrfc/server.pyx":337 + /* "src/pyrfc/server.pyx":327 * * @staticmethod * cdef RFC_RC __onRollbackFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -34443,7 +34152,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction(RFC_CONNECTION return __pyx_r; } -/* "src/pyrfc/server.pyx":349 +/* "src/pyrfc/server.pyx":339 * * @staticmethod * cdef RFC_RC __onConfirmFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -34487,22 +34196,22 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ #endif __Pyx_RefNannySetupContext("__onConfirmFunction", 0); - /* "src/pyrfc/server.pyx":350 + /* "src/pyrfc/server.pyx":340 * @staticmethod * cdef RFC_RC __onConfirmFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["confirm"] # <<<<<<<<<<<<<< * if handler is None: * return RCStatus.OK.value */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 350, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_confirm); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 350, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_confirm); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 340, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handler = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":351 + /* "src/pyrfc/server.pyx":341 * cdef RFC_RC __onConfirmFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["confirm"] * if handler is None: # <<<<<<<<<<<<<< @@ -34513,27 +34222,27 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":352 + /* "src/pyrfc/server.pyx":342 * handler = Server.__bgRfcFunction["confirm"] * if handler is None: * return RCStatus.OK.value # <<<<<<<<<<<<<< * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 352, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 352, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 352, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 342, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 352, __pyx_L1_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 342, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_5; goto __pyx_L0; - /* "src/pyrfc/server.pyx":351 + /* "src/pyrfc/server.pyx":341 * cdef RFC_RC __onConfirmFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: * handler = Server.__bgRfcFunction["confirm"] * if handler is None: # <<<<<<<<<<<<<< @@ -34542,7 +34251,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ */ } - /* "src/pyrfc/server.pyx":353 + /* "src/pyrfc/server.pyx":343 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -34558,26 +34267,26 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "src/pyrfc/server.pyx":354 + /* "src/pyrfc/server.pyx":344 * return RCStatus.OK.value * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) # <<<<<<<<<<<<<< * return handler(rfcHandle, unit_identifier).value * except Exception as ex: */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 354, __pyx_L4_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 344, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_unit_identifier = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":355 + /* "src/pyrfc/server.pyx":345 * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value # <<<<<<<<<<<<<< * except Exception as ex: * _server_log("Error in bgRFC handler onConfirm:", ex) */ - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_handler); __pyx_t_9 = __pyx_v_handler; __pyx_t_10 = NULL; @@ -34595,7 +34304,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -34604,14 +34313,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -34622,20 +34331,20 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __Pyx_GIVEREF(__pyx_v_unit_identifier); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_v_unit_identifier); __pyx_t_1 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 355, __pyx_L4_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 345, __pyx_L4_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_r = __pyx_t_5; goto __pyx_L8_try_return; - /* "src/pyrfc/server.pyx":353 + /* "src/pyrfc/server.pyx":343 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -34650,7 +34359,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":356 + /* "src/pyrfc/server.pyx":346 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -34660,7 +34369,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("pyrfc._cyrfc.Server.__onConfirmFunction", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 356, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_2, &__pyx_t_12) < 0) __PYX_ERR(5, 346, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_12); @@ -34668,14 +34377,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __pyx_v_ex = __pyx_t_2; /*try:*/ { - /* "src/pyrfc/server.pyx":357 + /* "src/pyrfc/server.pyx":347 * return handler(rfcHandle, unit_identifier).value * except Exception as ex: * _server_log("Error in bgRFC handler onConfirm:", ex) # <<<<<<<<<<<<<< * return RCStatus.RFC_EXTERNAL_FAILURE.value * */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 357, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 347, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_13 = NULL; __pyx_t_11 = 0; @@ -34692,7 +34401,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onConfirm, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 357, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 347, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -34700,13 +34409,13 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_13, __pyx_kp_s_Error_in_bgRFC_handler_onConfirm, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 357, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 347, __pyx_L15_error) __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 357, __pyx_L15_error) + __pyx_t_14 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(5, 347, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_14); if (__pyx_t_13) { __Pyx_GIVEREF(__pyx_t_13); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); __pyx_t_13 = NULL; @@ -34717,29 +34426,29 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ __Pyx_INCREF(__pyx_v_ex); __Pyx_GIVEREF(__pyx_v_ex); PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_11, __pyx_v_ex); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 357, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 347, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":358 + /* "src/pyrfc/server.pyx":348 * except Exception as ex: * _server_log("Error in bgRFC handler onConfirm:", ex) * return RCStatus.RFC_EXTERNAL_FAILURE.value # <<<<<<<<<<<<<< * * @staticmethod */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 358, __pyx_L15_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 348, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 358, __pyx_L15_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 348, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 358, __pyx_L15_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 348, __pyx_L15_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 358, __pyx_L15_error) + __pyx_t_5 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 348, __pyx_L15_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_5; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -34748,7 +34457,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ goto __pyx_L14_return; } - /* "src/pyrfc/server.pyx":356 + /* "src/pyrfc/server.pyx":346 * unit_identifier = wrapUnitIdentifier(identifier[0]) * return handler(rfcHandle, unit_identifier).value * except Exception as ex: # <<<<<<<<<<<<<< @@ -34804,7 +34513,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "src/pyrfc/server.pyx":353 + /* "src/pyrfc/server.pyx":343 * if handler is None: * return RCStatus.OK.value * try: # <<<<<<<<<<<<<< @@ -34830,7 +34539,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ goto __pyx_L0; } - /* "src/pyrfc/server.pyx":349 + /* "src/pyrfc/server.pyx":339 * * @staticmethod * cdef RFC_RC __onConfirmFunction(RFC_CONNECTION_HANDLE rfcHandle, const RFC_UNIT_IDENTIFIER *identifier) with gil: # <<<<<<<<<<<<<< @@ -34860,7 +34569,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction(RFC_CONNECTION_ return __pyx_r; } -/* "src/pyrfc/server.pyx":361 +/* "src/pyrfc/server.pyx":351 * * @staticmethod * cdef RFC_RC __onGetStateFunction( # <<<<<<<<<<<<<< @@ -34907,22 +34616,22 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION #endif __Pyx_RefNannySetupContext("__onGetStateFunction", 0); - /* "src/pyrfc/server.pyx":366 + /* "src/pyrfc/server.pyx":356 * RFC_UNIT_STATE *unitState * ) with gil: * handler = Server.__bgRfcFunction["getState"] # <<<<<<<<<<<<<< * if handler is None: * _server_log("bgRFC handler onGetState is not registered for server connection handle '{rfcHandle}'") */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 366, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_getState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 366, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_t_1, __pyx_n_s_getState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 356, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_handler = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":367 + /* "src/pyrfc/server.pyx":357 * ) with gil: * handler = Server.__bgRfcFunction["getState"] * if handler is None: # <<<<<<<<<<<<<< @@ -34933,14 +34642,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":368 + /* "src/pyrfc/server.pyx":358 * handler = Server.__bgRfcFunction["getState"] * if handler is None: * _server_log("bgRFC handler onGetState is not registered for server connection handle '{rfcHandle}'") # <<<<<<<<<<<<<< * return RCStatus.RFC_EXTERNAL_FAILURE.value * try: */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 368, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_5 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) { @@ -34954,32 +34663,32 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION } __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_kp_s_bgRFC_handler_onGetState_is_not) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_kp_s_bgRFC_handler_onGetState_is_not); __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 368, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 358, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":369 + /* "src/pyrfc/server.pyx":359 * if handler is None: * _server_log("bgRFC handler onGetState is not registered for server connection handle '{rfcHandle}'") * return RCStatus.RFC_EXTERNAL_FAILURE.value # <<<<<<<<<<<<<< * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 369, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 369, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 369, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_6 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 369, __pyx_L1_error) + __pyx_t_6 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 359, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; goto __pyx_L0; - /* "src/pyrfc/server.pyx":367 + /* "src/pyrfc/server.pyx":357 * ) with gil: * handler = Server.__bgRfcFunction["getState"] * if handler is None: # <<<<<<<<<<<<<< @@ -34988,7 +34697,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION */ } - /* "src/pyrfc/server.pyx":370 + /* "src/pyrfc/server.pyx":360 * _server_log("bgRFC handler onGetState is not registered for server connection handle '{rfcHandle}'") * return RCStatus.RFC_EXTERNAL_FAILURE.value * try: # <<<<<<<<<<<<<< @@ -35004,26 +34713,26 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __Pyx_XGOTREF(__pyx_t_9); /*try:*/ { - /* "src/pyrfc/server.pyx":371 + /* "src/pyrfc/server.pyx":361 * return RCStatus.RFC_EXTERNAL_FAILURE.value * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) # <<<<<<<<<<<<<< * state = handler(rfcHandle, unit_identifier) * # section 5.6.3 pg 84 of SAP NWRFC SDK Programming Guide 7.50 */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 371, __pyx_L4_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapUnitIdentifier((__pyx_v_identifier[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 361, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_unit_identifier = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":372 + /* "src/pyrfc/server.pyx":362 * try: * unit_identifier = wrapUnitIdentifier(identifier[0]) * state = handler(rfcHandle, unit_identifier) # <<<<<<<<<<<<<< * # section 5.6.3 pg 84 of SAP NWRFC SDK Programming Guide 7.50 * if state == UnitState.created or state == UnitState.executed: */ - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 372, __pyx_L4_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_rfcHandle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 362, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(__pyx_v_handler); __pyx_t_5 = __pyx_v_handler; __pyx_t_10 = NULL; @@ -35041,7 +34750,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 372, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 362, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -35050,14 +34759,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_t_1, __pyx_v_unit_identifier}; - __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 372, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 362, __pyx_L4_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } else #endif { - __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 372, __pyx_L4_error) + __pyx_t_12 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 362, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -35068,7 +34777,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __Pyx_GIVEREF(__pyx_v_unit_identifier); PyTuple_SET_ITEM(__pyx_t_12, 1+__pyx_t_11, __pyx_v_unit_identifier); __pyx_t_1 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 372, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 362, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; } @@ -35076,41 +34785,41 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_v_state = __pyx_t_2; __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":374 + /* "src/pyrfc/server.pyx":364 * state = handler(rfcHandle, unit_identifier) * # section 5.6.3 pg 84 of SAP NWRFC SDK Programming Guide 7.50 * if state == UnitState.created or state == UnitState.executed: # <<<<<<<<<<<<<< * unitState[0] = RFC_UNIT_IN_PROCESS * elif state == UnitState.committed: */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 374, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_created); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 374, __pyx_L4_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_created); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 374, __pyx_L4_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 374, __pyx_L4_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (!__pyx_t_3) { } else { __pyx_t_4 = __pyx_t_3; goto __pyx_L11_bool_binop_done; } - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 374, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_executed); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 374, __pyx_L4_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_executed); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 374, __pyx_L4_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 374, __pyx_L4_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 364, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_4 = __pyx_t_3; __pyx_L11_bool_binop_done:; if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":375 + /* "src/pyrfc/server.pyx":365 * # section 5.6.3 pg 84 of SAP NWRFC SDK Programming Guide 7.50 * if state == UnitState.created or state == UnitState.executed: * unitState[0] = RFC_UNIT_IN_PROCESS # <<<<<<<<<<<<<< @@ -35119,7 +34828,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION */ (__pyx_v_unitState[0]) = RFC_UNIT_IN_PROCESS; - /* "src/pyrfc/server.pyx":374 + /* "src/pyrfc/server.pyx":364 * state = handler(rfcHandle, unit_identifier) * # section 5.6.3 pg 84 of SAP NWRFC SDK Programming Guide 7.50 * if state == UnitState.created or state == UnitState.executed: # <<<<<<<<<<<<<< @@ -35129,40 +34838,40 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L10; } - /* "src/pyrfc/server.pyx":376 + /* "src/pyrfc/server.pyx":366 * if state == UnitState.created or state == UnitState.executed: * unitState[0] = RFC_UNIT_IN_PROCESS * elif state == UnitState.committed: # <<<<<<<<<<<<<< * idunitStateentifier[0] = RFC_UNIT_COMMITTED * elif state == UnitState.rolled_back: */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 376, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 366, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_committed); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 376, __pyx_L4_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_committed); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 366, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 376, __pyx_L4_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 366, __pyx_L4_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 376, __pyx_L4_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 366, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":377 + /* "src/pyrfc/server.pyx":367 * unitState[0] = RFC_UNIT_IN_PROCESS * elif state == UnitState.committed: * idunitStateentifier[0] = RFC_UNIT_COMMITTED # <<<<<<<<<<<<<< * elif state == UnitState.rolled_back: * unitState[0] = RFC_UNIT_ROLLED_BACK */ - __pyx_t_2 = __Pyx_PyInt_From_RFC_UNIT_STATE(RFC_UNIT_COMMITTED); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 377, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyInt_From_RFC_UNIT_STATE(RFC_UNIT_COMMITTED); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 367, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_idunitStateentifier); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 377, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_idunitStateentifier); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 367, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); - if (unlikely(__Pyx_SetItemInt(__pyx_t_5, 0, __pyx_t_2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1) < 0)) __PYX_ERR(5, 377, __pyx_L4_error) + if (unlikely(__Pyx_SetItemInt(__pyx_t_5, 0, __pyx_t_2, long, 1, __Pyx_PyInt_From_long, 0, 0, 1) < 0)) __PYX_ERR(5, 367, __pyx_L4_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":376 + /* "src/pyrfc/server.pyx":366 * if state == UnitState.created or state == UnitState.executed: * unitState[0] = RFC_UNIT_IN_PROCESS * elif state == UnitState.committed: # <<<<<<<<<<<<<< @@ -35172,25 +34881,25 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L10; } - /* "src/pyrfc/server.pyx":378 + /* "src/pyrfc/server.pyx":368 * elif state == UnitState.committed: * idunitStateentifier[0] = RFC_UNIT_COMMITTED * elif state == UnitState.rolled_back: # <<<<<<<<<<<<<< * unitState[0] = RFC_UNIT_ROLLED_BACK * elif state == UnitState.confirmed: */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 378, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 368, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_rolled_back); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 378, __pyx_L4_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_rolled_back); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 368, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 378, __pyx_L4_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 368, __pyx_L4_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 378, __pyx_L4_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 368, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":379 + /* "src/pyrfc/server.pyx":369 * idunitStateentifier[0] = RFC_UNIT_COMMITTED * elif state == UnitState.rolled_back: * unitState[0] = RFC_UNIT_ROLLED_BACK # <<<<<<<<<<<<<< @@ -35199,7 +34908,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION */ (__pyx_v_unitState[0]) = RFC_UNIT_ROLLED_BACK; - /* "src/pyrfc/server.pyx":378 + /* "src/pyrfc/server.pyx":368 * elif state == UnitState.committed: * idunitStateentifier[0] = RFC_UNIT_COMMITTED * elif state == UnitState.rolled_back: # <<<<<<<<<<<<<< @@ -35209,25 +34918,25 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L10; } - /* "src/pyrfc/server.pyx":380 + /* "src/pyrfc/server.pyx":370 * elif state == UnitState.rolled_back: * unitState[0] = RFC_UNIT_ROLLED_BACK * elif state == UnitState.confirmed: # <<<<<<<<<<<<<< * unitState[0] = RFC_UNIT_CONFIRMED * else: */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 380, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_UnitState); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 370, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_confirmed); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 380, __pyx_L4_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_confirmed); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 370, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 380, __pyx_L4_error) + __pyx_t_2 = PyObject_RichCompare(__pyx_v_state, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 370, __pyx_L4_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 380, __pyx_L4_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 370, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (likely(__pyx_t_4)) { - /* "src/pyrfc/server.pyx":381 + /* "src/pyrfc/server.pyx":371 * unitState[0] = RFC_UNIT_ROLLED_BACK * elif state == UnitState.confirmed: * unitState[0] = RFC_UNIT_CONFIRMED # <<<<<<<<<<<<<< @@ -35236,7 +34945,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION */ (__pyx_v_unitState[0]) = RFC_UNIT_CONFIRMED; - /* "src/pyrfc/server.pyx":380 + /* "src/pyrfc/server.pyx":370 * elif state == UnitState.rolled_back: * unitState[0] = RFC_UNIT_ROLLED_BACK * elif state == UnitState.confirmed: # <<<<<<<<<<<<<< @@ -35246,7 +34955,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L10; } - /* "src/pyrfc/server.pyx":383 + /* "src/pyrfc/server.pyx":373 * unitState[0] = RFC_UNIT_CONFIRMED * else: * raise Exception(f"TID {unit_identifier['id']} invalid state '{state}'") # <<<<<<<<<<<<<< @@ -35254,7 +34963,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION * except Exception as ex: */ /*else*/ { - __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 383, __pyx_L4_error) + __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 373, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_13 = 0; __pyx_t_14 = 127; @@ -35262,9 +34971,9 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_t_13 += 4; __Pyx_GIVEREF(__pyx_kp_u_TID); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_TID); - __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit_identifier, __pyx_n_s_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 383, __pyx_L4_error) + __pyx_t_5 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit_identifier, __pyx_n_s_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 373, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 383, __pyx_L4_error) + __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 373, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_14; @@ -35276,7 +34985,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_t_13 += 16; __Pyx_GIVEREF(__pyx_kp_u_invalid_state); PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u_invalid_state); - __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_v_state, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 383, __pyx_L4_error) + __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_v_state, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 373, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); __pyx_t_14 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_14) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_14; __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12); @@ -35287,39 +34996,39 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_t_13 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_kp_u__6); - __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_2, 5, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 383, __pyx_L4_error) + __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_2, 5, __pyx_t_13, __pyx_t_14); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 373, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 383, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])), __pyx_t_12); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 373, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(5, 383, __pyx_L4_error) + __PYX_ERR(5, 373, __pyx_L4_error) } __pyx_L10:; - /* "src/pyrfc/server.pyx":384 + /* "src/pyrfc/server.pyx":374 * else: * raise Exception(f"TID {unit_identifier['id']} invalid state '{state}'") * return RCStatus.OK.value # <<<<<<<<<<<<<< * except Exception as ex: * _server_log("Error in bgRFC handler onGetState:\n", ex) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 384, __pyx_L4_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 374, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 384, __pyx_L4_error) + __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_OK); if (unlikely(!__pyx_t_12)) __PYX_ERR(5, 374, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 384, __pyx_L4_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_12, __pyx_n_s_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 374, __pyx_L4_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; - __pyx_t_6 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 384, __pyx_L4_error) + __pyx_t_6 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_2)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 374, __pyx_L4_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; goto __pyx_L8_try_return; - /* "src/pyrfc/server.pyx":370 + /* "src/pyrfc/server.pyx":360 * _server_log("bgRFC handler onGetState is not registered for server connection handle '{rfcHandle}'") * return RCStatus.RFC_EXTERNAL_FAILURE.value * try: # <<<<<<<<<<<<<< @@ -35334,7 +35043,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/server.pyx":385 + /* "src/pyrfc/server.pyx":375 * raise Exception(f"TID {unit_identifier['id']} invalid state '{state}'") * return RCStatus.OK.value * except Exception as ex: # <<<<<<<<<<<<<< @@ -35344,7 +35053,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_t_11 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); if (__pyx_t_11) { __Pyx_AddTraceback("pyrfc._cyrfc.Server.__onGetStateFunction", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_12, &__pyx_t_5) < 0) __PYX_ERR(5, 385, __pyx_L6_except_error) + if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_12, &__pyx_t_5) < 0) __PYX_ERR(5, 375, __pyx_L6_except_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_12); __Pyx_GOTREF(__pyx_t_5); @@ -35352,14 +35061,14 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __pyx_v_ex = __pyx_t_12; /*try:*/ { - /* "src/pyrfc/server.pyx":386 + /* "src/pyrfc/server.pyx":376 * return RCStatus.OK.value * except Exception as ex: * _server_log("Error in bgRFC handler onGetState:\n", ex) # <<<<<<<<<<<<<< * return RCStatus.RFC_EXTERNAL_FAILURE.value * */ - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 386, __pyx_L18_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_log); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 376, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_15 = NULL; __pyx_t_11 = 0; @@ -35376,7 +35085,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_kp_s_Error_in_bgRFC_handler_onGetStat, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 386, __pyx_L18_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 376, __pyx_L18_error) __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -35384,13 +35093,13 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_10)) { PyObject *__pyx_temp[3] = {__pyx_t_15, __pyx_kp_s_Error_in_bgRFC_handler_onGetStat, __pyx_v_ex}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 386, __pyx_L18_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_10, __pyx_temp+1-__pyx_t_11, 2+__pyx_t_11); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 376, __pyx_L18_error) __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(5, 386, __pyx_L18_error) + __pyx_t_16 = PyTuple_New(2+__pyx_t_11); if (unlikely(!__pyx_t_16)) __PYX_ERR(5, 376, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_16); if (__pyx_t_15) { __Pyx_GIVEREF(__pyx_t_15); PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15); __pyx_t_15 = NULL; @@ -35401,29 +35110,29 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION __Pyx_INCREF(__pyx_v_ex); __Pyx_GIVEREF(__pyx_v_ex); PyTuple_SET_ITEM(__pyx_t_16, 1+__pyx_t_11, __pyx_v_ex); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 386, __pyx_L18_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_t_16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 376, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0; } __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":387 + /* "src/pyrfc/server.pyx":377 * except Exception as ex: * _server_log("Error in bgRFC handler onGetState:\n", ex) * return RCStatus.RFC_EXTERNAL_FAILURE.value # <<<<<<<<<<<<<< * * def bgrfc_init(self, sysId, bgRfcFunction): */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 387, __pyx_L18_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RCStatus); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 377, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 387, __pyx_L18_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_RFC_EXTERNAL_FAILURE); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 377, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 387, __pyx_L18_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 377, __pyx_L18_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_6 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 387, __pyx_L18_error) + __pyx_t_6 = ((RFC_RC)__Pyx_PyInt_As_RFC_RC(__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 377, __pyx_L18_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -35432,7 +35141,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L17_return; } - /* "src/pyrfc/server.pyx":385 + /* "src/pyrfc/server.pyx":375 * raise Exception(f"TID {unit_identifier['id']} invalid state '{state}'") * return RCStatus.OK.value * except Exception as ex: # <<<<<<<<<<<<<< @@ -35488,7 +35197,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L6_except_error; __pyx_L6_except_error:; - /* "src/pyrfc/server.pyx":370 + /* "src/pyrfc/server.pyx":360 * _server_log("bgRFC handler onGetState is not registered for server connection handle '{rfcHandle}'") * return RCStatus.RFC_EXTERNAL_FAILURE.value * try: # <<<<<<<<<<<<<< @@ -35514,7 +35223,7 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION goto __pyx_L0; } - /* "src/pyrfc/server.pyx":361 + /* "src/pyrfc/server.pyx":351 * * @staticmethod * cdef RFC_RC __onGetStateFunction( # <<<<<<<<<<<<<< @@ -35545,16 +35254,17 @@ static RFC_RC __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction(RFC_CONNECTION return __pyx_r; } -/* "src/pyrfc/server.pyx":389 +/* "src/pyrfc/server.pyx":379 * return RCStatus.RFC_EXTERNAL_FAILURE.value * * def bgrfc_init(self, sysId, bgRfcFunction): # <<<<<<<<<<<<<< - * for func_name in bgRfcFunction: - * if func_name not in Server.__bgRfcFunction: + * """Installs the necessary callback functions for processing incoming bgRFC calls. + * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_3bgrfc_init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_6Server_2bgrfc_init[] = "Installs the necessary callback functions for processing incoming bgRFC calls.\n\n These functions need to be implemented by Python application and will be used by the RFC runtime.\n When no callback function is provided, the default one is used,\n not necessarily matching your application requirements.\n\n For more info search for the ``RfcInstallBgRfcHandlers`` method in\n `SAP NetWeaver RFC SDK Doxygen Documentation `_\n\n :param sysId: System ID of the SAP system for which to use this set of transaction handlers, or None\n When None value provided, the transaction handlers will be used for bgRFC calls from\n any backend system, for which no explicit handlers have been installed.\n :type sysId: string or None\n\n :param bgRfcFunction: Function callbacks\n :type bgRfcFunction: dict(str, function)\n\n * \"check\": onCheckFunction,\n * \"commit\": onCommitFunction,\n * \"rollback\": onRollbackFunction,\n * \"confirm\": onConfirmFunction,\n * \"getState\": onGetStateFunction,\n\n :return: error code, zero when no error\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_3bgrfc_init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_sysId = 0; PyObject *__pyx_v_bgRfcFunction = 0; @@ -35587,11 +35297,11 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_3bgrfc_init(PyObject *__pyx_v_s case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bgRfcFunction_2)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("bgrfc_init", 1, 2, 2, 1); __PYX_ERR(5, 389, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("bgrfc_init", 1, 2, 2, 1); __PYX_ERR(5, 379, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "bgrfc_init") < 0)) __PYX_ERR(5, 389, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "bgrfc_init") < 0)) __PYX_ERR(5, 379, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -35604,7 +35314,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_3bgrfc_init(PyObject *__pyx_v_s } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("bgrfc_init", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(5, 389, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("bgrfc_init", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(5, 379, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Server.bgrfc_init", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -35636,9 +35346,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("bgrfc_init", 0); - /* "src/pyrfc/server.pyx":390 - * - * def bgrfc_init(self, sysId, bgRfcFunction): + /* "src/pyrfc/server.pyx":405 + * :return: error code, zero when no error + * """ * for func_name in bgRfcFunction: # <<<<<<<<<<<<<< * if func_name not in Server.__bgRfcFunction: * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") @@ -35647,26 +35357,26 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __pyx_t_1 = __pyx_v_bgRfcFunction; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0; __pyx_t_3 = NULL; } else { - __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 390, __pyx_L1_error) + __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_bgRfcFunction); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 390, __pyx_L1_error) + __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 405, __pyx_L1_error) } for (;;) { if (likely(!__pyx_t_3)) { if (likely(PyList_CheckExact(__pyx_t_1))) { if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(5, 390, __pyx_L1_error) + __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(5, 405, __pyx_L1_error) #else - __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 390, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } else { if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(5, 390, __pyx_L1_error) + __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(5, 405, __pyx_L1_error) #else - __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 390, __pyx_L1_error) + __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 405, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); #endif } @@ -35676,7 +35386,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(5, 390, __pyx_L1_error) + else __PYX_ERR(5, 405, __pyx_L1_error) } break; } @@ -35685,28 +35395,28 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __Pyx_XDECREF_SET(__pyx_v_func_name, __pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":391 - * def bgrfc_init(self, sysId, bgRfcFunction): + /* "src/pyrfc/server.pyx":406 + * """ * for func_name in bgRfcFunction: * if func_name not in Server.__bgRfcFunction: # <<<<<<<<<<<<<< * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") * if not callable(bgRfcFunction[func_name]): */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 391, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 406, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_v_func_name, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(5, 391, __pyx_L1_error) + __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_v_func_name, __pyx_t_4, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(5, 406, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_6 = (__pyx_t_5 != 0); if (unlikely(__pyx_t_6)) { - /* "src/pyrfc/server.pyx":392 + /* "src/pyrfc/server.pyx":407 * for func_name in bgRfcFunction: * if func_name not in Server.__bgRfcFunction: * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") # <<<<<<<<<<<<<< * if not callable(bgRfcFunction[func_name]): * raise TypeError(f"BgRfc callback function referenced by '{func_name}' is not callable: '{bgRfcFunction[func_name]}'") */ - __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 392, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = 127; @@ -35714,7 +35424,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __pyx_t_7 += 44; __Pyx_GIVEREF(__pyx_kp_u_BgRfc_callback_function_key_not); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_BgRfc_callback_function_key_not); - __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 392, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_8; __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9); @@ -35725,18 +35435,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __pyx_t_7 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__6); - __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 392, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 392, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 407, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(5, 392, __pyx_L1_error) + __PYX_ERR(5, 407, __pyx_L1_error) - /* "src/pyrfc/server.pyx":391 - * def bgrfc_init(self, sysId, bgRfcFunction): + /* "src/pyrfc/server.pyx":406 + * """ * for func_name in bgRfcFunction: * if func_name not in Server.__bgRfcFunction: # <<<<<<<<<<<<<< * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") @@ -35744,28 +35454,28 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p */ } - /* "src/pyrfc/server.pyx":393 + /* "src/pyrfc/server.pyx":408 * if func_name not in Server.__bgRfcFunction: * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") * if not callable(bgRfcFunction[func_name]): # <<<<<<<<<<<<<< * raise TypeError(f"BgRfc callback function referenced by '{func_name}' is not callable: '{bgRfcFunction[func_name]}'") * Server.__bgRfcFunction[func_name] = bgRfcFunction[func_name] */ - __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_bgRfcFunction, __pyx_v_func_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 393, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_bgRfcFunction, __pyx_v_func_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = __Pyx_PyCallable_Check(__pyx_t_4); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(5, 393, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyCallable_Check(__pyx_t_4); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(5, 408, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_t_5 = ((!(__pyx_t_6 != 0)) != 0); if (unlikely(__pyx_t_5)) { - /* "src/pyrfc/server.pyx":394 + /* "src/pyrfc/server.pyx":409 * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") * if not callable(bgRfcFunction[func_name]): * raise TypeError(f"BgRfc callback function referenced by '{func_name}' is not callable: '{bgRfcFunction[func_name]}'") # <<<<<<<<<<<<<< * Server.__bgRfcFunction[func_name] = bgRfcFunction[func_name] - * self.install_bgrfc_handlers(sysId) + * return self.install_bgrfc_handlers(sysId) */ - __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 394, __pyx_L1_error) + __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = 0; __pyx_t_8 = 127; @@ -35773,7 +35483,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __pyx_t_7 += 39; __Pyx_GIVEREF(__pyx_kp_u_BgRfc_callback_function_referenc); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_BgRfc_callback_function_referenc); - __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 394, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_8; __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9); @@ -35784,9 +35494,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __pyx_t_7 += 20; __Pyx_GIVEREF(__pyx_kp_u_is_not_callable); PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_is_not_callable); - __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_v_bgRfcFunction, __pyx_v_func_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 394, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_v_bgRfcFunction, __pyx_v_func_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = __Pyx_PyObject_FormatSimple(__pyx_t_9, __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 394, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_FormatSimple(__pyx_t_9, __pyx_empty_unicode); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_10) : __pyx_t_8; @@ -35798,17 +35508,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p __pyx_t_7 += 1; __Pyx_GIVEREF(__pyx_kp_u__6); PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__6); - __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 394, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 394, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 409, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(5, 394, __pyx_L1_error) + __PYX_ERR(5, 409, __pyx_L1_error) - /* "src/pyrfc/server.pyx":393 + /* "src/pyrfc/server.pyx":408 * if func_name not in Server.__bgRfcFunction: * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") * if not callable(bgRfcFunction[func_name]): # <<<<<<<<<<<<<< @@ -35817,24 +35527,24 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p */ } - /* "src/pyrfc/server.pyx":395 + /* "src/pyrfc/server.pyx":410 * if not callable(bgRfcFunction[func_name]): * raise TypeError(f"BgRfc callback function referenced by '{func_name}' is not callable: '{bgRfcFunction[func_name]}'") * Server.__bgRfcFunction[func_name] = bgRfcFunction[func_name] # <<<<<<<<<<<<<< - * self.install_bgrfc_handlers(sysId) + * return self.install_bgrfc_handlers(sysId) * */ - __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_bgRfcFunction, __pyx_v_func_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 395, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_bgRfcFunction, __pyx_v_func_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 395, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server), __pyx_n_s_bgRfcFunction); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 410, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_v_func_name, __pyx_t_4) < 0)) __PYX_ERR(5, 395, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_v_func_name, __pyx_t_4) < 0)) __PYX_ERR(5, 410, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":390 - * - * def bgrfc_init(self, sysId, bgRfcFunction): + /* "src/pyrfc/server.pyx":405 + * :return: error code, zero when no error + * """ * for func_name in bgRfcFunction: # <<<<<<<<<<<<<< * if func_name not in Server.__bgRfcFunction: * raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") @@ -35842,14 +35552,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":396 + /* "src/pyrfc/server.pyx":411 * raise TypeError(f"BgRfc callback function referenced by '{func_name}' is not callable: '{bgRfcFunction[func_name]}'") * Server.__bgRfcFunction[func_name] = bgRfcFunction[func_name] - * self.install_bgrfc_handlers(sysId) # <<<<<<<<<<<<<< + * return self.install_bgrfc_handlers(sysId) # <<<<<<<<<<<<<< * * def install_bgrfc_handlers(self, sysId): */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_install_bgrfc_handlers); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 396, __pyx_L1_error) + __Pyx_XDECREF(__pyx_r); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_install_bgrfc_handlers); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_10 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) { @@ -35863,22 +35574,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p } __pyx_t_1 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_10, __pyx_v_sysId) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_sysId); __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 396, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 411, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; - /* "src/pyrfc/server.pyx":389 + /* "src/pyrfc/server.pyx":379 * return RCStatus.RFC_EXTERNAL_FAILURE.value * * def bgrfc_init(self, sysId, bgRfcFunction): # <<<<<<<<<<<<<< - * for func_name in bgRfcFunction: - * if func_name not in Server.__bgRfcFunction: + * """Installs the necessary callback functions for processing incoming bgRFC calls. + * */ /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); @@ -35893,11 +35604,11 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_2bgrfc_init(struct __pyx_obj_5p return __pyx_r; } -/* "src/pyrfc/server.pyx":398 - * self.install_bgrfc_handlers(sysId) +/* "src/pyrfc/server.pyx":413 + * return self.install_bgrfc_handlers(sysId) * * def install_bgrfc_handlers(self, sysId): # <<<<<<<<<<<<<< - * ucSysId = fillString(sysId) + * ucSysId = fillString(sysId) if sysId is not None else NULL * cdef RFC_ERROR_INFO errorInfo */ @@ -35922,25 +35633,32 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ __Pyx_RefNannyDeclarations SAP_UC *__pyx_t_1; int __pyx_t_2; - int __pyx_t_3; - PyObject *__pyx_t_4 = NULL; + SAP_UC *__pyx_t_3; + int __pyx_t_4; + PyObject *__pyx_t_5 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("install_bgrfc_handlers", 0); - /* "src/pyrfc/server.pyx":399 + /* "src/pyrfc/server.pyx":414 * * def install_bgrfc_handlers(self, sysId): - * ucSysId = fillString(sysId) # <<<<<<<<<<<<<< + * ucSysId = fillString(sysId) if sysId is not None else NULL # <<<<<<<<<<<<<< * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcInstallBgRfcHandlers( */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_sysId); if (unlikely(__pyx_t_1 == ((SAP_UC *)NULL))) __PYX_ERR(5, 399, __pyx_L1_error) + __pyx_t_2 = (__pyx_v_sysId != Py_None); + if ((__pyx_t_2 != 0)) { + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_sysId); if (unlikely(__pyx_t_3 == ((SAP_UC *)NULL))) __PYX_ERR(5, 414, __pyx_L1_error) + __pyx_t_1 = __pyx_t_3; + } else { + __pyx_t_1 = NULL; + } __pyx_v_ucSysId = __pyx_t_1; - /* "src/pyrfc/server.pyx":401 - * ucSysId = fillString(sysId) + /* "src/pyrfc/server.pyx":416 + * ucSysId = fillString(sysId) if sysId is not None else NULL * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcInstallBgRfcHandlers( # <<<<<<<<<<<<<< * ucSysId, @@ -35948,7 +35666,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ */ __pyx_v_rc = RfcInstallBgRfcHandlers(__pyx_v_ucSysId, __pyx_f_5pyrfc_6_cyrfc_6Server___onCheckFunction, __pyx_f_5pyrfc_6_cyrfc_6Server___onCommitFunction, __pyx_f_5pyrfc_6_cyrfc_6Server___onRollbackFunction, __pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction, __pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":410 + /* "src/pyrfc/server.pyx":425 * &errorInfo * ) * free(ucSysId) # <<<<<<<<<<<<<< @@ -35957,38 +35675,38 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ */ free(__pyx_v_ucSysId); - /* "src/pyrfc/server.pyx":411 + /* "src/pyrfc/server.pyx":426 * ) * free(ucSysId) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< * raise wrapError(&errorInfo) * return rc */ - __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); - if (!__pyx_t_3) { + __pyx_t_4 = ((__pyx_v_rc != RFC_OK) != 0); + if (!__pyx_t_4) { } else { - __pyx_t_2 = __pyx_t_3; + __pyx_t_2 = __pyx_t_4; goto __pyx_L4_bool_binop_done; } - __pyx_t_3 = ((__pyx_v_errorInfo.code != RFC_OK) != 0); - __pyx_t_2 = __pyx_t_3; + __pyx_t_4 = ((__pyx_v_errorInfo.code != RFC_OK) != 0); + __pyx_t_2 = __pyx_t_4; __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/server.pyx":412 + /* "src/pyrfc/server.pyx":427 * free(ucSysId) * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * return rc * */ - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 412, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __PYX_ERR(5, 412, __pyx_L1_error) + __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_Raise(__pyx_t_5, 0, 0, 0); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __PYX_ERR(5, 427, __pyx_L1_error) - /* "src/pyrfc/server.pyx":411 + /* "src/pyrfc/server.pyx":426 * ) * free(ucSysId) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -35997,7 +35715,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ */ } - /* "src/pyrfc/server.pyx":413 + /* "src/pyrfc/server.pyx":428 * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) * return rc # <<<<<<<<<<<<<< @@ -36005,23 +35723,23 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ * def add_function(self, func_name, callback): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 413, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - __pyx_r = __pyx_t_4; - __pyx_t_4 = 0; + __pyx_t_5 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 428, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_r = __pyx_t_5; + __pyx_t_5 = 0; goto __pyx_L0; - /* "src/pyrfc/server.pyx":398 - * self.install_bgrfc_handlers(sysId) + /* "src/pyrfc/server.pyx":413 + * return self.install_bgrfc_handlers(sysId) * * def install_bgrfc_handlers(self, sysId): # <<<<<<<<<<<<<< - * ucSysId = fillString(sysId) + * ucSysId = fillString(sysId) if sysId is not None else NULL * cdef RFC_ERROR_INFO errorInfo */ /* function exit code */ __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); __Pyx_AddTraceback("pyrfc._cyrfc.Server.install_bgrfc_handlers", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -36030,7 +35748,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ return __pyx_r; } -/* "src/pyrfc/server.pyx":415 +/* "src/pyrfc/server.pyx":430 * return rc * * def add_function(self, func_name, callback): # <<<<<<<<<<<<<< @@ -36040,7 +35758,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_4install_bgrfc_handlers(CYTHON_ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_7add_function(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5pyrfc_6_cyrfc_6Server_6add_function[] = "\n Installs a function in the server.\n\n :param func_name: A RFM name\n :type func_name: string\n\n :param callback: A callback function that implements the logic.\n The function must accept a ``request_context`` parameter and\n all IMPORT, CHANGING, and TABLE parameters of the given\n ``func_desc``.\n :raises: :exc:`TypeError` if a function with the name given is already\n installed.\n "; +static char __pyx_doc_5pyrfc_6_cyrfc_6Server_6add_function[] = "\n Installs a function in the server.\n\n :param func_name: ABAP remote function module name\n :type func_name: string\n\n :param callback: A callback function that implements the logic.\n The function must accept a ``request_context`` parameter and\n all IMPORT, CHANGING, and TABLE parameters of the given\n ``func_desc``.\n :raises: :exc:`TypeError` if a function with the name given is already\n installed.\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_7add_function(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_func_name = 0; PyObject *__pyx_v_callback = 0; @@ -36073,11 +35791,11 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_7add_function(PyObject *__pyx_v case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_callback)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("add_function", 1, 2, 2, 1); __PYX_ERR(5, 415, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_function", 1, 2, 2, 1); __PYX_ERR(5, 430, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_function") < 0)) __PYX_ERR(5, 415, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "add_function") < 0)) __PYX_ERR(5, 430, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 2) { goto __pyx_L5_argtuple_error; @@ -36090,7 +35808,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_7add_function(PyObject *__pyx_v } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("add_function", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(5, 415, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("add_function", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(5, 430, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Server.add_function", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -36125,28 +35843,28 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("add_function", 0); - /* "src/pyrfc/server.pyx":430 + /* "src/pyrfc/server.pyx":445 * """ * global server_functions * if func_name in server_functions: # <<<<<<<<<<<<<< * raise TypeError(f"Server function '{func_name}' already installed.") * */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 430, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 445, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_func_name, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(5, 430, __pyx_L1_error) + __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_func_name, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(5, 445, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = (__pyx_t_2 != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/server.pyx":431 + /* "src/pyrfc/server.pyx":446 * global server_functions * if func_name in server_functions: * raise TypeError(f"Server function '{func_name}' already installed.") # <<<<<<<<<<<<<< * * if not self._client_connection: */ - __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 431, __pyx_L1_error) + __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = 0; __pyx_t_5 = 127; @@ -36154,7 +35872,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ __pyx_t_4 += 17; __Pyx_GIVEREF(__pyx_kp_u_Server_function); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_Server_function); - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 431, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_func_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5; __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6); @@ -36165,17 +35883,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ __pyx_t_4 += 20; __Pyx_GIVEREF(__pyx_kp_u_already_installed); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_already_installed); - __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 431, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 431, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 446, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 431, __pyx_L1_error) + __PYX_ERR(5, 446, __pyx_L1_error) - /* "src/pyrfc/server.pyx":430 + /* "src/pyrfc/server.pyx":445 * """ * global server_functions * if func_name in server_functions: # <<<<<<<<<<<<<< @@ -36184,25 +35902,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ */ } - /* "src/pyrfc/server.pyx":433 + /* "src/pyrfc/server.pyx":448 * raise TypeError(f"Server function '{func_name}' already installed.") * * if not self._client_connection: # <<<<<<<<<<<<<< * self._client_connection.open() * cdef RFC_ERROR_INFO errorInfo */ - __pyx_t_3 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_self->_client_connection)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 433, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_self->_client_connection)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 448, __pyx_L1_error) __pyx_t_2 = ((!__pyx_t_3) != 0); if (__pyx_t_2) { - /* "src/pyrfc/server.pyx":434 + /* "src/pyrfc/server.pyx":449 * * if not self._client_connection: * self._client_connection.open() # <<<<<<<<<<<<<< * cdef RFC_ERROR_INFO errorInfo * cdef RFC_ABAP_NAME funcName = fillString(func_name) */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_client_connection), __pyx_n_s_open); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 434, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_client_connection), __pyx_n_s_open); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -36216,12 +35934,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ } __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 434, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 449, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":433 + /* "src/pyrfc/server.pyx":448 * raise TypeError(f"Server function '{func_name}' already installed.") * * if not self._client_connection: # <<<<<<<<<<<<<< @@ -36230,17 +35948,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ */ } - /* "src/pyrfc/server.pyx":436 + /* "src/pyrfc/server.pyx":451 * self._client_connection.open() * cdef RFC_ERROR_INFO errorInfo * cdef RFC_ABAP_NAME funcName = fillString(func_name) # <<<<<<<<<<<<<< * cdef RFC_FUNCTION_DESC_HANDLE func_desc_handle = RfcGetFunctionDesc(self._client_connection._handle, funcName, &errorInfo) * self._client_connection.close() */ - __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_8 == ((SAP_UC *)NULL))) __PYX_ERR(5, 436, __pyx_L1_error) + __pyx_t_8 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_v_func_name); if (unlikely(__pyx_t_8 == ((SAP_UC *)NULL))) __PYX_ERR(5, 451, __pyx_L1_error) memcpy(&(__pyx_v_funcName[0]), __pyx_t_8, sizeof(__pyx_v_funcName[0]) * ((30 + 1) - 0)); - /* "src/pyrfc/server.pyx":437 + /* "src/pyrfc/server.pyx":452 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_ABAP_NAME funcName = fillString(func_name) * cdef RFC_FUNCTION_DESC_HANDLE func_desc_handle = RfcGetFunctionDesc(self._client_connection._handle, funcName, &errorInfo) # <<<<<<<<<<<<<< @@ -36249,14 +35967,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ */ __pyx_v_func_desc_handle = RfcGetFunctionDesc(__pyx_v_self->_client_connection->_handle, __pyx_v_funcName, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":438 + /* "src/pyrfc/server.pyx":453 * cdef RFC_ABAP_NAME funcName = fillString(func_name) * cdef RFC_FUNCTION_DESC_HANDLE func_desc_handle = RfcGetFunctionDesc(self._client_connection._handle, funcName, &errorInfo) * self._client_connection.close() # <<<<<<<<<<<<<< * * if errorInfo.code != RFC_OK: */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_client_connection), __pyx_n_s_close_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 438, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_client_connection), __pyx_n_s_close_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) { @@ -36270,12 +35988,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ } __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 438, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 453, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":440 + /* "src/pyrfc/server.pyx":455 * self._client_connection.close() * * if errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -36285,20 +36003,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ __pyx_t_2 = ((__pyx_v_errorInfo.code != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/server.pyx":441 + /* "src/pyrfc/server.pyx":456 * * if errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * server_functions[func_name] = { */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 441, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 456, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 441, __pyx_L1_error) + __PYX_ERR(5, 456, __pyx_L1_error) - /* "src/pyrfc/server.pyx":440 + /* "src/pyrfc/server.pyx":455 * self._client_connection.close() * * if errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -36307,59 +36025,59 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ */ } - /* "src/pyrfc/server.pyx":444 + /* "src/pyrfc/server.pyx":459 * * server_functions[func_name] = { * "func_desc_handle": func_desc_handle, # <<<<<<<<<<<<<< * "callback": callback, * "server": self */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 444, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_func_desc_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 444, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_func_desc_handle)); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 459, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_func_desc_handle, __pyx_t_6) < 0) __PYX_ERR(5, 444, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_func_desc_handle, __pyx_t_6) < 0) __PYX_ERR(5, 459, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":445 + /* "src/pyrfc/server.pyx":460 * server_functions[func_name] = { * "func_desc_handle": func_desc_handle, * "callback": callback, # <<<<<<<<<<<<<< * "server": self * } */ - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_callback, __pyx_v_callback) < 0) __PYX_ERR(5, 444, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_callback, __pyx_v_callback) < 0) __PYX_ERR(5, 459, __pyx_L1_error) - /* "src/pyrfc/server.pyx":446 + /* "src/pyrfc/server.pyx":461 * "func_desc_handle": func_desc_handle, * "callback": callback, * "server": self # <<<<<<<<<<<<<< * } * */ - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_server, ((PyObject *)__pyx_v_self)) < 0) __PYX_ERR(5, 444, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_server, ((PyObject *)__pyx_v_self)) < 0) __PYX_ERR(5, 459, __pyx_L1_error) - /* "src/pyrfc/server.pyx":443 + /* "src/pyrfc/server.pyx":458 * raise wrapError(&errorInfo) * * server_functions[func_name] = { # <<<<<<<<<<<<<< * "func_desc_handle": func_desc_handle, * "callback": callback, */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 443, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 458, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_v_func_name, __pyx_t_1) < 0)) __PYX_ERR(5, 443, __pyx_L1_error) + if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_v_func_name, __pyx_t_1) < 0)) __PYX_ERR(5, 458, __pyx_L1_error) __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":449 + /* "src/pyrfc/server.pyx":464 * } * * _server_log("Server function installed", func_name) # <<<<<<<<<<<<<< * _server_log("Server function installed", server_functions[func_name]) * */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 449, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = NULL; __pyx_t_9 = 0; @@ -36376,7 +36094,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_kp_s_Server_function_installed, __pyx_v_func_name}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 449, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 464, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else @@ -36384,13 +36102,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_kp_s_Server_function_installed, __pyx_v_func_name}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 449, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 464, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_GOTREF(__pyx_t_1); } else #endif { - __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 449, __pyx_L1_error) + __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); if (__pyx_t_7) { __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_7); __pyx_t_7 = NULL; @@ -36401,25 +36119,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ __Pyx_INCREF(__pyx_v_func_name); __Pyx_GIVEREF(__pyx_v_func_name); PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_v_func_name); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 449, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 464, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":450 + /* "src/pyrfc/server.pyx":465 * * _server_log("Server function installed", func_name) * _server_log("Server function installed", server_functions[func_name]) # <<<<<<<<<<<<<< * * def serve(self): */ - __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 450, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_server_log); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 450, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_v_func_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 450, __pyx_L1_error) + __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_10, __pyx_v_func_name); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_10 = NULL; @@ -36437,7 +36155,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_kp_s_Server_function_installed, __pyx_t_7}; - __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 450, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -36446,14 +36164,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) { PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_kp_s_Server_function_installed, __pyx_t_7}; - __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 450, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; } else #endif { - __pyx_t_11 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(5, 450, __pyx_L1_error) + __pyx_t_11 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_11)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); if (__pyx_t_10) { __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; @@ -36464,14 +36182,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_9, __pyx_t_7); __pyx_t_7 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 450, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 465, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":415 + /* "src/pyrfc/server.pyx":430 * return rc * * def add_function(self, func_name, callback): # <<<<<<<<<<<<<< @@ -36496,7 +36214,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6add_function(struct __pyx_obj_ return __pyx_r; } -/* "src/pyrfc/server.pyx":452 +/* "src/pyrfc/server.pyx":467 * _server_log("Server function installed", server_functions[func_name]) * * def serve(self): # <<<<<<<<<<<<<< @@ -36536,7 +36254,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("serve", 0); - /* "src/pyrfc/server.pyx":461 + /* "src/pyrfc/server.pyx":476 * cdef RFC_ERROR_INFO errorInfo * * cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo) # <<<<<<<<<<<<<< @@ -36545,7 +36263,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ */ __pyx_v_rc = RfcInstallGenericServerFunction(__pyx_f_5pyrfc_6_cyrfc_genericHandler, __pyx_f_5pyrfc_6_cyrfc_metadataLookup, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":462 + /* "src/pyrfc/server.pyx":477 * * cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -36563,20 +36281,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/server.pyx":463 + /* "src/pyrfc/server.pyx":478 * cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * rc = RfcLaunchServer(self._server_connection._handle, &errorInfo) */ - __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 463, __pyx_L1_error) + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 478, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(5, 463, __pyx_L1_error) + __PYX_ERR(5, 478, __pyx_L1_error) - /* "src/pyrfc/server.pyx":462 + /* "src/pyrfc/server.pyx":477 * * cdef RFC_RC rc = RfcInstallGenericServerFunction(genericHandler, metadataLookup, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -36585,7 +36303,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ */ } - /* "src/pyrfc/server.pyx":465 + /* "src/pyrfc/server.pyx":480 * raise wrapError(&errorInfo) * * rc = RfcLaunchServer(self._server_connection._handle, &errorInfo) # <<<<<<<<<<<<<< @@ -36594,7 +36312,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ */ __pyx_v_rc = RfcLaunchServer(__pyx_v_self->_server_connection->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":466 + /* "src/pyrfc/server.pyx":481 * * rc = RfcLaunchServer(self._server_connection._handle, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -36612,20 +36330,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ __pyx_L7_bool_binop_done:; if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/server.pyx":467 + /* "src/pyrfc/server.pyx":482 * rc = RfcLaunchServer(self._server_connection._handle, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _server_log("Server", f"launched {self._server_connection.handle}") * */ - __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 467, __pyx_L1_error) + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 482, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(5, 467, __pyx_L1_error) + __PYX_ERR(5, 482, __pyx_L1_error) - /* "src/pyrfc/server.pyx":466 + /* "src/pyrfc/server.pyx":481 * * rc = RfcLaunchServer(self._server_connection._handle, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -36634,21 +36352,21 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ */ } - /* "src/pyrfc/server.pyx":468 + /* "src/pyrfc/server.pyx":483 * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) * _server_log("Server", f"launched {self._server_connection.handle}") # <<<<<<<<<<<<<< * * return rc */ - __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_server_log); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 468, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_server_log); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_server_connection), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_server_connection), __pyx_n_s_handle_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_launched, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_launched, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -36666,7 +36384,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ #if CYTHON_FAST_PYCALL if (PyFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_n_s_Server, __pyx_t_5}; - __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; @@ -36675,14 +36393,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ #if CYTHON_FAST_PYCCALL if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) { PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_n_s_Server, __pyx_t_5}; - __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } else #endif { - __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (__pyx_t_6) { __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; @@ -36693,14 +36411,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5); __pyx_t_5 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 468, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 483, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/server.pyx":470 + /* "src/pyrfc/server.pyx":485 * _server_log("Server", f"launched {self._server_connection.handle}") * * return rc # <<<<<<<<<<<<<< @@ -36708,13 +36426,13 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ * def start(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_3 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 470, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyInt_From_RFC_RC(__pyx_v_rc); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 485, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/server.pyx":452 + /* "src/pyrfc/server.pyx":467 * _server_log("Server function installed", server_functions[func_name]) * * def serve(self): # <<<<<<<<<<<<<< @@ -36737,7 +36455,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_8serve(struct __pyx_obj_5pyrfc_ return __pyx_r; } -/* "src/pyrfc/server.pyx":472 +/* "src/pyrfc/server.pyx":487 * return rc * * def start(self): # <<<<<<<<<<<<<< @@ -36770,14 +36488,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_10start(struct __pyx_obj_5pyrfc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("start", 0); - /* "src/pyrfc/server.pyx":476 + /* "src/pyrfc/server.pyx":491 * Start the RFC server in new thread, waiting for incoming requests and processes them. * """ * self._server_thread.start() # <<<<<<<<<<<<<< * * def stop(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_server_thread, __pyx_n_s_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 476, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_server_thread, __pyx_n_s_start); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -36791,12 +36509,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_10start(struct __pyx_obj_5pyrfc } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 476, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 491, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":472 + /* "src/pyrfc/server.pyx":487 * return rc * * def start(self): # <<<<<<<<<<<<<< @@ -36819,7 +36537,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_10start(struct __pyx_obj_5pyrfc return __pyx_r; } -/* "src/pyrfc/server.pyx":478 +/* "src/pyrfc/server.pyx":493 * self._server_thread.start() * * def stop(self): # <<<<<<<<<<<<<< @@ -36853,14 +36571,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_12stop(struct __pyx_obj_5pyrfc_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("stop", 0); - /* "src/pyrfc/server.pyx":482 + /* "src/pyrfc/server.pyx":497 * Stop the RFC server thread. * """ * if self._server_thread.is_alive(): # <<<<<<<<<<<<<< * self._server_thread.join() * */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_server_thread, __pyx_n_s_is_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 482, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_server_thread, __pyx_n_s_is_alive); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -36874,21 +36592,21 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_12stop(struct __pyx_obj_5pyrfc_ } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 482, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 497, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 482, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(5, 497, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { - /* "src/pyrfc/server.pyx":483 + /* "src/pyrfc/server.pyx":498 * """ * if self._server_thread.is_alive(): * self._server_thread.join() # <<<<<<<<<<<<<< * * def close(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_server_thread, __pyx_n_s_join); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 483, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_server_thread, __pyx_n_s_join); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -36902,12 +36620,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_12stop(struct __pyx_obj_5pyrfc_ } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 483, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 498, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":482 + /* "src/pyrfc/server.pyx":497 * Stop the RFC server thread. * """ * if self._server_thread.is_alive(): # <<<<<<<<<<<<<< @@ -36916,7 +36634,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_12stop(struct __pyx_obj_5pyrfc_ */ } - /* "src/pyrfc/server.pyx":478 + /* "src/pyrfc/server.pyx":493 * self._server_thread.start() * * def stop(self): # <<<<<<<<<<<<<< @@ -36939,7 +36657,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_12stop(struct __pyx_obj_5pyrfc_ return __pyx_r; } -/* "src/pyrfc/server.pyx":485 +/* "src/pyrfc/server.pyx":500 * self._server_thread.join() * * def close(self): # <<<<<<<<<<<<<< @@ -36972,14 +36690,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_14close(struct __pyx_obj_5pyrfc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("close", 0); - /* "src/pyrfc/server.pyx":492 + /* "src/pyrfc/server.pyx":507 * servers are registered. * """ * self.stop() # <<<<<<<<<<<<<< * self._close() * */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_stop); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 492, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_stop); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -36993,19 +36711,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_14close(struct __pyx_obj_5pyrfc } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 492, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 507, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":493 + /* "src/pyrfc/server.pyx":508 * """ * self.stop() * self._close() # <<<<<<<<<<<<<< * * def get_server_attributes(self): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 493, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -37019,12 +36737,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_14close(struct __pyx_obj_5pyrfc } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 493, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 508, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":485 + /* "src/pyrfc/server.pyx":500 * self._server_thread.join() * * def close(self): # <<<<<<<<<<<<<< @@ -37047,16 +36765,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_14close(struct __pyx_obj_5pyrfc return __pyx_r; } -/* "src/pyrfc/server.pyx":495 +/* "src/pyrfc/server.pyx":510 * self._close() * * def get_server_attributes(self): # <<<<<<<<<<<<<< - * cdef RFC_RC rc - * cdef RFC_SERVER_ATTRIBUTES attributes + * """Retrieves detailed information about a multi-count Registered Server or a TCP Socket Server. + * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_17get_server_attributes(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_6Server_16get_server_attributes[] = "Retrieves detailed information about a multi-count Registered Server or a TCP Socket Server.\n\n :returns: Dictionary with server state and attributes\n :rtype: dict(str, str or int)\n\n * serverName: This server's name as given when creating the server.\n * protocolType: This RFC server's type:\n RFC_MULTI_COUNT_REGISTERED_SERVER or RFC_TCP_SOCKET_SERVER\n * registrationCount: The current number of active registrations (in case of a Registered Server)\n or the maximum number of parallel connections the server will accept (in case of a TCP Socket Server)\n * state: Used in state information in order to indicate the current state of an RFC Server.\n * currentBusyCount: The number of requests currently being processed.\n * peakBusyCount: The maximum number of requests the server has been processing in parallel since it has been created\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_6Server_17get_server_attributes(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -37080,12 +36799,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct PyObject *__pyx_t_3 = NULL; struct __pyx_opt_args_5pyrfc_6_cyrfc_wrapString __pyx_t_4; PyObject *__pyx_t_5 = NULL; + PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_7 = NULL; + PyObject *__pyx_t_8 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_server_attributes", 0); - /* "src/pyrfc/server.pyx":500 + /* "src/pyrfc/server.pyx":529 * cdef RFC_ERROR_INFO errorInfo * * rc = RfcGetServerAttributes(self._server_connection._handle, &attributes, &errorInfo) # <<<<<<<<<<<<<< @@ -37094,7 +36816,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct */ __pyx_v_rc = RfcGetServerAttributes(__pyx_v_self->_server_connection->_handle, (&__pyx_v_attributes), (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":501 + /* "src/pyrfc/server.pyx":530 * * rc = RfcGetServerAttributes(self._server_connection._handle, &attributes, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -37112,20 +36834,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct __pyx_L4_bool_binop_done:; if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/server.pyx":502 + /* "src/pyrfc/server.pyx":531 * rc = RfcGetServerAttributes(self._server_connection._handle, &attributes, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * rfcServerState = wrapString(RfcGetServerStateAsString(attributes.state), -1, True) * return { */ - __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 502, __pyx_L1_error) + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 531, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __PYX_ERR(5, 502, __pyx_L1_error) + __PYX_ERR(5, 531, __pyx_L1_error) - /* "src/pyrfc/server.pyx":501 + /* "src/pyrfc/server.pyx":530 * * rc = RfcGetServerAttributes(self._server_connection._handle, &attributes, &errorInfo) * if rc != RFC_OK or errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -37134,7 +36856,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct */ } - /* "src/pyrfc/server.pyx":503 + /* "src/pyrfc/server.pyx":532 * if rc != RFC_OK or errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) * rfcServerState = wrapString(RfcGetServerStateAsString(attributes.state), -1, True) # <<<<<<<<<<<<<< @@ -37144,12 +36866,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct __pyx_t_4.__pyx_n = 2; __pyx_t_4.uclen = __pyx_int_neg_1; __pyx_t_4.rstrip = Py_True; - __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapString(RfcGetServerStateAsString(__pyx_v_attributes.state), &__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 503, __pyx_L1_error) + __pyx_t_3 = __pyx_f_5pyrfc_6_cyrfc_wrapString(RfcGetServerStateAsString(__pyx_v_attributes.state), &__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 532, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_v_rfcServerState = __pyx_t_3; __pyx_t_3 = 0; - /* "src/pyrfc/server.pyx":504 + /* "src/pyrfc/server.pyx":533 * raise wrapError(&errorInfo) * rfcServerState = wrapString(RfcGetServerStateAsString(attributes.state), -1, True) * return { # <<<<<<<<<<<<<< @@ -37158,100 +36880,131 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct */ __Pyx_XDECREF(__pyx_r); - /* "src/pyrfc/server.pyx":506 + /* "src/pyrfc/server.pyx":535 * return { * # This server's name as given when creating the server. * 'serverName': wrapString(attributes.serverName, -1, True) # <<<<<<<<<<<<<< * # This RFC server's type. Will be one of RFC_MULTI_COUNT_REGISTERED_SERVER or RFC_TCP_SOCKET_SERVER * , 'protocolType': "multi count" if attributes.type == RFC_MULTI_COUNT_REGISTERED_SERVER */ - __pyx_t_3 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 506, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4.__pyx_n = 2; __pyx_t_4.uclen = __pyx_int_neg_1; __pyx_t_4.rstrip = Py_True; - __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_attributes.serverName, &__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 506, __pyx_L1_error) + __pyx_t_5 = __pyx_f_5pyrfc_6_cyrfc_wrapString(__pyx_v_attributes.serverName, &__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_serverName, __pyx_t_5) < 0) __PYX_ERR(5, 506, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_serverName, __pyx_t_5) < 0) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/server.pyx":508 + /* "src/pyrfc/server.pyx":537 * 'serverName': wrapString(attributes.serverName, -1, True) * # This RFC server's type. Will be one of RFC_MULTI_COUNT_REGISTERED_SERVER or RFC_TCP_SOCKET_SERVER * , 'protocolType': "multi count" if attributes.type == RFC_MULTI_COUNT_REGISTERED_SERVER # <<<<<<<<<<<<<< - * else "tcp socket" # Own host name + * else socket.gethostname() # Own host name * # The current number of active registrations (in case of a Registered Server) */ if (((__pyx_v_attributes.type == RFC_MULTI_COUNT_REGISTERED_SERVER) != 0)) { __Pyx_INCREF(__pyx_kp_s_multi_count); __pyx_t_5 = __pyx_kp_s_multi_count; } else { - __Pyx_INCREF(__pyx_kp_s_tcp_socket); - __pyx_t_5 = __pyx_kp_s_tcp_socket; + + /* "src/pyrfc/server.pyx":538 + * # This RFC server's type. Will be one of RFC_MULTI_COUNT_REGISTERED_SERVER or RFC_TCP_SOCKET_SERVER + * , 'protocolType': "multi count" if attributes.type == RFC_MULTI_COUNT_REGISTERED_SERVER + * else socket.gethostname() # Own host name # <<<<<<<<<<<<<< + * # The current number of active registrations (in case of a Registered Server) + * # or the maximum number of parallel connections the server will accept (in case of a TCP Socket Server) + */ + __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_socket); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_gethostname); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_7 = NULL; + if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) { + __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_8); + if (likely(__pyx_t_7)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_8, function); + } + } + __pyx_t_6 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_5 = __pyx_t_6; + __pyx_t_6 = 0; } - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_protocolType, __pyx_t_5) < 0) __PYX_ERR(5, 506, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_protocolType, __pyx_t_5) < 0) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/server.pyx":512 + /* "src/pyrfc/server.pyx":541 * # The current number of active registrations (in case of a Registered Server) * # or the maximum number of parallel connections the server will accept (in case of a TCP Socket Server) * , 'registrationCount': attributes.registrationCount # <<<<<<<<<<<<<< * # Used in state information in order to indicate the current state of an RFC Server. * , 'state': rfcServerState */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_attributes.registrationCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 512, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_attributes.registrationCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 541, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_registrationCount, __pyx_t_5) < 0) __PYX_ERR(5, 506, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_registrationCount, __pyx_t_5) < 0) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/server.pyx":514 + /* "src/pyrfc/server.pyx":543 * , 'registrationCount': attributes.registrationCount * # Used in state information in order to indicate the current state of an RFC Server. * , 'state': rfcServerState # <<<<<<<<<<<<<< * # The number of requests currently being processed. * , 'currentBusyCount': attributes.currentBusyCount */ - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_state, __pyx_v_rfcServerState) < 0) __PYX_ERR(5, 506, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_state, __pyx_v_rfcServerState) < 0) __PYX_ERR(5, 535, __pyx_L1_error) - /* "src/pyrfc/server.pyx":516 + /* "src/pyrfc/server.pyx":545 * , 'state': rfcServerState * # The number of requests currently being processed. * , 'currentBusyCount': attributes.currentBusyCount # <<<<<<<<<<<<<< * # The maximum number of requests the server has been processing in parallel since it has been created * , 'peakBusyCount': attributes.peakBusyCount */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_attributes.currentBusyCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 516, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_attributes.currentBusyCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 545, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_currentBusyCount, __pyx_t_5) < 0) __PYX_ERR(5, 506, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_currentBusyCount, __pyx_t_5) < 0) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "src/pyrfc/server.pyx":518 + /* "src/pyrfc/server.pyx":547 * , 'currentBusyCount': attributes.currentBusyCount * # The maximum number of requests the server has been processing in parallel since it has been created * , 'peakBusyCount': attributes.peakBusyCount # <<<<<<<<<<<<<< * } * */ - __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_attributes.peakBusyCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 518, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_From_unsigned_int(__pyx_v_attributes.peakBusyCount); if (unlikely(!__pyx_t_5)) __PYX_ERR(5, 547, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_peakBusyCount, __pyx_t_5) < 0) __PYX_ERR(5, 506, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_peakBusyCount, __pyx_t_5) < 0) __PYX_ERR(5, 535, __pyx_L1_error) __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_r = __pyx_t_3; __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/server.pyx":495 + /* "src/pyrfc/server.pyx":510 * self._close() * * def get_server_attributes(self): # <<<<<<<<<<<<<< - * cdef RFC_RC rc - * cdef RFC_SERVER_ATTRIBUTES attributes + * """Retrieves detailed information about a multi-count Registered Server or a TCP Socket Server. + * */ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_XDECREF(__pyx_t_8); __Pyx_AddTraceback("pyrfc._cyrfc.Server.get_server_attributes", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; @@ -37261,7 +37014,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_16get_server_attributes(struct return __pyx_r; } -/* "src/pyrfc/server.pyx":521 +/* "src/pyrfc/server.pyx":550 * } * * def _close(self): # <<<<<<<<<<<<<< @@ -37303,24 +37056,24 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_close", 0); - /* "src/pyrfc/server.pyx":527 + /* "src/pyrfc/server.pyx":556 * """ * # Shutdown server * if self._server_connection: # <<<<<<<<<<<<<< * self._server_connection.close() * # Remove all installed server functions */ - __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_self->_server_connection)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(5, 527, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_self->_server_connection)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(5, 556, __pyx_L1_error) if (__pyx_t_1) { - /* "src/pyrfc/server.pyx":528 + /* "src/pyrfc/server.pyx":557 * # Shutdown server * if self._server_connection: * self._server_connection.close() # <<<<<<<<<<<<<< * # Remove all installed server functions * after_remove = {} */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_server_connection), __pyx_n_s_close_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 528, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_server_connection), __pyx_n_s_close_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -37334,12 +37087,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 528, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 557, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":527 + /* "src/pyrfc/server.pyx":556 * """ * # Shutdown server * if self._server_connection: # <<<<<<<<<<<<<< @@ -37348,28 +37101,28 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf */ } - /* "src/pyrfc/server.pyx":530 + /* "src/pyrfc/server.pyx":559 * self._server_connection.close() * # Remove all installed server functions * after_remove = {} # <<<<<<<<<<<<<< * global server_functions * for func_name, func_data in server_functions.items(): */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 530, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 559, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_v_after_remove = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":532 + /* "src/pyrfc/server.pyx":561 * after_remove = {} * global server_functions * for func_name, func_data in server_functions.items(): # <<<<<<<<<<<<<< * if func_data["server"] != self: * after_remove[func_name] = func_data */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 532, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_server_functions); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_items); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_items); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_3 = NULL; @@ -37384,16 +37137,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf } __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 532, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { __pyx_t_4 = __pyx_t_2; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_6 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 561, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; for (;;) { @@ -37401,17 +37154,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf if (likely(PyList_CheckExact(__pyx_t_4))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 561, __pyx_L1_error) #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 561, __pyx_L1_error) #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } @@ -37421,7 +37174,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(5, 532, __pyx_L1_error) + else __PYX_ERR(5, 561, __pyx_L1_error) } break; } @@ -37433,7 +37186,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf if (unlikely(size != 2)) { if (size > 2) __Pyx_RaiseTooManyValuesError(2); else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - __PYX_ERR(5, 532, __pyx_L1_error) + __PYX_ERR(5, 561, __pyx_L1_error) } #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS if (likely(PyTuple_CheckExact(sequence))) { @@ -37446,15 +37199,15 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf __Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_7); #else - __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); #endif __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; } else { Py_ssize_t index = -1; - __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 532, __pyx_L1_error) + __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext; @@ -37462,7 +37215,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf __Pyx_GOTREF(__pyx_t_3); index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L6_unpacking_failed; __Pyx_GOTREF(__pyx_t_7); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(5, 532, __pyx_L1_error) + if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(5, 561, __pyx_L1_error) __pyx_t_9 = NULL; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; goto __pyx_L7_unpacking_done; @@ -37470,7 +37223,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_t_9 = NULL; if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - __PYX_ERR(5, 532, __pyx_L1_error) + __PYX_ERR(5, 561, __pyx_L1_error) __pyx_L7_unpacking_done:; } __Pyx_XDECREF_SET(__pyx_v_func_name, __pyx_t_3); @@ -37478,31 +37231,31 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf __Pyx_XDECREF_SET(__pyx_v_func_data, __pyx_t_7); __pyx_t_7 = 0; - /* "src/pyrfc/server.pyx":533 + /* "src/pyrfc/server.pyx":562 * global server_functions * for func_name, func_data in server_functions.items(): * if func_data["server"] != self: # <<<<<<<<<<<<<< * after_remove[func_name] = func_data * server_functions = after_remove */ - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_data, __pyx_n_s_server); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 533, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_func_data, __pyx_n_s_server); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 562, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_v_self), Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 533, __pyx_L1_error) + __pyx_t_7 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_v_self), Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(5, 562, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(5, 533, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(5, 562, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_1) { - /* "src/pyrfc/server.pyx":534 + /* "src/pyrfc/server.pyx":563 * for func_name, func_data in server_functions.items(): * if func_data["server"] != self: * after_remove[func_name] = func_data # <<<<<<<<<<<<<< * server_functions = after_remove * */ - if (unlikely(PyDict_SetItem(__pyx_v_after_remove, __pyx_v_func_name, __pyx_v_func_data) < 0)) __PYX_ERR(5, 534, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v_after_remove, __pyx_v_func_name, __pyx_v_func_data) < 0)) __PYX_ERR(5, 563, __pyx_L1_error) - /* "src/pyrfc/server.pyx":533 + /* "src/pyrfc/server.pyx":562 * global server_functions * for func_name, func_data in server_functions.items(): * if func_data["server"] != self: # <<<<<<<<<<<<<< @@ -37511,7 +37264,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf */ } - /* "src/pyrfc/server.pyx":532 + /* "src/pyrfc/server.pyx":561 * after_remove = {} * global server_functions * for func_name, func_data in server_functions.items(): # <<<<<<<<<<<<<< @@ -37521,16 +37274,16 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":535 + /* "src/pyrfc/server.pyx":564 * if func_data["server"] != self: * after_remove[func_name] = func_data * server_functions = after_remove # <<<<<<<<<<<<<< * * cdef _error(self, RFC_ERROR_INFO* errorInfo): */ - if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_functions, __pyx_v_after_remove) < 0) __PYX_ERR(5, 535, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_functions, __pyx_v_after_remove) < 0) __PYX_ERR(5, 564, __pyx_L1_error) - /* "src/pyrfc/server.pyx":521 + /* "src/pyrfc/server.pyx":550 * } * * def _close(self): # <<<<<<<<<<<<<< @@ -37558,7 +37311,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_18_close(struct __pyx_obj_5pyrf return __pyx_r; } -/* "src/pyrfc/server.pyx":537 +/* "src/pyrfc/server.pyx":566 * server_functions = after_remove * * cdef _error(self, RFC_ERROR_INFO* errorInfo): # <<<<<<<<<<<<<< @@ -37575,20 +37328,20 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_6Server__error(CYTHON_UNUSED struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_error", 0); - /* "src/pyrfc/server.pyx":552 + /* "src/pyrfc/server.pyx":581 * # self.alive = False * * raise wrapError(errorInfo) # <<<<<<<<<<<<<< * * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError(__pyx_v_errorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 552, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError(__pyx_v_errorInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 581, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 552, __pyx_L1_error) + __PYX_ERR(5, 581, __pyx_L1_error) - /* "src/pyrfc/server.pyx":537 + /* "src/pyrfc/server.pyx":566 * server_functions = after_remove * * cdef _error(self, RFC_ERROR_INFO* errorInfo): # <<<<<<<<<<<<<< @@ -37606,7 +37359,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_6Server__error(CYTHON_UNUSED struct __py return __pyx_r; } -/* "src/pyrfc/server.pyx":284 +/* "src/pyrfc/server.pyx":274 * thereof if the connection attempt fails. * """ * cdef public bint debug # <<<<<<<<<<<<<< @@ -37636,7 +37389,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_5debug___get__(struct __pyx_obj int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->debug); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 284, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->debug); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 274, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -37674,7 +37427,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server_5debug_2__set__(struct __pyx_obj_5pyr const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 284, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 274, __pyx_L1_error) __pyx_v_self->debug = __pyx_t_1; /* function exit code */ @@ -37688,7 +37441,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server_5debug_2__set__(struct __pyx_obj_5pyr return __pyx_r; } -/* "src/pyrfc/server.pyx":285 +/* "src/pyrfc/server.pyx":275 * """ * cdef public bint debug * cdef public bint rstrip # <<<<<<<<<<<<<< @@ -37718,7 +37471,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_6rstrip___get__(struct __pyx_ob int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->rstrip); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 285, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->rstrip); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 275, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; @@ -37756,7 +37509,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_6Server_6rstrip_2__set__(struct __pyx_obj_5py const char *__pyx_filename = NULL; int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 285, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(5, 275, __pyx_L1_error) __pyx_v_self->rstrip = __pyx_t_1; /* function exit code */ @@ -37804,7 +37557,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_20__reduce_cython__(CYTHON_UNUS * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -37860,7 +37613,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_22__setstate_cython__(CYTHON_UN * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -37883,7 +37636,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_6Server_22__setstate_cython__(CYTHON_UN return __pyx_r; } -/* "src/pyrfc/server.pyx":555 +/* "src/pyrfc/server.pyx":584 * * * cdef RFC_TYPE_DESC_HANDLE fillTypeDescription(type_desc): # <<<<<<<<<<<<<< @@ -37918,7 +37671,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("fillTypeDescription", 0); - /* "src/pyrfc/server.pyx":560 + /* "src/pyrfc/server.pyx":589 * :return: Handle of RFC_TYPE_DESC_HANDLE * """ * cdef RFC_RC rc = RFC_OK # <<<<<<<<<<<<<< @@ -37927,20 +37680,20 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ __pyx_v_rc = RFC_OK; - /* "src/pyrfc/server.pyx":567 + /* "src/pyrfc/server.pyx":596 * * # Set name, nuc_length, and uc_length * sapuc = fillString(type_desc.name) # <<<<<<<<<<<<<< * typeDesc = RfcCreateTypeDesc(sapuc, &errorInfo) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 567, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 596, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 567, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 596, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_sapuc = __pyx_t_2; - /* "src/pyrfc/server.pyx":568 + /* "src/pyrfc/server.pyx":597 * # Set name, nuc_length, and uc_length * sapuc = fillString(type_desc.name) * typeDesc = RfcCreateTypeDesc(sapuc, &errorInfo) # <<<<<<<<<<<<<< @@ -37949,7 +37702,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ __pyx_v_typeDesc = RfcCreateTypeDesc(__pyx_v_sapuc, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":569 + /* "src/pyrfc/server.pyx":598 * sapuc = fillString(type_desc.name) * typeDesc = RfcCreateTypeDesc(sapuc, &errorInfo) * free(sapuc) # <<<<<<<<<<<<<< @@ -37958,7 +37711,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":570 + /* "src/pyrfc/server.pyx":599 * typeDesc = RfcCreateTypeDesc(sapuc, &errorInfo) * free(sapuc) * if typeDesc == NULL: # <<<<<<<<<<<<<< @@ -37968,20 +37721,20 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject __pyx_t_3 = ((__pyx_v_typeDesc == NULL) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/server.pyx":571 + /* "src/pyrfc/server.pyx":600 * free(sapuc) * if typeDesc == NULL: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * rc = RfcSetTypeLength(typeDesc, type_desc.nuc_length, type_desc.uc_length, &errorInfo) * if rc != RFC_OK: */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 571, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 600, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 571, __pyx_L1_error) + __PYX_ERR(5, 600, __pyx_L1_error) - /* "src/pyrfc/server.pyx":570 + /* "src/pyrfc/server.pyx":599 * typeDesc = RfcCreateTypeDesc(sapuc, &errorInfo) * free(sapuc) * if typeDesc == NULL: # <<<<<<<<<<<<<< @@ -37990,24 +37743,24 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ } - /* "src/pyrfc/server.pyx":572 + /* "src/pyrfc/server.pyx":601 * if typeDesc == NULL: * raise wrapError(&errorInfo) * rc = RfcSetTypeLength(typeDesc, type_desc.nuc_length, type_desc.uc_length, &errorInfo) # <<<<<<<<<<<<<< * if rc != RFC_OK: * RfcDestroyTypeDesc(typeDesc, NULL) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 572, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 572, __pyx_L1_error) + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 601, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 572, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 601, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 572, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_1); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 601, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_rc = RfcSetTypeLength(__pyx_v_typeDesc, __pyx_t_4, __pyx_t_5, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":573 + /* "src/pyrfc/server.pyx":602 * raise wrapError(&errorInfo) * rc = RfcSetTypeLength(typeDesc, type_desc.nuc_length, type_desc.uc_length, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -38017,7 +37770,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject __pyx_t_3 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/server.pyx":574 + /* "src/pyrfc/server.pyx":603 * rc = RfcSetTypeLength(typeDesc, type_desc.nuc_length, type_desc.uc_length, &errorInfo) * if rc != RFC_OK: * RfcDestroyTypeDesc(typeDesc, NULL) # <<<<<<<<<<<<<< @@ -38026,20 +37779,20 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ (void)(RfcDestroyTypeDesc(__pyx_v_typeDesc, NULL)); - /* "src/pyrfc/server.pyx":575 + /* "src/pyrfc/server.pyx":604 * if rc != RFC_OK: * RfcDestroyTypeDesc(typeDesc, NULL) * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * for field_desc in type_desc.fields: */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 575, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 604, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 575, __pyx_L1_error) + __PYX_ERR(5, 604, __pyx_L1_error) - /* "src/pyrfc/server.pyx":573 + /* "src/pyrfc/server.pyx":602 * raise wrapError(&errorInfo) * rc = RfcSetTypeLength(typeDesc, type_desc.nuc_length, type_desc.uc_length, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -38048,22 +37801,22 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ } - /* "src/pyrfc/server.pyx":577 + /* "src/pyrfc/server.pyx":606 * raise wrapError(&errorInfo) * * for field_desc in type_desc.fields: # <<<<<<<<<<<<<< * # Set name * sapuc = fillString(field_desc['name']) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_type_desc, __pyx_n_s_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { __pyx_t_6 = __pyx_t_1; __Pyx_INCREF(__pyx_t_6); __pyx_t_7 = 0; __pyx_t_8 = NULL; } else { - __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 606, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { @@ -38071,17 +37824,17 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject if (likely(PyList_CheckExact(__pyx_t_6))) { if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(5, 606, __pyx_L1_error) #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } else { if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_6)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(5, 606, __pyx_L1_error) #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 577, __pyx_L1_error) + __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 606, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } @@ -38091,7 +37844,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(5, 577, __pyx_L1_error) + else __PYX_ERR(5, 606, __pyx_L1_error) } break; } @@ -38100,33 +37853,33 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject __Pyx_XDECREF_SET(__pyx_v_field_desc, __pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":579 + /* "src/pyrfc/server.pyx":608 * for field_desc in type_desc.fields: * # Set name * sapuc = fillString(field_desc['name']) # <<<<<<<<<<<<<< * strncpyU(fieldDesc.name, sapuc, len(field_desc['name']) + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 579, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 579, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 608, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_sapuc = __pyx_t_2; - /* "src/pyrfc/server.pyx":580 + /* "src/pyrfc/server.pyx":609 * # Set name * sapuc = fillString(field_desc['name']) * strncpyU(fieldDesc.name, sapuc, len(field_desc['name']) + 1) # <<<<<<<<<<<<<< * free(sapuc) * fieldDesc.type = RfcFieldType[field_desc['field_type']].value */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 580, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 609, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(5, 580, __pyx_L1_error) + __pyx_t_9 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(5, 609, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; strncpyU(__pyx_v_fieldDesc.name, __pyx_v_sapuc, (__pyx_t_9 + 1)); - /* "src/pyrfc/server.pyx":581 + /* "src/pyrfc/server.pyx":610 * sapuc = fillString(field_desc['name']) * strncpyU(fieldDesc.name, sapuc, len(field_desc['name']) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -38135,120 +37888,120 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":582 + /* "src/pyrfc/server.pyx":611 * strncpyU(fieldDesc.name, sapuc, len(field_desc['name']) + 1) * free(sapuc) * fieldDesc.type = RfcFieldType[field_desc['field_type']].value # <<<<<<<<<<<<<< * fieldDesc.nucLength = field_desc['nuc_length'] * fieldDesc.nucOffset = field_desc['nuc_offset'] */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 582, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_field_type); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 582, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_field_type); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(5, 582, __pyx_L1_error) + __pyx_t_11 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(5, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_11); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 582, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 611, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __pyx_t_12 = ((RFCTYPE)__Pyx_PyInt_As_RFCTYPE(__pyx_t_10)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 582, __pyx_L1_error) + __pyx_t_12 = ((RFCTYPE)__Pyx_PyInt_As_RFCTYPE(__pyx_t_10)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 611, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_fieldDesc.type = __pyx_t_12; - /* "src/pyrfc/server.pyx":583 + /* "src/pyrfc/server.pyx":612 * free(sapuc) * fieldDesc.type = RfcFieldType[field_desc['field_type']].value * fieldDesc.nucLength = field_desc['nuc_length'] # <<<<<<<<<<<<<< * fieldDesc.nucOffset = field_desc['nuc_offset'] * fieldDesc.ucLength = field_desc['uc_length'] */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 583, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 612, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 583, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 612, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_fieldDesc.nucLength = __pyx_t_5; - /* "src/pyrfc/server.pyx":584 + /* "src/pyrfc/server.pyx":613 * fieldDesc.type = RfcFieldType[field_desc['field_type']].value * fieldDesc.nucLength = field_desc['nuc_length'] * fieldDesc.nucOffset = field_desc['nuc_offset'] # <<<<<<<<<<<<<< * fieldDesc.ucLength = field_desc['uc_length'] * fieldDesc.ucOffset = field_desc['uc_offset'] */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_nuc_offset); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 584, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_nuc_offset); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 613, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 584, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 613, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_fieldDesc.nucOffset = __pyx_t_5; - /* "src/pyrfc/server.pyx":585 + /* "src/pyrfc/server.pyx":614 * fieldDesc.nucLength = field_desc['nuc_length'] * fieldDesc.nucOffset = field_desc['nuc_offset'] * fieldDesc.ucLength = field_desc['uc_length'] # <<<<<<<<<<<<<< * fieldDesc.ucOffset = field_desc['uc_offset'] * fieldDesc.decimals = field_desc['decimals'] */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 585, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 614, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 585, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 614, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_fieldDesc.ucLength = __pyx_t_5; - /* "src/pyrfc/server.pyx":586 + /* "src/pyrfc/server.pyx":615 * fieldDesc.nucOffset = field_desc['nuc_offset'] * fieldDesc.ucLength = field_desc['uc_length'] * fieldDesc.ucOffset = field_desc['uc_offset'] # <<<<<<<<<<<<<< * fieldDesc.decimals = field_desc['decimals'] * if field_desc['type_description'] is not None: */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_uc_offset); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 586, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_uc_offset); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 615, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 586, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 615, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_fieldDesc.ucOffset = __pyx_t_5; - /* "src/pyrfc/server.pyx":587 + /* "src/pyrfc/server.pyx":616 * fieldDesc.ucLength = field_desc['uc_length'] * fieldDesc.ucOffset = field_desc['uc_offset'] * fieldDesc.decimals = field_desc['decimals'] # <<<<<<<<<<<<<< * if field_desc['type_description'] is not None: * fieldDesc.typeDescHandle = fillTypeDescription(field_desc['type_description']) */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_decimals); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 587, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_decimals); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 616, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); - __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 587, __pyx_L1_error) + __pyx_t_5 = __Pyx_PyInt_As_unsigned_int(__pyx_t_10); if (unlikely((__pyx_t_5 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 616, __pyx_L1_error) __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_v_fieldDesc.decimals = __pyx_t_5; - /* "src/pyrfc/server.pyx":588 + /* "src/pyrfc/server.pyx":617 * fieldDesc.ucOffset = field_desc['uc_offset'] * fieldDesc.decimals = field_desc['decimals'] * if field_desc['type_description'] is not None: # <<<<<<<<<<<<<< * fieldDesc.typeDescHandle = fillTypeDescription(field_desc['type_description']) * else: */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 588, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 617, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_t_3 = (__pyx_t_10 != Py_None); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __pyx_t_13 = (__pyx_t_3 != 0); if (__pyx_t_13) { - /* "src/pyrfc/server.pyx":589 + /* "src/pyrfc/server.pyx":618 * fieldDesc.decimals = field_desc['decimals'] * if field_desc['type_description'] is not None: * fieldDesc.typeDescHandle = fillTypeDescription(field_desc['type_description']) # <<<<<<<<<<<<<< * else: * fieldDesc.typeDescHandle = NULL */ - __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 589, __pyx_L1_error) + __pyx_t_10 = __Pyx_PyObject_Dict_GetItem(__pyx_v_field_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 618, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __pyx_v_fieldDesc.typeDescHandle = __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(__pyx_t_10); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "src/pyrfc/server.pyx":588 + /* "src/pyrfc/server.pyx":617 * fieldDesc.ucOffset = field_desc['uc_offset'] * fieldDesc.decimals = field_desc['decimals'] * if field_desc['type_description'] is not None: # <<<<<<<<<<<<<< @@ -38258,7 +38011,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject goto __pyx_L7; } - /* "src/pyrfc/server.pyx":591 + /* "src/pyrfc/server.pyx":620 * fieldDesc.typeDescHandle = fillTypeDescription(field_desc['type_description']) * else: * fieldDesc.typeDescHandle = NULL # <<<<<<<<<<<<<< @@ -38270,7 +38023,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject } __pyx_L7:; - /* "src/pyrfc/server.pyx":592 + /* "src/pyrfc/server.pyx":621 * else: * fieldDesc.typeDescHandle = NULL * fieldDesc.extendedDescription = NULL # <<<<<<<<<<<<<< @@ -38279,7 +38032,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ __pyx_v_fieldDesc.extendedDescription = NULL; - /* "src/pyrfc/server.pyx":593 + /* "src/pyrfc/server.pyx":622 * fieldDesc.typeDescHandle = NULL * fieldDesc.extendedDescription = NULL * rc = RfcAddTypeField(typeDesc, &fieldDesc, &errorInfo) # <<<<<<<<<<<<<< @@ -38288,7 +38041,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ __pyx_v_rc = RfcAddTypeField(__pyx_v_typeDesc, (&__pyx_v_fieldDesc), (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":594 + /* "src/pyrfc/server.pyx":623 * fieldDesc.extendedDescription = NULL * rc = RfcAddTypeField(typeDesc, &fieldDesc, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -38298,7 +38051,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject __pyx_t_13 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_13)) { - /* "src/pyrfc/server.pyx":595 + /* "src/pyrfc/server.pyx":624 * rc = RfcAddTypeField(typeDesc, &fieldDesc, &errorInfo) * if rc != RFC_OK: * RfcDestroyTypeDesc(typeDesc, NULL) # <<<<<<<<<<<<<< @@ -38307,20 +38060,20 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ (void)(RfcDestroyTypeDesc(__pyx_v_typeDesc, NULL)); - /* "src/pyrfc/server.pyx":596 + /* "src/pyrfc/server.pyx":625 * if rc != RFC_OK: * RfcDestroyTypeDesc(typeDesc, NULL) * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * return typeDesc */ - __pyx_t_10 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 596, __pyx_L1_error) + __pyx_t_10 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_10)) __PYX_ERR(5, 625, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_10); __Pyx_Raise(__pyx_t_10, 0, 0, 0); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __PYX_ERR(5, 596, __pyx_L1_error) + __PYX_ERR(5, 625, __pyx_L1_error) - /* "src/pyrfc/server.pyx":594 + /* "src/pyrfc/server.pyx":623 * fieldDesc.extendedDescription = NULL * rc = RfcAddTypeField(typeDesc, &fieldDesc, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -38329,7 +38082,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject */ } - /* "src/pyrfc/server.pyx":577 + /* "src/pyrfc/server.pyx":606 * raise wrapError(&errorInfo) * * for field_desc in type_desc.fields: # <<<<<<<<<<<<<< @@ -38339,7 +38092,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "src/pyrfc/server.pyx":598 + /* "src/pyrfc/server.pyx":627 * raise wrapError(&errorInfo) * * return typeDesc # <<<<<<<<<<<<<< @@ -38349,7 +38102,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject __pyx_r = __pyx_v_typeDesc; goto __pyx_L0; - /* "src/pyrfc/server.pyx":555 + /* "src/pyrfc/server.pyx":584 * * * cdef RFC_TYPE_DESC_HANDLE fillTypeDescription(type_desc): # <<<<<<<<<<<<<< @@ -38371,7 +38124,7 @@ static RFC_TYPE_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(PyObject return __pyx_r; } -/* "src/pyrfc/server.pyx":600 +/* "src/pyrfc/server.pyx":629 * return typeDesc * * cdef RFC_FUNCTION_DESC_HANDLE fillFunctionDescription(func_desc): # <<<<<<<<<<<<<< @@ -38406,20 +38159,20 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P int __pyx_clineno = 0; __Pyx_RefNannySetupContext("fillFunctionDescription", 0); - /* "src/pyrfc/server.pyx":611 + /* "src/pyrfc/server.pyx":640 * * # Set name * sapuc = fillString(func_desc.name) # <<<<<<<<<<<<<< * funcDesc = RfcCreateFunctionDesc(sapuc, &errorInfo) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_func_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 611, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_func_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 640, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 611, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 640, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_sapuc = __pyx_t_2; - /* "src/pyrfc/server.pyx":612 + /* "src/pyrfc/server.pyx":641 * # Set name * sapuc = fillString(func_desc.name) * funcDesc = RfcCreateFunctionDesc(sapuc, &errorInfo) # <<<<<<<<<<<<<< @@ -38428,7 +38181,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ __pyx_v_funcDesc = RfcCreateFunctionDesc(__pyx_v_sapuc, (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":613 + /* "src/pyrfc/server.pyx":642 * sapuc = fillString(func_desc.name) * funcDesc = RfcCreateFunctionDesc(sapuc, &errorInfo) * free(sapuc) # <<<<<<<<<<<<<< @@ -38437,7 +38190,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":614 + /* "src/pyrfc/server.pyx":643 * funcDesc = RfcCreateFunctionDesc(sapuc, &errorInfo) * free(sapuc) * if funcDesc == NULL: # <<<<<<<<<<<<<< @@ -38447,20 +38200,20 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P __pyx_t_3 = ((__pyx_v_funcDesc == NULL) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/server.pyx":615 + /* "src/pyrfc/server.pyx":644 * free(sapuc) * if funcDesc == NULL: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * for param_desc in func_desc.parameters: */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 615, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 644, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 615, __pyx_L1_error) + __PYX_ERR(5, 644, __pyx_L1_error) - /* "src/pyrfc/server.pyx":614 + /* "src/pyrfc/server.pyx":643 * funcDesc = RfcCreateFunctionDesc(sapuc, &errorInfo) * free(sapuc) * if funcDesc == NULL: # <<<<<<<<<<<<<< @@ -38469,22 +38222,22 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ } - /* "src/pyrfc/server.pyx":617 + /* "src/pyrfc/server.pyx":646 * raise wrapError(&errorInfo) * * for param_desc in func_desc.parameters: # <<<<<<<<<<<<<< * sapuc = fillString(param_desc['name']) * strncpyU(paramDesc.name, sapuc, len(param_desc['name']) + 1) */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_func_desc, __pyx_n_s_parameters); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_func_desc, __pyx_n_s_parameters); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; __pyx_t_6 = NULL; } else { - __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 646, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; for (;;) { @@ -38492,17 +38245,17 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P if (likely(PyList_CheckExact(__pyx_t_4))) { if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 646, __pyx_L1_error) #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } else { if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(5, 646, __pyx_L1_error) #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 617, __pyx_L1_error) + __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 646, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); #endif } @@ -38512,7 +38265,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(5, 617, __pyx_L1_error) + else __PYX_ERR(5, 646, __pyx_L1_error) } break; } @@ -38521,33 +38274,33 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P __Pyx_XDECREF_SET(__pyx_v_param_desc, __pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/server.pyx":618 + /* "src/pyrfc/server.pyx":647 * * for param_desc in func_desc.parameters: * sapuc = fillString(param_desc['name']) # <<<<<<<<<<<<<< * strncpyU(paramDesc.name, sapuc, len(param_desc['name']) + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 618, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 647, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 618, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 647, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_sapuc = __pyx_t_2; - /* "src/pyrfc/server.pyx":619 + /* "src/pyrfc/server.pyx":648 * for param_desc in func_desc.parameters: * sapuc = fillString(param_desc['name']) * strncpyU(paramDesc.name, sapuc, len(param_desc['name']) + 1) # <<<<<<<<<<<<<< * free(sapuc) * paramDesc.type = RfcFieldType[param_desc['parameter_type']].value */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 619, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 648, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(5, 619, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(5, 648, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; strncpyU(__pyx_v_paramDesc.name, __pyx_v_sapuc, (__pyx_t_7 + 1)); - /* "src/pyrfc/server.pyx":620 + /* "src/pyrfc/server.pyx":649 * sapuc = fillString(param_desc['name']) * strncpyU(paramDesc.name, sapuc, len(param_desc['name']) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -38556,116 +38309,116 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":621 + /* "src/pyrfc/server.pyx":650 * strncpyU(paramDesc.name, sapuc, len(param_desc['name']) + 1) * free(sapuc) * paramDesc.type = RfcFieldType[param_desc['parameter_type']].value # <<<<<<<<<<<<<< * paramDesc.direction = RfcParameterDirection[param_desc['direction']].value * paramDesc.nucLength = param_desc['nuc_length'] */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 621, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_RfcFieldType); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_parameter_type); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 621, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_parameter_type); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 621, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_value); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 621, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_value); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 650, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_10 = ((RFCTYPE)__Pyx_PyInt_As_RFCTYPE(__pyx_t_8)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 621, __pyx_L1_error) + __pyx_t_10 = ((RFCTYPE)__Pyx_PyInt_As_RFCTYPE(__pyx_t_8)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 650, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_paramDesc.type = __pyx_t_10; - /* "src/pyrfc/server.pyx":622 + /* "src/pyrfc/server.pyx":651 * free(sapuc) * paramDesc.type = RfcFieldType[param_desc['parameter_type']].value * paramDesc.direction = RfcParameterDirection[param_desc['direction']].value # <<<<<<<<<<<<<< * paramDesc.nucLength = param_desc['nuc_length'] * paramDesc.ucLength = param_desc['uc_length'] */ - __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_RfcParameterDirection); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 622, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_RfcParameterDirection); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_direction); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 622, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_direction); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 622, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_8, __pyx_t_9); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 622, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 651, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_11 = ((RFC_DIRECTION)__Pyx_PyInt_As_RFC_DIRECTION(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 622, __pyx_L1_error) + __pyx_t_11 = ((RFC_DIRECTION)__Pyx_PyInt_As_RFC_DIRECTION(__pyx_t_9)); if (unlikely(PyErr_Occurred())) __PYX_ERR(5, 651, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_paramDesc.direction = __pyx_t_11; - /* "src/pyrfc/server.pyx":623 + /* "src/pyrfc/server.pyx":652 * paramDesc.type = RfcFieldType[param_desc['parameter_type']].value * paramDesc.direction = RfcParameterDirection[param_desc['direction']].value * paramDesc.nucLength = param_desc['nuc_length'] # <<<<<<<<<<<<<< * paramDesc.ucLength = param_desc['uc_length'] * paramDesc.decimals = param_desc['decimals'] */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 623, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_nuc_length); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 652, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 623, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 652, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_paramDesc.nucLength = __pyx_t_12; - /* "src/pyrfc/server.pyx":624 + /* "src/pyrfc/server.pyx":653 * paramDesc.direction = RfcParameterDirection[param_desc['direction']].value * paramDesc.nucLength = param_desc['nuc_length'] * paramDesc.ucLength = param_desc['uc_length'] # <<<<<<<<<<<<<< * paramDesc.decimals = param_desc['decimals'] * # defaultValue */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 624, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_uc_length); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 653, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 624, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 653, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_paramDesc.ucLength = __pyx_t_12; - /* "src/pyrfc/server.pyx":625 + /* "src/pyrfc/server.pyx":654 * paramDesc.nucLength = param_desc['nuc_length'] * paramDesc.ucLength = param_desc['uc_length'] * paramDesc.decimals = param_desc['decimals'] # <<<<<<<<<<<<<< * # defaultValue * sapuc = fillString(param_desc['default_value']) */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_decimals); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 625, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_decimals); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 625, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_unsigned_int(__pyx_t_9); if (unlikely((__pyx_t_12 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(5, 654, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_paramDesc.decimals = __pyx_t_12; - /* "src/pyrfc/server.pyx":627 + /* "src/pyrfc/server.pyx":656 * paramDesc.decimals = param_desc['decimals'] * # defaultValue * sapuc = fillString(param_desc['default_value']) # <<<<<<<<<<<<<< * strncpyU(paramDesc.defaultValue, sapuc, len(param_desc['default_value']) + 1) * free(sapuc) */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_default_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 627, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_default_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 656, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_9); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 627, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_9); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 656, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_sapuc = __pyx_t_2; - /* "src/pyrfc/server.pyx":628 + /* "src/pyrfc/server.pyx":657 * # defaultValue * sapuc = fillString(param_desc['default_value']) * strncpyU(paramDesc.defaultValue, sapuc, len(param_desc['default_value']) + 1) # <<<<<<<<<<<<<< * free(sapuc) * # parameterText */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_default_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 628, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_default_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 657, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_7 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(5, 628, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(5, 657, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; strncpyU(__pyx_v_paramDesc.defaultValue, __pyx_v_sapuc, (__pyx_t_7 + 1)); - /* "src/pyrfc/server.pyx":629 + /* "src/pyrfc/server.pyx":658 * sapuc = fillString(param_desc['default_value']) * strncpyU(paramDesc.defaultValue, sapuc, len(param_desc['default_value']) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -38674,33 +38427,33 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":631 + /* "src/pyrfc/server.pyx":660 * free(sapuc) * # parameterText * sapuc = fillString(param_desc['parameter_text']) # <<<<<<<<<<<<<< * strncpyU(paramDesc.parameterText, sapuc, len(param_desc['parameter_text']) + 1) * free(sapuc) */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_parameter_text); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 631, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_parameter_text); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_9); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 631, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_9); if (unlikely(__pyx_t_2 == ((SAP_UC *)NULL))) __PYX_ERR(5, 660, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_sapuc = __pyx_t_2; - /* "src/pyrfc/server.pyx":632 + /* "src/pyrfc/server.pyx":661 * # parameterText * sapuc = fillString(param_desc['parameter_text']) * strncpyU(paramDesc.parameterText, sapuc, len(param_desc['parameter_text']) + 1) # <<<<<<<<<<<<<< * free(sapuc) * paramDesc.optional = param_desc['optional'] */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_parameter_text); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 632, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_parameter_text); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 661, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_7 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(5, 632, __pyx_L1_error) + __pyx_t_7 = PyObject_Length(__pyx_t_9); if (unlikely(__pyx_t_7 == ((Py_ssize_t)-1))) __PYX_ERR(5, 661, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; strncpyU(__pyx_v_paramDesc.parameterText, __pyx_v_sapuc, (__pyx_t_7 + 1)); - /* "src/pyrfc/server.pyx":633 + /* "src/pyrfc/server.pyx":662 * sapuc = fillString(param_desc['parameter_text']) * strncpyU(paramDesc.parameterText, sapuc, len(param_desc['parameter_text']) + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -38709,46 +38462,46 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":634 + /* "src/pyrfc/server.pyx":663 * strncpyU(paramDesc.parameterText, sapuc, len(param_desc['parameter_text']) + 1) * free(sapuc) * paramDesc.optional = param_desc['optional'] # <<<<<<<<<<<<<< * if param_desc['type_description'] is not None: * paramDesc.typeDescHandle = fillTypeDescription(param_desc['type_description']) */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_optional); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 634, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_optional); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 663, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 634, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 663, __pyx_L1_error) __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_v_paramDesc.optional = __pyx_t_3; - /* "src/pyrfc/server.pyx":635 + /* "src/pyrfc/server.pyx":664 * free(sapuc) * paramDesc.optional = param_desc['optional'] * if param_desc['type_description'] is not None: # <<<<<<<<<<<<<< * paramDesc.typeDescHandle = fillTypeDescription(param_desc['type_description']) * else: */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 635, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 664, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_t_3 = (__pyx_t_9 != Py_None); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __pyx_t_13 = (__pyx_t_3 != 0); if (__pyx_t_13) { - /* "src/pyrfc/server.pyx":636 + /* "src/pyrfc/server.pyx":665 * paramDesc.optional = param_desc['optional'] * if param_desc['type_description'] is not None: * paramDesc.typeDescHandle = fillTypeDescription(param_desc['type_description']) # <<<<<<<<<<<<<< * else: * paramDesc.typeDescHandle = NULL */ - __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 636, __pyx_L1_error) + __pyx_t_9 = __Pyx_PyObject_Dict_GetItem(__pyx_v_param_desc, __pyx_n_s_type_description); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 665, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __pyx_v_paramDesc.typeDescHandle = __pyx_f_5pyrfc_6_cyrfc_fillTypeDescription(__pyx_t_9); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - /* "src/pyrfc/server.pyx":635 + /* "src/pyrfc/server.pyx":664 * free(sapuc) * paramDesc.optional = param_desc['optional'] * if param_desc['type_description'] is not None: # <<<<<<<<<<<<<< @@ -38758,7 +38511,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P goto __pyx_L6; } - /* "src/pyrfc/server.pyx":638 + /* "src/pyrfc/server.pyx":667 * paramDesc.typeDescHandle = fillTypeDescription(param_desc['type_description']) * else: * paramDesc.typeDescHandle = NULL # <<<<<<<<<<<<<< @@ -38770,7 +38523,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P } __pyx_L6:; - /* "src/pyrfc/server.pyx":639 + /* "src/pyrfc/server.pyx":668 * else: * paramDesc.typeDescHandle = NULL * paramDesc.extendedDescription = NULL # <<<<<<<<<<<<<< @@ -38779,7 +38532,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ __pyx_v_paramDesc.extendedDescription = NULL; - /* "src/pyrfc/server.pyx":640 + /* "src/pyrfc/server.pyx":669 * paramDesc.typeDescHandle = NULL * paramDesc.extendedDescription = NULL * rc = RfcAddParameter(funcDesc, ¶mDesc, &errorInfo) # <<<<<<<<<<<<<< @@ -38788,7 +38541,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ __pyx_v_rc = RfcAddParameter(__pyx_v_funcDesc, (&__pyx_v_paramDesc), (&__pyx_v_errorInfo)); - /* "src/pyrfc/server.pyx":641 + /* "src/pyrfc/server.pyx":670 * paramDesc.extendedDescription = NULL * rc = RfcAddParameter(funcDesc, ¶mDesc, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -38798,7 +38551,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P __pyx_t_13 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_13)) { - /* "src/pyrfc/server.pyx":642 + /* "src/pyrfc/server.pyx":671 * rc = RfcAddParameter(funcDesc, ¶mDesc, &errorInfo) * if rc != RFC_OK: * RfcDestroyFunctionDesc(funcDesc, NULL) # <<<<<<<<<<<<<< @@ -38807,20 +38560,20 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ (void)(RfcDestroyFunctionDesc(__pyx_v_funcDesc, NULL)); - /* "src/pyrfc/server.pyx":643 + /* "src/pyrfc/server.pyx":672 * if rc != RFC_OK: * RfcDestroyFunctionDesc(funcDesc, NULL) * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * return funcDesc */ - __pyx_t_9 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 643, __pyx_L1_error) + __pyx_t_9 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_9)) __PYX_ERR(5, 672, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); __Pyx_Raise(__pyx_t_9, 0, 0, 0); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __PYX_ERR(5, 643, __pyx_L1_error) + __PYX_ERR(5, 672, __pyx_L1_error) - /* "src/pyrfc/server.pyx":641 + /* "src/pyrfc/server.pyx":670 * paramDesc.extendedDescription = NULL * rc = RfcAddParameter(funcDesc, ¶mDesc, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -38829,7 +38582,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P */ } - /* "src/pyrfc/server.pyx":617 + /* "src/pyrfc/server.pyx":646 * raise wrapError(&errorInfo) * * for param_desc in func_desc.parameters: # <<<<<<<<<<<<<< @@ -38839,7 +38592,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "src/pyrfc/server.pyx":645 + /* "src/pyrfc/server.pyx":674 * raise wrapError(&errorInfo) * * return funcDesc # <<<<<<<<<<<<<< @@ -38849,7 +38602,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P __pyx_r = __pyx_v_funcDesc; goto __pyx_L0; - /* "src/pyrfc/server.pyx":600 + /* "src/pyrfc/server.pyx":629 * return typeDesc * * cdef RFC_FUNCTION_DESC_HANDLE fillFunctionDescription(func_desc): # <<<<<<<<<<<<<< @@ -38871,7 +38624,7 @@ static RFC_FUNCTION_DESC_HANDLE __pyx_f_5pyrfc_6_cyrfc_fillFunctionDescription(P return __pyx_r; } -/* "src/pyrfc/server.pyx":647 +/* "src/pyrfc/server.pyx":676 * return funcDesc * * cdef RFC_UNIT_IDENTIFIER fillUnitIdentifier(unit) except *: # <<<<<<<<<<<<<< @@ -38898,16 +38651,16 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("fillUnitIdentifier", 0); - /* "src/pyrfc/server.pyx":650 + /* "src/pyrfc/server.pyx":679 * cdef RFC_UNIT_IDENTIFIER uIdentifier * cdef SAP_UC* sapuc * uIdentifier.unitType = fillString("Q" if unit['queued'] else "T")[0] # <<<<<<<<<<<<<< * if len(unit['id']) != RFC_UNITID_LN: * raise RFCError(f"Invalid length of unit['id'] (should be {RFC_UNITID_LN}, but found {len(unit['id'])}).") */ - __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_queued); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 650, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_queued); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 679, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 650, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(5, 679, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { __Pyx_INCREF(__pyx_n_s_Q); @@ -38916,34 +38669,34 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ __Pyx_INCREF(__pyx_n_s_T); __pyx_t_1 = __pyx_n_s_T; } - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(5, 650, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(5, 679, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_uIdentifier.unitType = (__pyx_t_4[0]); - /* "src/pyrfc/server.pyx":651 + /* "src/pyrfc/server.pyx":680 * cdef SAP_UC* sapuc * uIdentifier.unitType = fillString("Q" if unit['queued'] else "T")[0] * if len(unit['id']) != RFC_UNITID_LN: # <<<<<<<<<<<<<< * raise RFCError(f"Invalid length of unit['id'] (should be {RFC_UNITID_LN}, but found {len(unit['id'])}).") * sapuc = fillString(unit['id']) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 651, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 680, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(5, 651, __pyx_L1_error) + __pyx_t_5 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(5, 680, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_3 = ((__pyx_t_5 != RFC_UNITID_LN) != 0); if (unlikely(__pyx_t_3)) { - /* "src/pyrfc/server.pyx":652 + /* "src/pyrfc/server.pyx":681 * uIdentifier.unitType = fillString("Q" if unit['queued'] else "T")[0] * if len(unit['id']) != RFC_UNITID_LN: * raise RFCError(f"Invalid length of unit['id'] (should be {RFC_UNITID_LN}, but found {len(unit['id'])}).") # <<<<<<<<<<<<<< * sapuc = fillString(unit['id']) * strncpyU(uIdentifier.unitID, sapuc, RFC_UNITID_LN + 1) */ - __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 652, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 652, __pyx_L1_error) + __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_5 = 0; __pyx_t_7 = 127; @@ -38951,7 +38704,7 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ __pyx_t_5 += 40; __Pyx_GIVEREF(__pyx_kp_u_Invalid_length_of_unit_id_should); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_Invalid_length_of_unit_id_should); - __pyx_t_8 = __Pyx_PyUnicode_From_int(RFC_UNITID_LN, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 652, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_From_int(RFC_UNITID_LN, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_8); @@ -38961,11 +38714,11 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ __pyx_t_5 += 12; __Pyx_GIVEREF(__pyx_kp_u_but_found); PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u_but_found); - __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 652, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); - __pyx_t_9 = PyObject_Length(__pyx_t_8); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(5, 652, __pyx_L1_error) + __pyx_t_9 = PyObject_Length(__pyx_t_8); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_9, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 652, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_9, 0, ' ', 'd'); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8); __Pyx_GIVEREF(__pyx_t_8); @@ -38975,7 +38728,7 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ __pyx_t_5 += 2; __Pyx_GIVEREF(__pyx_kp_u__42); PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_kp_u__42); - __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_6, 5, __pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 652, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_6, 5, __pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_t_6 = NULL; @@ -38991,14 +38744,14 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_8); __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 652, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 681, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(5, 652, __pyx_L1_error) + __PYX_ERR(5, 681, __pyx_L1_error) - /* "src/pyrfc/server.pyx":651 + /* "src/pyrfc/server.pyx":680 * cdef SAP_UC* sapuc * uIdentifier.unitType = fillString("Q" if unit['queued'] else "T")[0] * if len(unit['id']) != RFC_UNITID_LN: # <<<<<<<<<<<<<< @@ -39007,20 +38760,20 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ */ } - /* "src/pyrfc/server.pyx":653 + /* "src/pyrfc/server.pyx":682 * if len(unit['id']) != RFC_UNITID_LN: * raise RFCError(f"Invalid length of unit['id'] (should be {RFC_UNITID_LN}, but found {len(unit['id'])}).") * sapuc = fillString(unit['id']) # <<<<<<<<<<<<<< * strncpyU(uIdentifier.unitID, sapuc, RFC_UNITID_LN + 1) * free(sapuc) */ - __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 653, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_unit, __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(5, 653, __pyx_L1_error) + __pyx_t_4 = __pyx_f_5pyrfc_6_cyrfc_fillString(__pyx_t_1); if (unlikely(__pyx_t_4 == ((SAP_UC *)NULL))) __PYX_ERR(5, 682, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_sapuc = __pyx_t_4; - /* "src/pyrfc/server.pyx":654 + /* "src/pyrfc/server.pyx":683 * raise RFCError(f"Invalid length of unit['id'] (should be {RFC_UNITID_LN}, but found {len(unit['id'])}).") * sapuc = fillString(unit['id']) * strncpyU(uIdentifier.unitID, sapuc, RFC_UNITID_LN + 1) # <<<<<<<<<<<<<< @@ -39029,7 +38782,7 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ */ strncpyU(__pyx_v_uIdentifier.unitID, __pyx_v_sapuc, (RFC_UNITID_LN + 1)); - /* "src/pyrfc/server.pyx":655 + /* "src/pyrfc/server.pyx":684 * sapuc = fillString(unit['id']) * strncpyU(uIdentifier.unitID, sapuc, RFC_UNITID_LN + 1) * free(sapuc) # <<<<<<<<<<<<<< @@ -39037,7 +38790,7 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ */ free(__pyx_v_sapuc); - /* "src/pyrfc/server.pyx":656 + /* "src/pyrfc/server.pyx":685 * strncpyU(uIdentifier.unitID, sapuc, RFC_UNITID_LN + 1) * free(sapuc) * return uIdentifier # <<<<<<<<<<<<<< @@ -39045,7 +38798,7 @@ static RFC_UNIT_IDENTIFIER __pyx_f_5pyrfc_6_cyrfc_fillUnitIdentifier(PyObject *_ __pyx_r = __pyx_v_uIdentifier; goto __pyx_L0; - /* "src/pyrfc/server.pyx":647 + /* "src/pyrfc/server.pyx":676 * return funcDesc * * cdef RFC_UNIT_IDENTIFIER fillUnitIdentifier(unit) except *: # <<<<<<<<<<<<<< @@ -39087,7 +38840,7 @@ static int __pyx_pw_5pyrfc_6_cyrfc_10Throughput_1__init__(PyObject *__pyx_v_self { static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_connections,0}; PyObject* values[1] = {0}; - values[0] = __pyx_k__50; + values[0] = __pyx_k__49; if (unlikely(__pyx_kwds)) { Py_ssize_t kw_args; const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); @@ -39427,7 +39180,7 @@ static int __pyx_pf_5pyrfc_6_cyrfc_10Throughput___init__(struct __pyx_obj_5pyrfc * * @property * def connections(self): # <<<<<<<<<<<<<< - * return self._connections + * """Get connections attached to throughput monitoring * */ @@ -39449,9 +39202,9 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_11connections___get__(stru __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/throughput.pyx":29 - * @property - * def connections(self): + /* "src/pyrfc/throughput.pyx":34 + * :type: set of Connection + * """ * return self._connections # <<<<<<<<<<<<<< * * @property @@ -39465,7 +39218,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_11connections___get__(stru * * @property * def connections(self): # <<<<<<<<<<<<<< - * return self._connections + * """Get connections attached to throughput monitoring * */ @@ -39476,11 +39229,11 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_11connections___get__(stru return __pyx_r; } -/* "src/pyrfc/throughput.pyx":32 +/* "src/pyrfc/throughput.pyx":37 * * @property * def _handle(self): # <<<<<<<<<<<<<< - * return self._throughput_handle + * """Get throughput object handle * */ @@ -39506,25 +39259,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_7_handle___get__(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/throughput.pyx":33 - * @property - * def _handle(self): + /* "src/pyrfc/throughput.pyx":43 + * :type: uintptr_t + * """ * return self._throughput_handle # <<<<<<<<<<<<<< * * def setOnConnection(self, Connection connection): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_throughput_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 33, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_self->_throughput_handle)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 43, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "src/pyrfc/throughput.pyx":32 + /* "src/pyrfc/throughput.pyx":37 * * @property * def _handle(self): # <<<<<<<<<<<<<< - * return self._throughput_handle + * """Get throughput object handle * */ @@ -39539,16 +39292,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_7_handle___get__(struct __ return __pyx_r; } -/* "src/pyrfc/throughput.pyx":35 +/* "src/pyrfc/throughput.pyx":45 * return self._throughput_handle * * def setOnConnection(self, Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) + * """Attaches a throughput object to a connection to be monitored by the throughput object. + * Once attached to a connection, the throughput object collects the data statistics of */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_3setOnConnection(PyObject *__pyx_v_self, PyObject *__pyx_v_connection); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Throughput_2setOnConnection[] = "Attaches a throughput object to a connection to be monitored by the throughput object.\n Once attached to a connection, the throughput object collects the data statistics of\n function calls invoked via this connection.\n\n For more info search for the ``RfcSetThroughputOnConnection`` method in\n `SAP NetWeaver RFC SDK Doxygen Documentation `_\n\n :param connection: Connection instance to be attached to throughput monitoring\n :type connection: Connection\n\n :return: nothing, raises an error\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_3setOnConnection(PyObject *__pyx_v_self, PyObject *__pyx_v_connection) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; @@ -39556,7 +39310,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_3setOnConnection(PyObject PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setOnConnection (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_connection), __pyx_ptype_5pyrfc_6_cyrfc_Connection, 1, "connection", 0))) __PYX_ERR(1, 35, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_connection), __pyx_ptype_5pyrfc_6_cyrfc_Connection, 1, "connection", 0))) __PYX_ERR(1, 45, __pyx_L1_error) __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(((struct __pyx_obj_5pyrfc_6_cyrfc_Throughput *)__pyx_v_self), ((struct __pyx_obj_5pyrfc_6_cyrfc_Connection *)__pyx_v_connection)); /* function exit code */ @@ -39582,8 +39336,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(struct __ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setOnConnection", 0); - /* "src/pyrfc/throughput.pyx":37 - * def setOnConnection(self, Connection connection): + /* "src/pyrfc/throughput.pyx":59 + * """ * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) # <<<<<<<<<<<<<< * if rc != RFC_OK: @@ -39591,7 +39345,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(struct __ */ __pyx_v_rc = RfcSetThroughputOnConnection(__pyx_v_connection->_handle, __pyx_v_self->_throughput_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":38 + /* "src/pyrfc/throughput.pyx":60 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -39601,20 +39355,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(struct __ __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/throughput.pyx":39 + /* "src/pyrfc/throughput.pyx":61 * cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * self._connections.add(connection) * */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 39, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 61, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(1, 39, __pyx_L1_error) + __PYX_ERR(1, 61, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":38 + /* "src/pyrfc/throughput.pyx":60 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -39623,14 +39377,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(struct __ */ } - /* "src/pyrfc/throughput.pyx":40 + /* "src/pyrfc/throughput.pyx":62 * if rc != RFC_OK: * raise wrapError(&errorInfo) * self._connections.add(connection) # <<<<<<<<<<<<<< * * @staticmethod */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_connections, __pyx_n_s_add); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 40, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_connections, __pyx_n_s_add); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -39644,17 +39398,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(struct __ } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_connection)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_connection)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 40, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 62, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/throughput.pyx":35 + /* "src/pyrfc/throughput.pyx":45 * return self._throughput_handle * * def setOnConnection(self, Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) + * """Attaches a throughput object to a connection to be monitored by the throughput object. + * Once attached to a connection, the throughput object collects the data statistics of */ /* function exit code */ @@ -39672,17 +39426,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_2setOnConnection(struct __ return __pyx_r; } -/* "src/pyrfc/throughput.pyx":43 +/* "src/pyrfc/throughput.pyx":65 * * @staticmethod * def getFromConnection(Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) + * """Returns the currently attached throughput object from a connection, if any. + * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_5pyrfc_6_cyrfc_10Throughput_5getFromConnection = {"getFromConnection", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection, METH_VARARGS|METH_KEYWORDS, 0}; +static char __pyx_doc_5pyrfc_6_cyrfc_10Throughput_4getFromConnection[] = "Returns the currently attached throughput object from a connection, if any.\n\n For more info search for the ``RfcGetThroughputFromConnection`` method in\n `SAP NetWeaver RFC SDK Doxygen Documentation `_\n\n :param connection: Connection instance\n :type connection: Connection\n\n :returns: Throughput object the connection is attached to, if any\n :rtype: Throughput\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass in case of error\n "; +static PyMethodDef __pyx_mdef_5pyrfc_6_cyrfc_10Throughput_5getFromConnection = {"getFromConnection", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5pyrfc_6_cyrfc_10Throughput_4getFromConnection}; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct __pyx_obj_5pyrfc_6_cyrfc_Connection *__pyx_v_connection = 0; int __pyx_lineno = 0; @@ -39710,7 +39465,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection(CYTHON_ else goto __pyx_L5_argtuple_error; } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFromConnection") < 0)) __PYX_ERR(1, 43, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "getFromConnection") < 0)) __PYX_ERR(1, 65, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 1) { goto __pyx_L5_argtuple_error; @@ -39721,13 +39476,13 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection(CYTHON_ } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("getFromConnection", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 43, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("getFromConnection", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 65, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Throughput.getFromConnection", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_connection), __pyx_ptype_5pyrfc_6_cyrfc_Connection, 1, "connection", 0))) __PYX_ERR(1, 43, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_connection), __pyx_ptype_5pyrfc_6_cyrfc_Connection, 1, "connection", 0))) __PYX_ERR(1, 65, __pyx_L1_error) __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(__pyx_v_connection); /* function exit code */ @@ -39757,8 +39512,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct int __pyx_clineno = 0; __Pyx_RefNannySetupContext("getFromConnection", 0); - /* "src/pyrfc/throughput.pyx":45 - * def getFromConnection(Connection connection): + /* "src/pyrfc/throughput.pyx":80 + * """ * cdef RFC_ERROR_INFO errorInfo * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) # <<<<<<<<<<<<<< * if errorInfo.code != RFC_OK: @@ -39766,7 +39521,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct */ __pyx_v_throughput = RfcGetThroughputFromConnection(__pyx_v_connection->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":46 + /* "src/pyrfc/throughput.pyx":81 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) * if errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -39776,20 +39531,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct __pyx_t_1 = ((__pyx_v_errorInfo.code != RFC_OK) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/throughput.pyx":47 + /* "src/pyrfc/throughput.pyx":82 * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) * if errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * for t in Throughput._registry: * if t._handle == throughput: */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 47, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 82, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(1, 47, __pyx_L1_error) + __PYX_ERR(1, 82, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":46 + /* "src/pyrfc/throughput.pyx":81 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) * if errorInfo.code != RFC_OK: # <<<<<<<<<<<<<< @@ -39798,22 +39553,22 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct */ } - /* "src/pyrfc/throughput.pyx":48 + /* "src/pyrfc/throughput.pyx":83 * if errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) * for t in Throughput._registry: # <<<<<<<<<<<<<< * if t._handle == throughput: * return t */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput), __pyx_n_s_registry); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput), __pyx_n_s_registry); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0; __pyx_t_5 = NULL; } else { - __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 83, __pyx_L1_error) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; for (;;) { @@ -39821,17 +39576,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct if (likely(PyList_CheckExact(__pyx_t_3))) { if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 83, __pyx_L1_error) #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } else { if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break; #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 83, __pyx_L1_error) #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 83, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); #endif } @@ -39841,7 +39596,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct PyObject* exc_type = PyErr_Occurred(); if (exc_type) { if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else __PYX_ERR(1, 48, __pyx_L1_error) + else __PYX_ERR(1, 83, __pyx_L1_error) } break; } @@ -39850,25 +39605,25 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/throughput.pyx":49 + /* "src/pyrfc/throughput.pyx":84 * raise wrapError(&errorInfo) * for t in Throughput._registry: * if t._handle == throughput: # <<<<<<<<<<<<<< * return t * return None */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_handle_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 49, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_t, __pyx_n_s_handle_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_throughput)); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 49, __pyx_L1_error) + __pyx_t_6 = __Pyx_PyInt_FromSize_t(((uintptr_t)__pyx_v_throughput)); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 84, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = PyObject_RichCompare(__pyx_t_2, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 49, __pyx_L1_error) + __pyx_t_7 = PyObject_RichCompare(__pyx_t_2, __pyx_t_6, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 84, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 49, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 84, __pyx_L1_error) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_1) { - /* "src/pyrfc/throughput.pyx":50 + /* "src/pyrfc/throughput.pyx":85 * for t in Throughput._registry: * if t._handle == throughput: * return t # <<<<<<<<<<<<<< @@ -39881,7 +39636,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; goto __pyx_L0; - /* "src/pyrfc/throughput.pyx":49 + /* "src/pyrfc/throughput.pyx":84 * raise wrapError(&errorInfo) * for t in Throughput._registry: * if t._handle == throughput: # <<<<<<<<<<<<<< @@ -39890,7 +39645,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct */ } - /* "src/pyrfc/throughput.pyx":48 + /* "src/pyrfc/throughput.pyx":83 * if errorInfo.code != RFC_OK: * raise wrapError(&errorInfo) * for t in Throughput._registry: # <<<<<<<<<<<<<< @@ -39900,7 +39655,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/throughput.pyx":51 + /* "src/pyrfc/throughput.pyx":86 * if t._handle == throughput: * return t * return None # <<<<<<<<<<<<<< @@ -39911,12 +39666,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; - /* "src/pyrfc/throughput.pyx":43 + /* "src/pyrfc/throughput.pyx":65 * * @staticmethod * def getFromConnection(Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) + * """Returns the currently attached throughput object from a connection, if any. + * */ /* function exit code */ @@ -39934,16 +39689,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_4getFromConnection(struct return __pyx_r; } -/* "src/pyrfc/throughput.pyx":53 +/* "src/pyrfc/throughput.pyx":88 * return None * * def removeFromConnection(self, Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) + * """Removes the throughput object from a connection. + * The connection will no longer be monitored. */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_7removeFromConnection(PyObject *__pyx_v_self, PyObject *__pyx_v_connection); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection[] = "Removes the throughput object from a connection.\n The connection will no longer be monitored.\n\n :param connection: Connection instance\n :type connection: Connection\n :returns: Nothing\n :raises: :exc:`~pyrfc.RFCError` or a subclass in case of error\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_7removeFromConnection(PyObject *__pyx_v_self, PyObject *__pyx_v_connection) { int __pyx_lineno = 0; const char *__pyx_filename = NULL; @@ -39951,7 +39707,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_7removeFromConnection(PyOb PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("removeFromConnection (wrapper)", 0); - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_connection), __pyx_ptype_5pyrfc_6_cyrfc_Connection, 1, "connection", 0))) __PYX_ERR(1, 53, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_connection), __pyx_ptype_5pyrfc_6_cyrfc_Connection, 1, "connection", 0))) __PYX_ERR(1, 88, __pyx_L1_error) __pyx_r = __pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(((struct __pyx_obj_5pyrfc_6_cyrfc_Throughput *)__pyx_v_self), ((struct __pyx_obj_5pyrfc_6_cyrfc_Connection *)__pyx_v_connection)); /* function exit code */ @@ -39977,8 +39733,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(stru int __pyx_clineno = 0; __Pyx_RefNannySetupContext("removeFromConnection", 0); - /* "src/pyrfc/throughput.pyx":55 - * def removeFromConnection(self, Connection connection): + /* "src/pyrfc/throughput.pyx":98 + * """ * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) # <<<<<<<<<<<<<< * if rc != RFC_OK: @@ -39986,7 +39742,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(stru */ __pyx_v_rc = RfcRemoveThroughputFromConnection(__pyx_v_connection->_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":56 + /* "src/pyrfc/throughput.pyx":99 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -39996,20 +39752,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(stru __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/throughput.pyx":57 + /* "src/pyrfc/throughput.pyx":100 * cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * self._connections.remove(connection) * */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 57, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 100, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(1, 57, __pyx_L1_error) + __PYX_ERR(1, 100, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":56 + /* "src/pyrfc/throughput.pyx":99 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40018,14 +39774,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(stru */ } - /* "src/pyrfc/throughput.pyx":58 + /* "src/pyrfc/throughput.pyx":101 * if rc != RFC_OK: * raise wrapError(&errorInfo) * self._connections.remove(connection) # <<<<<<<<<<<<<< * * def reset(self): */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_connections, __pyx_n_s_remove); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 58, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_connections, __pyx_n_s_remove); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) { @@ -40039,17 +39795,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(stru } __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_connection)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_connection)); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 58, __pyx_L1_error) + if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 101, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/throughput.pyx":53 + /* "src/pyrfc/throughput.pyx":88 * return None * * def removeFromConnection(self, Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) + * """Removes the throughput object from a connection. + * The connection will no longer be monitored. */ /* function exit code */ @@ -40067,16 +39823,17 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection(stru return __pyx_r; } -/* "src/pyrfc/throughput.pyx":60 +/* "src/pyrfc/throughput.pyx":103 * self._connections.remove(connection) * * def reset(self): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) + * """Resets the data so far collected and aggregated by the throughput object. + * */ /* Python wrapper */ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_9reset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5pyrfc_6_cyrfc_10Throughput_8reset[] = "Resets the data so far collected and aggregated by the throughput object.\n\n :returns: Nothing\n :raises: :exc:`~pyrfc.RFCError` or a subclass in case of error\n "; static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_9reset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations @@ -40100,8 +39857,8 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_8reset(struct __pyx_obj_5p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("reset", 0); - /* "src/pyrfc/throughput.pyx":62 - * def reset(self): + /* "src/pyrfc/throughput.pyx":110 + * """ * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) # <<<<<<<<<<<<<< * if rc != RFC_OK: @@ -40109,7 +39866,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_8reset(struct __pyx_obj_5p */ __pyx_v_rc = RfcResetThroughput(__pyx_v_self->_throughput_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":63 + /* "src/pyrfc/throughput.pyx":111 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40119,20 +39876,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_8reset(struct __pyx_obj_5p __pyx_t_1 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_1)) { - /* "src/pyrfc/throughput.pyx":64 + /* "src/pyrfc/throughput.pyx":112 * cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * * cdef _destroy(self): */ - __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 64, __pyx_L1_error) + __pyx_t_2 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 112, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(1, 64, __pyx_L1_error) + __PYX_ERR(1, 112, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":63 + /* "src/pyrfc/throughput.pyx":111 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40141,12 +39898,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_8reset(struct __pyx_obj_5p */ } - /* "src/pyrfc/throughput.pyx":60 + /* "src/pyrfc/throughput.pyx":103 * self._connections.remove(connection) * * def reset(self): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) + * """Resets the data so far collected and aggregated by the throughput object. + * */ /* function exit code */ @@ -40162,7 +39919,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_8reset(struct __pyx_obj_5p return __pyx_r; } -/* "src/pyrfc/throughput.pyx":66 +/* "src/pyrfc/throughput.pyx":114 * raise wrapError(&errorInfo) * * cdef _destroy(self): # <<<<<<<<<<<<<< @@ -40184,16 +39941,16 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_destroy", 0); - /* "src/pyrfc/throughput.pyx":69 + /* "src/pyrfc/throughput.pyx":117 * cdef RFC_ERROR_INFO errorInfo * cdef RFC_RC rc * self._registry.clear() # <<<<<<<<<<<<<< * self._connections = None * if self._throughput_handle != NULL: */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_registry); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 69, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_registry); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 69, __pyx_L1_error) + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_t_2 = NULL; @@ -40208,12 +39965,12 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 } __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3); __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 69, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":70 + /* "src/pyrfc/throughput.pyx":118 * cdef RFC_RC rc * self._registry.clear() * self._connections = None # <<<<<<<<<<<<<< @@ -40226,7 +39983,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 __Pyx_DECREF(__pyx_v_self->_connections); __pyx_v_self->_connections = Py_None; - /* "src/pyrfc/throughput.pyx":71 + /* "src/pyrfc/throughput.pyx":119 * self._registry.clear() * self._connections = None * if self._throughput_handle != NULL: # <<<<<<<<<<<<<< @@ -40236,7 +39993,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 __pyx_t_4 = ((__pyx_v_self->_throughput_handle != NULL) != 0); if (__pyx_t_4) { - /* "src/pyrfc/throughput.pyx":72 + /* "src/pyrfc/throughput.pyx":120 * self._connections = None * if self._throughput_handle != NULL: * rc = RfcDestroyThroughput(self._throughput_handle, &errorInfo) # <<<<<<<<<<<<<< @@ -40245,7 +40002,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 */ __pyx_v_rc = RfcDestroyThroughput(__pyx_v_self->_throughput_handle, (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":73 + /* "src/pyrfc/throughput.pyx":121 * if self._throughput_handle != NULL: * rc = RfcDestroyThroughput(self._throughput_handle, &errorInfo) * self._throughput_handle = NULL # <<<<<<<<<<<<<< @@ -40254,7 +40011,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 */ __pyx_v_self->_throughput_handle = NULL; - /* "src/pyrfc/throughput.pyx":74 + /* "src/pyrfc/throughput.pyx":122 * rc = RfcDestroyThroughput(self._throughput_handle, &errorInfo) * self._throughput_handle = NULL * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40265,7 +40022,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 if (__pyx_t_4) { } - /* "src/pyrfc/throughput.pyx":71 + /* "src/pyrfc/throughput.pyx":119 * self._registry.clear() * self._connections = None * if self._throughput_handle != NULL: # <<<<<<<<<<<<<< @@ -40274,7 +40031,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 */ } - /* "src/pyrfc/throughput.pyx":66 + /* "src/pyrfc/throughput.pyx":114 * raise wrapError(&errorInfo) * * cdef _destroy(self): # <<<<<<<<<<<<<< @@ -40297,7 +40054,7 @@ static PyObject *__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy(struct __pyx_obj_5 return __pyx_r; } -/* "src/pyrfc/throughput.pyx":78 +/* "src/pyrfc/throughput.pyx":126 * pass * * def __del__(self): # <<<<<<<<<<<<<< @@ -40329,14 +40086,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_10__del__(struct __pyx_obj int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__del__", 0); - /* "src/pyrfc/throughput.pyx":79 + /* "src/pyrfc/throughput.pyx":127 * * def __del__(self): * self.destroy() # <<<<<<<<<<<<<< * * def __exit__(self, type, value, traceback): */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 79, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = NULL; if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { @@ -40350,12 +40107,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_10__del__(struct __pyx_obj } __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 79, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 127, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":78 + /* "src/pyrfc/throughput.pyx":126 * pass * * def __del__(self): # <<<<<<<<<<<<<< @@ -40378,7 +40135,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_10__del__(struct __pyx_obj return __pyx_r; } -/* "src/pyrfc/throughput.pyx":81 +/* "src/pyrfc/throughput.pyx":129 * self.destroy() * * def __exit__(self, type, value, traceback): # <<<<<<<<<<<<<< @@ -40423,17 +40180,17 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_13__exit__(PyObject *__pyx case 1: if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(1, 81, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 1); __PYX_ERR(1, 129, __pyx_L3_error) } CYTHON_FALLTHROUGH; case 2: if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_traceback)) != 0)) kw_args--; else { - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(1, 81, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, 2); __PYX_ERR(1, 129, __pyx_L3_error) } } if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(1, 81, __pyx_L3_error) + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__exit__") < 0)) __PYX_ERR(1, 129, __pyx_L3_error) } } else if (PyTuple_GET_SIZE(__pyx_args) != 3) { goto __pyx_L5_argtuple_error; @@ -40448,7 +40205,7 @@ static PyObject *__pyx_pw_5pyrfc_6_cyrfc_10Throughput_13__exit__(PyObject *__pyx } goto __pyx_L4_argument_unpacking_done; __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 81, __pyx_L3_error) + __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 129, __pyx_L3_error) __pyx_L3_error:; __Pyx_AddTraceback("pyrfc._cyrfc.Throughput.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); @@ -40470,18 +40227,18 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_12__exit__(struct __pyx_ob int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); - /* "src/pyrfc/throughput.pyx":82 + /* "src/pyrfc/throughput.pyx":130 * * def __exit__(self, type, value, traceback): * self._destroy() # <<<<<<<<<<<<<< * * def __enter__(self): */ - __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Throughput *)__pyx_v_self->__pyx_vtab)->_destroy(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 82, __pyx_L1_error) + __pyx_t_1 = ((struct __pyx_vtabstruct_5pyrfc_6_cyrfc_Throughput *)__pyx_v_self->__pyx_vtab)->_destroy(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 130, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":81 + /* "src/pyrfc/throughput.pyx":129 * self.destroy() * * def __exit__(self, type, value, traceback): # <<<<<<<<<<<<<< @@ -40502,7 +40259,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_12__exit__(struct __pyx_ob return __pyx_r; } -/* "src/pyrfc/throughput.pyx":84 +/* "src/pyrfc/throughput.pyx":132 * self._destroy() * * def __enter__(self): # <<<<<<<<<<<<<< @@ -40528,7 +40285,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_14__enter__(struct __pyx_o __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); - /* "src/pyrfc/throughput.pyx":85 + /* "src/pyrfc/throughput.pyx":133 * * def __enter__(self): * return self # <<<<<<<<<<<<<< @@ -40540,7 +40297,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_14__enter__(struct __pyx_o __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "src/pyrfc/throughput.pyx":84 + /* "src/pyrfc/throughput.pyx":132 * self._destroy() * * def __enter__(self): # <<<<<<<<<<<<<< @@ -40555,12 +40312,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_14__enter__(struct __pyx_o return __pyx_r; } -/* "src/pyrfc/throughput.pyx":88 +/* "src/pyrfc/throughput.pyx":136 * * @property * def stats(self): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc + * """Get throughput monitor statistics + * */ /* Python wrapper */ @@ -40598,19 +40355,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "src/pyrfc/throughput.pyx":99 + /* "src/pyrfc/throughput.pyx":160 * cdef SAP_ULLONG deserializationTime * * _stats = {} # <<<<<<<<<<<<<< * * if self._throughput_handle == NULL: */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 99, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 160, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_v__stats = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":101 + /* "src/pyrfc/throughput.pyx":162 * _stats = {} * * if self._throughput_handle == NULL: # <<<<<<<<<<<<<< @@ -40620,14 +40377,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_self->_throughput_handle == NULL) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":102 + /* "src/pyrfc/throughput.pyx":163 * * if self._throughput_handle == NULL: * raise RFCError('No connections assigned') # <<<<<<<<<<<<<< * * rc = RfcGetNumberOfCalls (self._throughput_handle, &numberOfCalls, &errorInfo) */ - __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 102, __pyx_L1_error) + __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_RFCError); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4 = NULL; if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) { @@ -40641,14 +40398,14 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py } __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_kp_s_No_connections_assigned) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_s_No_connections_assigned); __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 102, __pyx_L1_error) + if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 163, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 102, __pyx_L1_error) + __PYX_ERR(1, 163, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":101 + /* "src/pyrfc/throughput.pyx":162 * _stats = {} * * if self._throughput_handle == NULL: # <<<<<<<<<<<<<< @@ -40657,7 +40414,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":104 + /* "src/pyrfc/throughput.pyx":165 * raise RFCError('No connections assigned') * * rc = RfcGetNumberOfCalls (self._throughput_handle, &numberOfCalls, &errorInfo) # <<<<<<<<<<<<<< @@ -40666,7 +40423,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetNumberOfCalls(__pyx_v_self->_throughput_handle, (&__pyx_v_numberOfCalls), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":105 + /* "src/pyrfc/throughput.pyx":166 * * rc = RfcGetNumberOfCalls (self._throughput_handle, &numberOfCalls, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40676,20 +40433,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":106 + /* "src/pyrfc/throughput.pyx":167 * rc = RfcGetNumberOfCalls (self._throughput_handle, &numberOfCalls, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['numberOfCalls'] = numberOfCalls * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 106, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 167, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 106, __pyx_L1_error) + __PYX_ERR(1, 167, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":105 + /* "src/pyrfc/throughput.pyx":166 * * rc = RfcGetNumberOfCalls (self._throughput_handle, &numberOfCalls, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40698,19 +40455,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":107 + /* "src/pyrfc/throughput.pyx":168 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['numberOfCalls'] = numberOfCalls # <<<<<<<<<<<<<< * * rc = RfcGetSentBytes (self._throughput_handle, &sentBytes, &errorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_numberOfCalls); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 107, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_numberOfCalls); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 168, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_numberOfCalls, __pyx_t_1) < 0)) __PYX_ERR(1, 107, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_numberOfCalls, __pyx_t_1) < 0)) __PYX_ERR(1, 168, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":109 + /* "src/pyrfc/throughput.pyx":170 * _stats['numberOfCalls'] = numberOfCalls * * rc = RfcGetSentBytes (self._throughput_handle, &sentBytes, &errorInfo) # <<<<<<<<<<<<<< @@ -40719,7 +40476,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetSentBytes(__pyx_v_self->_throughput_handle, (&__pyx_v_sentBytes), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":110 + /* "src/pyrfc/throughput.pyx":171 * * rc = RfcGetSentBytes (self._throughput_handle, &sentBytes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40729,20 +40486,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":111 + /* "src/pyrfc/throughput.pyx":172 * rc = RfcGetSentBytes (self._throughput_handle, &sentBytes, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['sentBytes'] = sentBytes * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 111, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 172, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 111, __pyx_L1_error) + __PYX_ERR(1, 172, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":110 + /* "src/pyrfc/throughput.pyx":171 * * rc = RfcGetSentBytes (self._throughput_handle, &sentBytes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40751,19 +40508,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":112 + /* "src/pyrfc/throughput.pyx":173 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['sentBytes'] = sentBytes # <<<<<<<<<<<<<< * * rc = RfcGetReceivedBytes (self._throughput_handle, &receivedBytes, &errorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_sentBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_sentBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_sentBytes, __pyx_t_1) < 0)) __PYX_ERR(1, 112, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_sentBytes, __pyx_t_1) < 0)) __PYX_ERR(1, 173, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":114 + /* "src/pyrfc/throughput.pyx":175 * _stats['sentBytes'] = sentBytes * * rc = RfcGetReceivedBytes (self._throughput_handle, &receivedBytes, &errorInfo) # <<<<<<<<<<<<<< @@ -40772,7 +40529,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetReceivedBytes(__pyx_v_self->_throughput_handle, (&__pyx_v_receivedBytes), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":115 + /* "src/pyrfc/throughput.pyx":176 * * rc = RfcGetReceivedBytes (self._throughput_handle, &receivedBytes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40782,20 +40539,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":116 + /* "src/pyrfc/throughput.pyx":177 * rc = RfcGetReceivedBytes (self._throughput_handle, &receivedBytes, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['receivedBytes'] = receivedBytes * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 116, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 177, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 116, __pyx_L1_error) + __PYX_ERR(1, 177, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":115 + /* "src/pyrfc/throughput.pyx":176 * * rc = RfcGetReceivedBytes (self._throughput_handle, &receivedBytes, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40804,19 +40561,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":117 + /* "src/pyrfc/throughput.pyx":178 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['receivedBytes'] = receivedBytes # <<<<<<<<<<<<<< * * rc = RfcGetApplicationTime (self._throughput_handle, &applicationTime, &errorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_receivedBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_receivedBytes); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 178, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_receivedBytes, __pyx_t_1) < 0)) __PYX_ERR(1, 117, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_receivedBytes, __pyx_t_1) < 0)) __PYX_ERR(1, 178, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":119 + /* "src/pyrfc/throughput.pyx":180 * _stats['receivedBytes'] = receivedBytes * * rc = RfcGetApplicationTime (self._throughput_handle, &applicationTime, &errorInfo) # <<<<<<<<<<<<<< @@ -40825,7 +40582,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetApplicationTime(__pyx_v_self->_throughput_handle, (&__pyx_v_applicationTime), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":120 + /* "src/pyrfc/throughput.pyx":181 * * rc = RfcGetApplicationTime (self._throughput_handle, &applicationTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40835,20 +40592,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":121 + /* "src/pyrfc/throughput.pyx":182 * rc = RfcGetApplicationTime (self._throughput_handle, &applicationTime, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['applicationTime'] = applicationTime * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 121, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 182, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 121, __pyx_L1_error) + __PYX_ERR(1, 182, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":120 + /* "src/pyrfc/throughput.pyx":181 * * rc = RfcGetApplicationTime (self._throughput_handle, &applicationTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40857,19 +40614,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":122 + /* "src/pyrfc/throughput.pyx":183 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['applicationTime'] = applicationTime # <<<<<<<<<<<<<< * * rc = RfcGetTotalTime (self._throughput_handle, &totalTime, &errorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_applicationTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 122, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_applicationTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 183, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_applicationTime, __pyx_t_1) < 0)) __PYX_ERR(1, 122, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_applicationTime, __pyx_t_1) < 0)) __PYX_ERR(1, 183, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":124 + /* "src/pyrfc/throughput.pyx":185 * _stats['applicationTime'] = applicationTime * * rc = RfcGetTotalTime (self._throughput_handle, &totalTime, &errorInfo) # <<<<<<<<<<<<<< @@ -40878,7 +40635,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetTotalTime(__pyx_v_self->_throughput_handle, (&__pyx_v_totalTime), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":125 + /* "src/pyrfc/throughput.pyx":186 * * rc = RfcGetTotalTime (self._throughput_handle, &totalTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40888,20 +40645,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":126 + /* "src/pyrfc/throughput.pyx":187 * rc = RfcGetTotalTime (self._throughput_handle, &totalTime, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['totalTime'] = totalTime * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 126, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 187, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 126, __pyx_L1_error) + __PYX_ERR(1, 187, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":125 + /* "src/pyrfc/throughput.pyx":186 * * rc = RfcGetTotalTime (self._throughput_handle, &totalTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40910,19 +40667,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":127 + /* "src/pyrfc/throughput.pyx":188 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['totalTime'] = totalTime # <<<<<<<<<<<<<< * * rc = RfcGetSerializationTime (self._throughput_handle, &serializationTime, &errorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_totalTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 127, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_totalTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 188, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_totalTime, __pyx_t_1) < 0)) __PYX_ERR(1, 127, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_totalTime, __pyx_t_1) < 0)) __PYX_ERR(1, 188, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":129 + /* "src/pyrfc/throughput.pyx":190 * _stats['totalTime'] = totalTime * * rc = RfcGetSerializationTime (self._throughput_handle, &serializationTime, &errorInfo) # <<<<<<<<<<<<<< @@ -40931,7 +40688,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetSerializationTime(__pyx_v_self->_throughput_handle, (&__pyx_v_serializationTime), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":130 + /* "src/pyrfc/throughput.pyx":191 * * rc = RfcGetSerializationTime (self._throughput_handle, &serializationTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40941,20 +40698,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":131 + /* "src/pyrfc/throughput.pyx":192 * rc = RfcGetSerializationTime (self._throughput_handle, &serializationTime, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['serializationTime'] = serializationTime * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 131, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 131, __pyx_L1_error) + __PYX_ERR(1, 192, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":130 + /* "src/pyrfc/throughput.pyx":191 * * rc = RfcGetSerializationTime (self._throughput_handle, &serializationTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40963,19 +40720,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":132 + /* "src/pyrfc/throughput.pyx":193 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['serializationTime'] = serializationTime # <<<<<<<<<<<<<< * * rc = RfcGetDeserializationTime (self._throughput_handle, &deserializationTime, &errorInfo) */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_serializationTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 132, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_serializationTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 193, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_serializationTime, __pyx_t_1) < 0)) __PYX_ERR(1, 132, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_serializationTime, __pyx_t_1) < 0)) __PYX_ERR(1, 193, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":134 + /* "src/pyrfc/throughput.pyx":195 * _stats['serializationTime'] = serializationTime * * rc = RfcGetDeserializationTime (self._throughput_handle, &deserializationTime, &errorInfo) # <<<<<<<<<<<<<< @@ -40984,7 +40741,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ __pyx_v_rc = RfcGetDeserializationTime(__pyx_v_self->_throughput_handle, (&__pyx_v_deserializationTime), (&__pyx_v_errorInfo)); - /* "src/pyrfc/throughput.pyx":135 + /* "src/pyrfc/throughput.pyx":196 * * rc = RfcGetDeserializationTime (self._throughput_handle, &deserializationTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -40994,20 +40751,20 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_t_2 = ((__pyx_v_rc != RFC_OK) != 0); if (unlikely(__pyx_t_2)) { - /* "src/pyrfc/throughput.pyx":136 + /* "src/pyrfc/throughput.pyx":197 * rc = RfcGetDeserializationTime (self._throughput_handle, &deserializationTime, &errorInfo) * if rc != RFC_OK: * raise wrapError(&errorInfo) # <<<<<<<<<<<<<< * _stats['deserializationTime'] = deserializationTime * */ - __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 136, __pyx_L1_error) + __pyx_t_1 = __pyx_f_5pyrfc_6_cyrfc_wrapError((&__pyx_v_errorInfo)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 197, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __PYX_ERR(1, 136, __pyx_L1_error) + __PYX_ERR(1, 197, __pyx_L1_error) - /* "src/pyrfc/throughput.pyx":135 + /* "src/pyrfc/throughput.pyx":196 * * rc = RfcGetDeserializationTime (self._throughput_handle, &deserializationTime, &errorInfo) * if rc != RFC_OK: # <<<<<<<<<<<<<< @@ -41016,19 +40773,19 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py */ } - /* "src/pyrfc/throughput.pyx":137 + /* "src/pyrfc/throughput.pyx":198 * if rc != RFC_OK: * raise wrapError(&errorInfo) * _stats['deserializationTime'] = deserializationTime # <<<<<<<<<<<<<< * * return _stats */ - __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_deserializationTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 137, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_From_SAP_ULLONG(__pyx_v_deserializationTime); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_deserializationTime, __pyx_t_1) < 0)) __PYX_ERR(1, 137, __pyx_L1_error) + if (unlikely(PyDict_SetItem(__pyx_v__stats, __pyx_n_s_deserializationTime, __pyx_t_1) < 0)) __PYX_ERR(1, 198, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "src/pyrfc/throughput.pyx":139 + /* "src/pyrfc/throughput.pyx":200 * _stats['deserializationTime'] = deserializationTime * * return _stats # <<<<<<<<<<<<<< @@ -41038,12 +40795,12 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_5stats___get__(struct __py __pyx_r = __pyx_v__stats; goto __pyx_L0; - /* "src/pyrfc/throughput.pyx":88 + /* "src/pyrfc/throughput.pyx":136 * * @property * def stats(self): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_RC rc + * """Get throughput monitor statistics + * */ /* function exit code */ @@ -41094,7 +40851,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_16__reduce_cython__(CYTHON * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._throughput_handle cannot be converted to a Python object for pickling") */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 2, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -41150,7 +40907,7 @@ static PyObject *__pyx_pf_5pyrfc_6_cyrfc_10Throughput_18__setstate_cython__(CYTH * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._throughput_handle cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 4, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_Raise(__pyx_t_1, 0, 0, 0); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -41236,7 +40993,7 @@ static PyTypeObject __pyx_type_5pyrfc_6_cyrfc_ConnectionParameters = { 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/ - 0, /*tp_doc*/ + "Connection parameters instance in SAP unicode format\n\n :param args: Connection parameters like ASHOST=\"ABC\" etc\n :type args: positional\n\n :returns: Nothing\n ", /*tp_doc*/ 0, /*tp_traverse*/ 0, /*tp_clear*/ 0, /*tp_richcompare*/ @@ -41365,12 +41122,12 @@ static PyMethodDef __pyx_methods_5pyrfc_6_cyrfc_Connection[] = { {"__del__", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_5__del__, METH_NOARGS, 0}, {"__enter__", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_7__enter__, METH_NOARGS, 0}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_10Connection_9__exit__, METH_VARARGS|METH_KEYWORDS, 0}, - {"open", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_11open, METH_NOARGS, 0}, - {"reopen", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_13reopen, METH_NOARGS, 0}, - {"close", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_15close, METH_NOARGS, 0}, - {"cancel", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_17cancel, METH_NOARGS, 0}, - {"_close", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_21_close, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_20_close}, - {"_cancel", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_23_cancel, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_22_cancel}, + {"open", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_11open, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_10open}, + {"reopen", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_13reopen, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_12reopen}, + {"close", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_15close, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_14close}, + {"cancel", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_17cancel, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_16cancel}, + {"_close", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_21_close, METH_NOARGS, 0}, + {"_cancel", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_23_cancel, METH_NOARGS, 0}, {"ping", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_25ping, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_24ping}, {"reset_server_context", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_27reset_server_context, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_26reset_server_context}, {"get_connection_attributes", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Connection_29get_connection_attributes, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Connection_28get_connection_attributes}, @@ -41400,9 +41157,9 @@ static PyMethodDef __pyx_methods_5pyrfc_6_cyrfc_Connection[] = { static struct PyGetSetDef __pyx_getsets_5pyrfc_6_cyrfc_Connection[] = { {(char *)"version", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_version, 0, (char *)"Get SAP NW RFC SDK and PyRFC binding versions\n :returns: SAP NW RFC SDK major, minor, patch level and PyRFC binding version\n ", 0}, - {(char *)"options", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_options, 0, (char *)0, 0}, - {(char *)"handle", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_handle, 0, (char *)"Get client connection handle\n :returns: Client connection handle\n ", 0}, - {(char *)"alive", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_alive, 0, (char *)"Get conection alive property\n :returns: True when alive\n :type alive: boolean\n ", 0}, + {(char *)"options", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_options, 0, (char *)"Client connection configuration\n\n :getter: Client connection options\n :setter: Set when new connection object created\n :type: dict\n ", 0}, + {(char *)"handle", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_handle, 0, (char *)"Get client connection handle\n\n :getter: Client connection handle\n :type: uintptr_t\n ", 0}, + {(char *)"alive", __pyx_getprop_5pyrfc_6_cyrfc_10Connection_alive, 0, (char *)"Conection alive property\n\n :getter: True when alive\n :type: boolean\n ", 0}, {(char *)"__config", __pyx_getprop_5pyrfc_6_cyrfc_10Connection___config, __pyx_setprop_5pyrfc_6_cyrfc_10Connection___config, (char *)0, 0}, {0, 0, 0, 0, 0} }; @@ -41500,7 +41257,7 @@ static PyTypeObject __pyx_type_5pyrfc_6_cyrfc_Connection = { 0, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ - " A connection to an SAP backend system\n\n Instantiating an :class:`pyrfc.Connection` object will\n automatically attempt to open a connection the SAP backend.\n\n :param config: Configuration of the instance. Allowed keys are:\n\n ``rstrip``\n right strips strings returned from RFC call (default is True)\n ``return_import_params``\n importing parameters are returned by the RFC call (default is False)\n\n :type config: dict or None (default)\n\n :param params: SAP connection parameters. The parameters consist of\n ``client``, ``user``, ``passwd``, ``lang``, ``trace``\n and additionally one of\n\n * Direct application server logon: ``ashost``, ``sysnr``.\n * Logon with load balancing: ``mshost``, ``msserv``, ``sysid``,\n ``group``.\n ``msserv`` is needed only, if the service of the message server\n is not defined as sapms in /etc/services.\n * When logging on with SNC, ``user`` and ``passwd`` are to be replaced by\n ``snc_qop``, ``snc_myname``, ``snc_partnername``, and optionally\n ``snc_lib``.\n (If ``snc_lib`` is not specified, the RFC library uses the \"global\" GSS library\n defined via environment variable SNC_LIB.)\n\n :type params: Keyword parameters\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection attempt fails.\n ", /*tp_doc*/ + " A connection to an SAP backend system\n\n Instantiating an :class:`pyrfc.Connection` object will\n automatically attempt to open a connection the SAP backend.\n\n :param config: Configuration of the client connection, valid for all RFC calls of given connection. Allowed keys are:\n\n * ``dtime``\n ABAP DATE and TIME strings are returned as Python datetime date and time objects,\n instead of ABAP date and time strings (default is False)\n\n * ``rstrip``\n right strips strings returned from RFC call (default is True)\n\n * ``return_import_params``\n importing parameters are returned by the RFC call (default is False)\n :type config: dict or None (default)\n\n :param params: SAP connection parameters. The parameters consist of\n ``client``, ``user``, ``passwd``, ``lang``, ``trace``\n and additionally one of\n\n * Direct application server logon: ``ashost``, ``sysnr``.\n * Logon with load balancing: ``mshost``, ``msserv``, ``sysid``,\n ``group``.\n ``msserv`` is needed only, if the service of the message server\n is not defined as sapms in /etc/services.\n * When logging on with SNC, ``user`` and ``passwd`` are to be replaced by\n ``snc_qop``, ``snc_myname``, ``snc_partnername``, and optionally\n ``snc_lib``.\n (If ``snc_lib`` is not specified, the RFC library uses the \"global\" GSS library\n defined via environment variable SNC_LIB.)\n :type params: Keyword parameters\n\n :raises: :exc:`~pyrfc.RFCError` or a subclass\n thereof if the connection attempt fails.\n ", /*tp_doc*/ __pyx_tp_traverse_5pyrfc_6_cyrfc_Connection, /*tp_traverse*/ __pyx_tp_clear_5pyrfc_6_cyrfc_Connection, /*tp_clear*/ 0, /*tp_richcompare*/ @@ -41633,8 +41390,8 @@ static PyMethodDef __pyx_methods_5pyrfc_6_cyrfc_ServerConnection[] = { }; static struct PyGetSetDef __pyx_getsets_5pyrfc_6_cyrfc_ServerConnection[] = { - {(char *)"handle", __pyx_getprop_5pyrfc_6_cyrfc_16ServerConnection_handle, 0, (char *)"Get server connection handle\n :returns: Server connection handle\n ", 0}, - {(char *)"alive", __pyx_getprop_5pyrfc_6_cyrfc_16ServerConnection_alive, 0, (char *)"Get conection alive property\n :returns: True when alive\n :type alive: boolean\n ", 0}, + {(char *)"handle", __pyx_getprop_5pyrfc_6_cyrfc_16ServerConnection_handle, 0, (char *)"Server connection handle\n\n :getter: Returns server connection handle\n :type: uitptr_t\n ", 0}, + {(char *)"alive", __pyx_getprop_5pyrfc_6_cyrfc_16ServerConnection_alive, 0, (char *)"Conection alive property\n\n :getter: Returns True when alive\n :type: boolean\n ", 0}, {(char *)"debug", __pyx_getprop_5pyrfc_6_cyrfc_16ServerConnection_debug, __pyx_setprop_5pyrfc_6_cyrfc_16ServerConnection_debug, (char *)0, 0}, {(char *)"rstrip", __pyx_getprop_5pyrfc_6_cyrfc_16ServerConnection_rstrip, __pyx_setprop_5pyrfc_6_cyrfc_16ServerConnection_rstrip, (char *)0, 0}, {0, 0, 0, 0, 0} @@ -41869,14 +41626,14 @@ static int __pyx_setprop_5pyrfc_6_cyrfc_6Server_rstrip(PyObject *o, PyObject *v, } static PyMethodDef __pyx_methods_5pyrfc_6_cyrfc_Server[] = { - {"bgrfc_init", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_6Server_3bgrfc_init, METH_VARARGS|METH_KEYWORDS, 0}, + {"bgrfc_init", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_6Server_3bgrfc_init, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5pyrfc_6_cyrfc_6Server_2bgrfc_init}, {"install_bgrfc_handlers", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_5install_bgrfc_handlers, METH_O, 0}, {"add_function", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_6Server_7add_function, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5pyrfc_6_cyrfc_6Server_6add_function}, {"serve", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_9serve, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_6Server_8serve}, {"start", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_11start, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_6Server_10start}, {"stop", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_13stop, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_6Server_12stop}, {"close", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_15close, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_6Server_14close}, - {"get_server_attributes", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_17get_server_attributes, METH_NOARGS, 0}, + {"get_server_attributes", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_17get_server_attributes, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_6Server_16get_server_attributes}, {"_close", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_19_close, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_6Server_18_close}, {"__reduce_cython__", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_21__reduce_cython__, METH_NOARGS, 0}, {"__setstate_cython__", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_6Server_23__setstate_cython__, METH_O, 0}, @@ -42020,10 +41777,10 @@ static PyObject *__pyx_getprop_5pyrfc_6_cyrfc_10Throughput_stats(PyObject *o, CY } static PyMethodDef __pyx_methods_5pyrfc_6_cyrfc_Throughput[] = { - {"setOnConnection", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_3setOnConnection, METH_O, 0}, - {"getFromConnection", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection, METH_VARARGS|METH_KEYWORDS, 0}, - {"removeFromConnection", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_7removeFromConnection, METH_O, 0}, - {"reset", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_9reset, METH_NOARGS, 0}, + {"setOnConnection", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_3setOnConnection, METH_O, __pyx_doc_5pyrfc_6_cyrfc_10Throughput_2setOnConnection}, + {"getFromConnection", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_5getFromConnection, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5pyrfc_6_cyrfc_10Throughput_4getFromConnection}, + {"removeFromConnection", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_7removeFromConnection, METH_O, __pyx_doc_5pyrfc_6_cyrfc_10Throughput_6removeFromConnection}, + {"reset", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_9reset, METH_NOARGS, __pyx_doc_5pyrfc_6_cyrfc_10Throughput_8reset}, {"__del__", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_11__del__, METH_NOARGS, 0}, {"__exit__", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_13__exit__, METH_VARARGS|METH_KEYWORDS, 0}, {"__enter__", (PyCFunction)__pyx_pw_5pyrfc_6_cyrfc_10Throughput_15__enter__, METH_NOARGS, 0}, @@ -42033,9 +41790,9 @@ static PyMethodDef __pyx_methods_5pyrfc_6_cyrfc_Throughput[] = { }; static struct PyGetSetDef __pyx_getsets_5pyrfc_6_cyrfc_Throughput[] = { - {(char *)"connections", __pyx_getprop_5pyrfc_6_cyrfc_10Throughput_connections, 0, (char *)0, 0}, - {(char *)"_handle", __pyx_getprop_5pyrfc_6_cyrfc_10Throughput__handle, 0, (char *)0, 0}, - {(char *)"stats", __pyx_getprop_5pyrfc_6_cyrfc_10Throughput_stats, 0, (char *)0, 0}, + {(char *)"connections", __pyx_getprop_5pyrfc_6_cyrfc_10Throughput_connections, 0, (char *)"Get connections attached to throughput monitoring\n\n :getter: Connections' instances\n :type: set of Connection\n ", 0}, + {(char *)"_handle", __pyx_getprop_5pyrfc_6_cyrfc_10Throughput__handle, 0, (char *)"Get throughput object handle\n\n :getter: Throughput object handle\n :type: uintptr_t\n ", 0}, + {(char *)"stats", __pyx_getprop_5pyrfc_6_cyrfc_10Throughput_stats, 0, (char *)"Get throughput monitor statistics\n\n :getter: Throughput monitor counters\n :type: dict(str,int)\n\n * numberOfCalls\n * sentBytes\n * receivedBytes\n * applicationTime\n * totalTime\n * serializationTime\n * deserializationTime\n ", 0}, {0, 0, 0, 0, 0} }; @@ -42653,8 +42410,6 @@ static int __pyx_import_star_set(PyObject *o, PyObject* py_name, char *name) { "__pyx_ctuple_RFC_DIRECTION_struct", "__pyx_ctuple_RFC_UNIT_STATE", "__pyx_ctuple_RFC_UNIT_STATE_struct", - "__pyx_ctuple_long", - "__pyx_ctuple_long_struct", "__pyx_ctuple_unsigned__space_int", "__pyx_ctuple_unsigned__space_int_struct", "__pyx_opt_args_5pyrfc_6_cyrfc_wrapString", @@ -42844,10 +42599,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_Argument_queue_names_not_valid_t, __pyx_k_Argument_queue_names_not_valid_t, sizeof(__pyx_k_Argument_queue_names_not_valid_t), 0, 0, 1, 0}, {&__pyx_kp_s_Argument_unit_not_valid_Is_unit, __pyx_k_Argument_unit_not_valid_Is_unit, sizeof(__pyx_k_Argument_unit_not_valid_Is_unit), 0, 0, 1, 0}, {&__pyx_kp_u_Authentication_exception_raised, __pyx_k_Authentication_exception_raised, sizeof(__pyx_k_Authentication_exception_raised), 0, 1, 0, 0}, - {&__pyx_n_s_BaseHTTPRequestHandler, __pyx_k_BaseHTTPRequestHandler, sizeof(__pyx_k_BaseHTTPRequestHandler), 0, 0, 1, 1}, - {&__pyx_n_s_BasicServer, __pyx_k_BasicServer, sizeof(__pyx_k_BasicServer), 0, 0, 1, 1}, - {&__pyx_n_s_BasicServer__set_response, __pyx_k_BasicServer__set_response, sizeof(__pyx_k_BasicServer__set_response), 0, 0, 1, 1}, - {&__pyx_n_s_BasicServer_do_GET, __pyx_k_BasicServer_do_GET, sizeof(__pyx_k_BasicServer_do_GET), 0, 0, 1, 1}, {&__pyx_kp_u_BgRfc_callback_function_key_not, __pyx_k_BgRfc_callback_function_key_not, sizeof(__pyx_k_BgRfc_callback_function_key_not), 0, 1, 0, 0}, {&__pyx_kp_u_BgRfc_callback_function_referenc, __pyx_k_BgRfc_callback_function_referenc, sizeof(__pyx_k_BgRfc_callback_function_referenc), 0, 1, 0, 0}, {&__pyx_kp_u_Callback_functions_may_only_rai, __pyx_k_Callback_functions_may_only_rai, sizeof(__pyx_k_Callback_functions_may_only_rai), 0, 1, 0, 0}, @@ -42856,7 +42607,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_ConnectionParameters, __pyx_k_ConnectionParameters, sizeof(__pyx_k_ConnectionParameters), 0, 0, 1, 1}, {&__pyx_kp_s_Connection_object_required_recei, __pyx_k_Connection_object_required_recei, sizeof(__pyx_k_Connection_object_required_recei), 0, 0, 1, 0}, {&__pyx_kp_s_Connection_parameters_missing, __pyx_k_Connection_parameters_missing, sizeof(__pyx_k_Connection_parameters_missing), 0, 0, 1, 0}, - {&__pyx_kp_s_Content_type, __pyx_k_Content_type, sizeof(__pyx_k_Content_type), 0, 0, 1, 0}, {&__pyx_kp_s_Crypto_library_not_found, __pyx_k_Crypto_library_not_found, sizeof(__pyx_k_Crypto_library_not_found), 0, 0, 1, 0}, {&__pyx_n_s_Decimal, __pyx_k_Decimal, sizeof(__pyx_k_Decimal), 0, 0, 1, 1}, {&__pyx_n_s_Enum, __pyx_k_Enum, sizeof(__pyx_k_Enum), 0, 0, 1, 1}, @@ -42900,7 +42650,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_Parameter_calls_must_contain_at, __pyx_k_Parameter_calls_must_contain_at, sizeof(__pyx_k_Parameter_calls_must_contain_at), 0, 0, 1, 0}, {&__pyx_kp_s_Parameter_calls_must_contain_val, __pyx_k_Parameter_calls_must_contain_val, sizeof(__pyx_k_Parameter_calls_must_contain_val), 0, 0, 1, 0}, {&__pyx_kp_s_Parameter_unit_not_valid_Please, __pyx_k_Parameter_unit_not_valid_Please, sizeof(__pyx_k_Parameter_unit_not_valid_Please), 0, 0, 1, 0}, - {&__pyx_kp_s_Press_CTRL_C_to_end, __pyx_k_Press_CTRL_C_to_end, sizeof(__pyx_k_Press_CTRL_C_to_end), 0, 0, 1, 0}, {&__pyx_n_s_Q, __pyx_k_Q, sizeof(__pyx_k_Q), 0, 0, 1, 1}, {&__pyx_n_s_RCStatus, __pyx_k_RCStatus, sizeof(__pyx_k_RCStatus), 0, 0, 1, 1}, {&__pyx_n_s_RFCError, __pyx_k_RFCError, sizeof(__pyx_k_RFCError), 0, 0, 1, 1}, @@ -42979,7 +42728,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_u__41, __pyx_k__41, sizeof(__pyx_k__41), 0, 1, 0, 0}, {&__pyx_kp_u__42, __pyx_k__42, sizeof(__pyx_k__42), 0, 1, 0, 0}, {&__pyx_kp_s__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 0, 1, 0}, - {&__pyx_n_s__53, __pyx_k__53, sizeof(__pyx_k__53), 0, 0, 1, 1}, + {&__pyx_n_s__52, __pyx_k__52, sizeof(__pyx_k__52), 0, 0, 1, 1}, {&__pyx_kp_u__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 1, 0, 0}, {&__pyx_kp_s__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 0, 1, 0}, {&__pyx_kp_u__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 1, 0, 0}, @@ -43060,13 +42809,11 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_dictionary_required_for_structur, __pyx_k_dictionary_required_for_structur, sizeof(__pyx_k_dictionary_required_for_structur), 0, 0, 1, 0}, {&__pyx_n_s_direction, __pyx_k_direction, sizeof(__pyx_k_direction), 0, 0, 1, 1}, {&__pyx_kp_u_direction_string, __pyx_k_direction_string, sizeof(__pyx_k_direction_string), 0, 1, 0, 0}, - {&__pyx_n_s_do_GET, __pyx_k_do_GET, sizeof(__pyx_k_do_GET), 0, 0, 1, 1}, {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, {&__pyx_n_s_dtime, __pyx_k_dtime, sizeof(__pyx_k_dtime), 0, 0, 1, 1}, {&__pyx_n_s_dumps, __pyx_k_dumps, sizeof(__pyx_k_dumps), 0, 0, 1, 1}, {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1}, {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1}, - {&__pyx_n_s_end_headers, __pyx_k_end_headers, sizeof(__pyx_k_end_headers), 0, 0, 1, 1}, {&__pyx_n_s_enum, __pyx_k_enum, sizeof(__pyx_k_enum), 0, 0, 1, 1}, {&__pyx_n_s_enum_names, __pyx_k_enum_names, sizeof(__pyx_k_enum_names), 0, 0, 1, 1}, {&__pyx_n_s_enum_names_locals_genexpr, __pyx_k_enum_names_locals_genexpr, sizeof(__pyx_k_enum_names_locals_genexpr), 0, 0, 1, 1}, @@ -43100,6 +42847,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_get_transaction_id, __pyx_k_get_transaction_id, sizeof(__pyx_k_get_transaction_id), 0, 0, 1, 1}, {&__pyx_n_s_get_unit_id, __pyx_k_get_unit_id, sizeof(__pyx_k_get_unit_id), 0, 0, 1, 1}, {&__pyx_n_s_get_unit_state, __pyx_k_get_unit_state, sizeof(__pyx_k_get_unit_state), 0, 0, 1, 1}, + {&__pyx_n_s_gethostname, __pyx_k_gethostname, sizeof(__pyx_k_gethostname), 0, 0, 1, 1}, {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1}, {&__pyx_kp_u_handle, __pyx_k_handle, sizeof(__pyx_k_handle), 0, 1, 0, 0}, {&__pyx_n_s_handle_2, __pyx_k_handle_2, sizeof(__pyx_k_handle_2), 0, 0, 1, 1}, @@ -43108,7 +42856,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_host, __pyx_k_host, sizeof(__pyx_k_host), 0, 0, 1, 1}, {&__pyx_n_s_hostname, __pyx_k_hostname, sizeof(__pyx_k_hostname), 0, 0, 1, 1}, {&__pyx_n_s_hour, __pyx_k_hour, sizeof(__pyx_k_hour), 0, 0, 1, 1}, - {&__pyx_n_s_http_server, __pyx_k_http_server, sizeof(__pyx_k_http_server), 0, 0, 1, 1}, {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1}, {&__pyx_n_s_idunitStateentifier, __pyx_k_idunitStateentifier, sizeof(__pyx_k_idunitStateentifier), 0, 0, 1, 1}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, @@ -43252,8 +42999,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_self__handle_self__tHandle_self, __pyx_k_self__handle_self__tHandle_self, sizeof(__pyx_k_self__handle_self__tHandle_self), 0, 0, 1, 0}, {&__pyx_kp_s_self__throughput_handle_cannot_b, __pyx_k_self__throughput_handle_cannot_b, sizeof(__pyx_k_self__throughput_handle_cannot_b), 0, 0, 1, 0}, {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, - {&__pyx_n_s_send_header, __pyx_k_send_header, sizeof(__pyx_k_send_header), 0, 0, 1, 1}, - {&__pyx_n_s_send_response, __pyx_k_send_response, sizeof(__pyx_k_send_response), 0, 0, 1, 1}, {&__pyx_n_s_sending_date, __pyx_k_sending_date, sizeof(__pyx_k_sending_date), 0, 0, 1, 1}, {&__pyx_n_s_sending_time, __pyx_k_sending_time, sizeof(__pyx_k_sending_time), 0, 0, 1, 1}, {&__pyx_n_s_sentBytes, __pyx_k_sentBytes, sizeof(__pyx_k_sentBytes), 0, 0, 1, 1}, @@ -43270,11 +43015,11 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_set_cryptolib_path, __pyx_k_set_cryptolib_path, sizeof(__pyx_k_set_cryptolib_path), 0, 0, 1, 1}, {&__pyx_n_s_set_ini_file_directory, __pyx_k_set_ini_file_directory, sizeof(__pyx_k_set_ini_file_directory), 0, 0, 1, 1}, {&__pyx_n_s_set_locale_radix, __pyx_k_set_locale_radix, sizeof(__pyx_k_set_locale_radix), 0, 0, 1, 1}, - {&__pyx_n_s_set_response, __pyx_k_set_response, sizeof(__pyx_k_set_response), 0, 0, 1, 1}, {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1}, {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1}, {&__pyx_kp_u_should_be_from_1_30_chars, __pyx_k_should_be_from_1_30_chars, sizeof(__pyx_k_should_be_from_1_30_chars), 0, 1, 0, 0}, {&__pyx_kp_u_should_be_from_1_30_chars_2, __pyx_k_should_be_from_1_30_chars_2, sizeof(__pyx_k_should_be_from_1_30_chars_2), 0, 1, 0, 0}, + {&__pyx_n_s_socket, __pyx_k_socket, sizeof(__pyx_k_socket), 0, 0, 1, 1}, {&__pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_k_src_pyrfc_nwrfcsdk_pyx, sizeof(__pyx_k_src_pyrfc_nwrfcsdk_pyx), 0, 0, 1, 0}, {&__pyx_kp_s_src_pyrfc_server_pyx, __pyx_k_src_pyrfc_server_pyx, sizeof(__pyx_k_src_pyrfc_server_pyx), 0, 0, 1, 0}, {&__pyx_kp_s_src_pyrfc_throughput_pyx, __pyx_k_src_pyrfc_throughput_pyx, sizeof(__pyx_k_src_pyrfc_throughput_pyx), 0, 0, 1, 0}, @@ -43292,9 +43037,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1}, {&__pyx_n_s_t_code, __pyx_k_t_code, sizeof(__pyx_k_t_code), 0, 0, 1, 1}, {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1}, - {&__pyx_kp_s_tcp_socket, __pyx_k_tcp_socket, sizeof(__pyx_k_tcp_socket), 0, 0, 1, 0}, {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, - {&__pyx_kp_s_text_html, __pyx_k_text_html, sizeof(__pyx_k_text_html), 0, 0, 1, 0}, {&__pyx_n_s_threading, __pyx_k_threading, sizeof(__pyx_k_threading), 0, 0, 1, 1}, {&__pyx_n_s_throughput, __pyx_k_throughput, sizeof(__pyx_k_throughput), 0, 0, 1, 1}, {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, @@ -43321,22 +43064,19 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_upper, __pyx_k_upper, sizeof(__pyx_k_upper), 0, 0, 1, 1}, {&__pyx_n_s_user, __pyx_k_user, sizeof(__pyx_k_user), 0, 0, 1, 1}, {&__pyx_n_s_utcnow, __pyx_k_utcnow, sizeof(__pyx_k_utcnow), 0, 0, 1, 1}, - {&__pyx_kp_s_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 0, 1, 0}, {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, - {&__pyx_n_s_wfile, __pyx_k_wfile, sizeof(__pyx_k_wfile), 0, 0, 1, 1}, {&__pyx_kp_u_when_getting_server_context_for, __pyx_k_when_getting_server_context_for, sizeof(__pyx_k_when_getting_server_context_for), 0, 1, 0, 0}, {&__pyx_kp_u_with, __pyx_k_with, sizeof(__pyx_k_with), 0, 1, 0, 0}, {&__pyx_kp_s_wrapString_uclen_u_utf8_size_u, __pyx_k_wrapString_uclen_u_utf8_size_u, sizeof(__pyx_k_wrapString_uclen_u_utf8_size_u), 0, 0, 1, 0}, - {&__pyx_n_s_write, __pyx_k_write, sizeof(__pyx_k_write), 0, 0, 1, 1}, {&__pyx_n_s_year, __pyx_k_year, sizeof(__pyx_k_year), 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0} }; static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) { - __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 193, __pyx_L1_error) - __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(1, 42, __pyx_L1_error) + __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 200, __pyx_L1_error) + __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(1, 64, __pyx_L1_error) __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 39, __pyx_L1_error) - __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 182, __pyx_L1_error) - __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(2, 584, __pyx_L1_error) + __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 189, __pyx_L1_error) + __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(2, 615, __pyx_L1_error) return 0; __pyx_L1_error:; return -1; @@ -43365,14 +43105,14 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); - /* "src/pyrfc/nwrfcsdk.pyx":341 + /* "src/pyrfc/nwrfcsdk.pyx":348 * raise TypeError(f"'default_value' (string) '{default_value}' must not exceed 30 chars.") * if len(parameter_text)>79: * raise TypeError("'parameter_text' (string) '{parameter_text}' must not exceed 79 chars.") # <<<<<<<<<<<<<< * self.parameters.append({ * 'name': name, */ - __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_parameter_text_string_parameter); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 341, __pyx_L1_error) + __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_parameter_text_string_parameter); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 348, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); @@ -43487,102 +43227,102 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__22); __Pyx_GIVEREF(__pyx_slice__22); - /* "src/pyrfc/client.pyx":101 + /* "src/pyrfc/client.pyx":113 * # set connection config, rstrip default True * self.__config = {} * self.__config['dtime'] = config.get('dtime', False) # <<<<<<<<<<<<<< * self.__config['return_import_params'] = config.get('return_import_params', False) * self.__config['rstrip'] = config.get('rstrip', True) */ - __pyx_tuple__24 = PyTuple_Pack(2, __pyx_n_s_dtime, Py_False); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(2, 101, __pyx_L1_error) + __pyx_tuple__24 = PyTuple_Pack(2, __pyx_n_s_dtime, Py_False); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(2, 113, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); - /* "src/pyrfc/client.pyx":102 + /* "src/pyrfc/client.pyx":114 * self.__config = {} * self.__config['dtime'] = config.get('dtime', False) * self.__config['return_import_params'] = config.get('return_import_params', False) # <<<<<<<<<<<<<< * self.__config['rstrip'] = config.get('rstrip', True) * # set internal configuration */ - __pyx_tuple__25 = PyTuple_Pack(2, __pyx_n_s_return_import_params, Py_False); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(2, 102, __pyx_L1_error) + __pyx_tuple__25 = PyTuple_Pack(2, __pyx_n_s_return_import_params, Py_False); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(2, 114, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__25); __Pyx_GIVEREF(__pyx_tuple__25); - /* "src/pyrfc/client.pyx":103 + /* "src/pyrfc/client.pyx":115 * self.__config['dtime'] = config.get('dtime', False) * self.__config['return_import_params'] = config.get('return_import_params', False) * self.__config['rstrip'] = config.get('rstrip', True) # <<<<<<<<<<<<<< * # set internal configuration * self.__bconfig = 0 */ - __pyx_tuple__26 = PyTuple_Pack(2, __pyx_n_s_rstrip, Py_True); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(2, 103, __pyx_L1_error) + __pyx_tuple__26 = PyTuple_Pack(2, __pyx_n_s_rstrip, Py_True); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(2, 115, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); - /* "src/pyrfc/client.pyx":629 + /* "src/pyrfc/client.pyx":660 * if 'user' in attributes and attributes['user'] is not None: * # (SAP_UC[12+1]) Sender User (optional). Default is current operating system User. * sapuc = fillString(attributes['user'][0:12]) # <<<<<<<<<<<<<< * strncpyU(unitAttr.user, sapuc, len(attributes['user'][0:12]) + 1) * free(sapuc) */ - __pyx_slice__28 = PySlice_New(__pyx_int_0, __pyx_int_12, Py_None); if (unlikely(!__pyx_slice__28)) __PYX_ERR(2, 629, __pyx_L1_error) + __pyx_slice__28 = PySlice_New(__pyx_int_0, __pyx_int_12, Py_None); if (unlikely(!__pyx_slice__28)) __PYX_ERR(2, 660, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__28); __Pyx_GIVEREF(__pyx_slice__28); - /* "src/pyrfc/client.pyx":644 + /* "src/pyrfc/client.pyx":675 * if 'program' in attributes and attributes['program'] is not None: * # (SAP_UC[40+1]) Sender Program (optional). Default is current executable name. * sapuc = fillString(attributes['program'][0:40]) # <<<<<<<<<<<<<< * strncpyU(unitAttr.program, sapuc, len(attributes['program'][0:40]) + 1) * free(sapuc) */ - __pyx_slice__29 = PySlice_New(__pyx_int_0, __pyx_int_40, Py_None); if (unlikely(!__pyx_slice__29)) __PYX_ERR(2, 644, __pyx_L1_error) + __pyx_slice__29 = PySlice_New(__pyx_int_0, __pyx_int_40, Py_None); if (unlikely(!__pyx_slice__29)) __PYX_ERR(2, 675, __pyx_L1_error) __Pyx_GOTREF(__pyx_slice__29); __Pyx_GIVEREF(__pyx_slice__29); - /* "src/pyrfc/client.pyx":827 + /* "src/pyrfc/client.pyx":858 * * if type(unit) is not dict or 'id' not in unit or 'background' not in unit: * raise TypeError("Parameter 'unit' not valid. Please use initialize_unit() to retrieve a valid unit.") # <<<<<<<<<<<<<< * if not isinstance(calls, Iterable): * raise TypeError("Parameter 'calls' must be iterable.") */ - __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_Parameter_unit_not_valid_Please); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(2, 827, __pyx_L1_error) + __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_Parameter_unit_not_valid_Please); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(2, 858, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__30); __Pyx_GIVEREF(__pyx_tuple__30); - /* "src/pyrfc/client.pyx":829 + /* "src/pyrfc/client.pyx":860 * raise TypeError("Parameter 'unit' not valid. Please use initialize_unit() to retrieve a valid unit.") * if not isinstance(calls, Iterable): * raise TypeError("Parameter 'calls' must be iterable.") # <<<<<<<<<<<<<< * if len(calls)==0: * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") */ - __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_Parameter_calls_must_be_iterable); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 829, __pyx_L1_error) + __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_Parameter_calls_must_be_iterable); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 860, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); - /* "src/pyrfc/client.pyx":831 + /* "src/pyrfc/client.pyx":862 * raise TypeError("Parameter 'calls' must be iterable.") * if len(calls)==0: * raise TypeError("Parameter 'calls' must contain at least on call description (func_name, params).") # <<<<<<<<<<<<<< * for func_name, params in calls: * if type(func_name) is not str or type(params) is not dict: */ - __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_Parameter_calls_must_contain_at); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(2, 831, __pyx_L1_error) + __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_Parameter_calls_must_contain_at); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(2, 862, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__32); __Pyx_GIVEREF(__pyx_tuple__32); - /* "src/pyrfc/client.pyx":834 + /* "src/pyrfc/client.pyx":865 * for func_name, params in calls: * if type(func_name) is not str or type(params) is not dict: * raise TypeError("Parameter 'calls' must contain valid call descriptions (func_name, params dict).") # <<<<<<<<<<<<<< * if self.active_unit: * raise RFCError("There is an active unit for this connection. " */ - __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_Parameter_calls_must_contain_val); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(2, 834, __pyx_L1_error) + __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_Parameter_calls_must_contain_val); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(2, 865, __pyx_L1_error) __Pyx_GOTREF(__pyx_tuple__33); __Pyx_GIVEREF(__pyx_tuple__33); @@ -43624,49 +43364,38 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__40); __Pyx_GIVEREF(__pyx_tuple__40); - /* "src/pyrfc/server.pyx":243 - * def _set_response(self): - * self.send_response(200) - * self.send_header('Content-type', 'text/html') # <<<<<<<<<<<<<< - * self.end_headers() - * - */ - __pyx_tuple__43 = PyTuple_Pack(2, __pyx_kp_s_Content_type, __pyx_kp_s_text_html); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(5, 243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__43); - __Pyx_GIVEREF(__pyx_tuple__43); - - /* "src/pyrfc/server.pyx":302 + /* "src/pyrfc/server.pyx":292 * * # config parsing * self.debug = config.get('debug', False) # <<<<<<<<<<<<<< * self.rstrip = config.get('rstrip', True) * server_context["server_log"] = config.get("server_log", False) */ - __pyx_tuple__45 = PyTuple_Pack(2, __pyx_n_s_debug, Py_False); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(5, 302, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__45); - __Pyx_GIVEREF(__pyx_tuple__45); + __pyx_tuple__44 = PyTuple_Pack(2, __pyx_n_s_debug, Py_False); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(5, 292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__44); + __Pyx_GIVEREF(__pyx_tuple__44); - /* "src/pyrfc/server.pyx":304 + /* "src/pyrfc/server.pyx":294 * self.debug = config.get('debug', False) * self.rstrip = config.get('rstrip', True) * server_context["server_log"] = config.get("server_log", False) # <<<<<<<<<<<<<< * server_context["auth_check"] = config.get("auth_check", default_auth_check) * server_context["port"] = config.get("port", 8080) */ - __pyx_tuple__46 = PyTuple_Pack(2, __pyx_n_s_server_log_2, Py_False); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(5, 304, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__46); - __Pyx_GIVEREF(__pyx_tuple__46); + __pyx_tuple__45 = PyTuple_Pack(2, __pyx_n_s_server_log_2, Py_False); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(5, 294, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__45); + __Pyx_GIVEREF(__pyx_tuple__45); - /* "src/pyrfc/server.pyx":306 + /* "src/pyrfc/server.pyx":296 * server_context["server_log"] = config.get("server_log", False) * server_context["auth_check"] = config.get("auth_check", default_auth_check) * server_context["port"] = config.get("port", 8080) # <<<<<<<<<<<<<< * * self._client_connection = Connection(**client_params) */ - __pyx_tuple__47 = PyTuple_Pack(2, __pyx_n_s_port, __pyx_int_8080); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(5, 306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__47); - __Pyx_GIVEREF(__pyx_tuple__47); + __pyx_tuple__46 = PyTuple_Pack(2, __pyx_n_s_port, __pyx_int_8080); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(5, 296, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__46); + __Pyx_GIVEREF(__pyx_tuple__46); /* "(tree fragment)":2 * def __reduce_cython__(self): @@ -43674,18 +43403,18 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") */ - __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(3, 2, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__48); - __Pyx_GIVEREF(__pyx_tuple__48); + __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(3, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__47); + __Pyx_GIVEREF(__pyx_tuple__47); /* "(tree fragment)":4 * raise TypeError("no default __reduce__ due to non-trivial __cinit__") * def __setstate_cython__(self, __pyx_state): * raise TypeError("no default __reduce__ due to non-trivial __cinit__") # <<<<<<<<<<<<<< */ - __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(3, 4, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__49); - __Pyx_GIVEREF(__pyx_tuple__49); + __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(3, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__48); + __Pyx_GIVEREF(__pyx_tuple__48); /* "(tree fragment)":2 * def __reduce_cython__(self): @@ -43693,18 +43422,18 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._throughput_handle cannot be converted to a Python object for pickling") */ - __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_self__throughput_handle_cannot_b); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(3, 2, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__51); - __Pyx_GIVEREF(__pyx_tuple__51); + __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_self__throughput_handle_cannot_b); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(3, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__50); + __Pyx_GIVEREF(__pyx_tuple__50); /* "(tree fragment)":4 * raise TypeError("self._throughput_handle cannot be converted to a Python object for pickling") * def __setstate_cython__(self, __pyx_state): * raise TypeError("self._throughput_handle cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<< */ - __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_self__throughput_handle_cannot_b); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(3, 4, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__52); - __Pyx_GIVEREF(__pyx_tuple__52); + __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_self__throughput_handle_cannot_b); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(3, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__51); + __Pyx_GIVEREF(__pyx_tuple__51); /* "src/pyrfc/nwrfcsdk.pyx":11 * @@ -43713,10 +43442,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * return pickle.dumps(obj, pickle.HIGHEST_PROTOCOL) * */ - __pyx_tuple__54 = PyTuple_Pack(1, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 11, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__54); - __Pyx_GIVEREF(__pyx_tuple__54); - __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_py_to_string, 11, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 11, __pyx_L1_error) + __pyx_tuple__53 = PyTuple_Pack(1, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 11, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__53); + __Pyx_GIVEREF(__pyx_tuple__53); + __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__53, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_py_to_string, 11, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 11, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":15 * @@ -43725,22 +43454,22 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * return pickle.loads(objstr) * */ - __pyx_tuple__56 = PyTuple_Pack(1, __pyx_n_s_objstr); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 15, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__56); - __Pyx_GIVEREF(__pyx_tuple__56); - __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__56, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_string_to_py, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 15, __pyx_L1_error) + __pyx_tuple__55 = PyTuple_Pack(1, __pyx_n_s_objstr); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 15, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__55); + __Pyx_GIVEREF(__pyx_tuple__55); + __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__55, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_string_to_py, 15, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 15, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":19 * * * def get_nwrfclib_version(): # <<<<<<<<<<<<<< * """Get SAP NW RFC Lib version - * :returns: tuple of major, minor and patch level + * :returns: tuple of major, minor and patch level and OS platform */ - __pyx_tuple__58 = PyTuple_Pack(3, __pyx_n_s_major, __pyx_n_s_minor, __pyx_n_s_patchlevel); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 19, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__58); - __Pyx_GIVEREF(__pyx_tuple__58); - __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_get_nwrfclib_version, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 19, __pyx_L1_error) + __pyx_tuple__57 = PyTuple_Pack(3, __pyx_n_s_major, __pyx_n_s_minor, __pyx_n_s_patchlevel); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 19, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__57); + __Pyx_GIVEREF(__pyx_tuple__57); + __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_get_nwrfclib_version, 19, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)) __PYX_ERR(0, 19, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":30 * @@ -43749,10 +43478,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Sets the directory in which to search for the sapnwrfc.ini file * */ - __pyx_tuple__60 = PyTuple_Pack(4, __pyx_n_s_path_name, __pyx_n_s_errorInfo, __pyx_n_s_pathName, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 30, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__60); - __Pyx_GIVEREF(__pyx_tuple__60); - __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_set_ini_file_directory, 30, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 30, __pyx_L1_error) + __pyx_tuple__59 = PyTuple_Pack(4, __pyx_n_s_path_name, __pyx_n_s_errorInfo, __pyx_n_s_pathName, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 30, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__59); + __Pyx_GIVEREF(__pyx_tuple__59); + __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_set_ini_file_directory, 30, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(0, 30, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":50 * @@ -43761,10 +43490,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Reloads the contents of the sapnwrfc.ini file into memory. * */ - __pyx_tuple__62 = PyTuple_Pack(2, __pyx_n_s_errorInfo, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 50, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__62); - __Pyx_GIVEREF(__pyx_tuple__62); - __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_reload_ini_file, 50, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 50, __pyx_L1_error) + __pyx_tuple__61 = PyTuple_Pack(2, __pyx_n_s_errorInfo, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 50, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__61); + __Pyx_GIVEREF(__pyx_tuple__61); + __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_reload_ini_file, 50, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) __PYX_ERR(0, 50, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":69 * @@ -43773,10 +43502,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Language code conversion of ISO code to SAP code. * */ - __pyx_tuple__64 = PyTuple_Pack(5, __pyx_n_s_lang_iso, __pyx_n_s_uclang_iso, __pyx_n_s_uclang_sap, __pyx_n_s_errorInfo, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 69, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__64); - __Pyx_GIVEREF(__pyx_tuple__64); - __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_language_iso_to_sap, 69, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 69, __pyx_L1_error) + __pyx_tuple__63 = PyTuple_Pack(5, __pyx_n_s_lang_iso, __pyx_n_s_uclang_iso, __pyx_n_s_uclang_sap, __pyx_n_s_errorInfo, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 69, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__63); + __Pyx_GIVEREF(__pyx_tuple__63); + __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_language_iso_to_sap, 69, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 69, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":90 * @@ -43785,10 +43514,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Language code conversion of SAP code to ISO code. * */ - __pyx_tuple__66 = PyTuple_Pack(5, __pyx_n_s_lang_sap, __pyx_n_s_uclang_sap, __pyx_n_s_uclang_iso, __pyx_n_s_errorInfo, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 90, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__66); - __Pyx_GIVEREF(__pyx_tuple__66); - __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_language_sap_to_iso, 90, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 90, __pyx_L1_error) + __pyx_tuple__65 = PyTuple_Pack(5, __pyx_n_s_lang_sap, __pyx_n_s_uclang_sap, __pyx_n_s_uclang_iso, __pyx_n_s_errorInfo, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 90, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__65); + __Pyx_GIVEREF(__pyx_tuple__65); + __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__65, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_language_sap_to_iso, 90, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__66)) __PYX_ERR(0, 90, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":111 * @@ -43797,10 +43526,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Sets the absolute path to the sapcrypto library to enable TLS encryption via Websocket Rfc. * */ - __pyx_tuple__68 = PyTuple_Pack(4, __pyx_n_s_path_name, __pyx_n_s_errorInfo, __pyx_n_s_pathName, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__68); - __Pyx_GIVEREF(__pyx_tuple__68); - __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__68, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_set_cryptolib_path, 111, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(0, 111, __pyx_L1_error) + __pyx_tuple__67 = PyTuple_Pack(4, __pyx_n_s_path_name, __pyx_n_s_errorInfo, __pyx_n_s_pathName, __pyx_n_s_rc); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__67); + __Pyx_GIVEREF(__pyx_tuple__67); + __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_set_cryptolib_path, 111, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 111, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":135 * @@ -43809,10 +43538,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * """Sets the locale radix for decimal conversions. * */ - __pyx_tuple__70 = PyTuple_Pack(1, __pyx_n_s_value); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 135, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__70); - __Pyx_GIVEREF(__pyx_tuple__70); - __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_set_locale_radix, 135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 135, __pyx_L1_error) + __pyx_tuple__69 = PyTuple_Pack(1, __pyx_n_s_value); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__69); + __Pyx_GIVEREF(__pyx_tuple__69); + __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_set_locale_radix, 135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) __PYX_ERR(0, 135, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":150 * @@ -43821,10 +43550,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * return set(e.name for e in enum_obj) * */ - __pyx_tuple__72 = PyTuple_Pack(3, __pyx_n_s_enum_obj, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 150, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__72); - __Pyx_GIVEREF(__pyx_tuple__72); - __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_enum_names, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(0, 150, __pyx_L1_error) + __pyx_tuple__71 = PyTuple_Pack(3, __pyx_n_s_enum_obj, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 150, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__71); + __Pyx_GIVEREF(__pyx_tuple__71); + __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_enum_names, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 150, __pyx_L1_error) /* "src/pyrfc/nwrfcsdk.pyx":154 * @@ -43833,109 +43562,109 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * return set(e.value for e in enum_obj) * */ - __pyx_tuple__74 = PyTuple_Pack(3, __pyx_n_s_enum_obj, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__74); - __Pyx_GIVEREF(__pyx_tuple__74); - __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__74, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_enum_values, 154, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(0, 154, __pyx_L1_error) + __pyx_tuple__73 = PyTuple_Pack(3, __pyx_n_s_enum_obj, __pyx_n_s_genexpr, __pyx_n_s_genexpr); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__73); + __Pyx_GIVEREF(__pyx_tuple__73); + __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_enum_values, 154, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 154, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":193 + /* "src/pyrfc/nwrfcsdk.pyx":200 * * * class TypeDescription(object): # <<<<<<<<<<<<<< * """ A type description * */ - __pyx_tuple__76 = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__76); - __Pyx_GIVEREF(__pyx_tuple__76); + __pyx_tuple__75 = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__75); + __Pyx_GIVEREF(__pyx_tuple__75); - /* "src/pyrfc/nwrfcsdk.pyx":218 + /* "src/pyrfc/nwrfcsdk.pyx":225 * * """ * def __init__(self, name, nuc_length, uc_length): # <<<<<<<<<<<<<< * self.fields = [] * if len(name)<1 or len(name)>30: */ - __pyx_tuple__77 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_nuc_length, __pyx_n_s_uc_length, __pyx_n_s_int_field); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__77); - __Pyx_GIVEREF(__pyx_tuple__77); - __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_init, 218, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 218, __pyx_L1_error) + __pyx_tuple__76 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_nuc_length, __pyx_n_s_uc_length, __pyx_n_s_int_field); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__76); + __Pyx_GIVEREF(__pyx_tuple__76); + __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__76, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_init, 225, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(0, 225, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":229 + /* "src/pyrfc/nwrfcsdk.pyx":236 * self.uc_length = uc_length * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, # <<<<<<<<<<<<<< * uc_offset, decimals=0, type_description=None): * """ Adds a field to the type description. */ - __pyx_tuple__79 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_field_type, __pyx_n_s_nuc_length, __pyx_n_s_uc_length, __pyx_n_s_nuc_offset, __pyx_n_s_uc_offset, __pyx_n_s_decimals, __pyx_n_s_type_description, __pyx_n_s_int_field); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 229, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__79); - __Pyx_GIVEREF(__pyx_tuple__79); - __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_add_field, 229, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 229, __pyx_L1_error) - __pyx_tuple__81 = PyTuple_Pack(2, ((PyObject *)__pyx_int_0), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 229, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__81); - __Pyx_GIVEREF(__pyx_tuple__81); + __pyx_tuple__78 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_field_type, __pyx_n_s_nuc_length, __pyx_n_s_uc_length, __pyx_n_s_nuc_offset, __pyx_n_s_uc_offset, __pyx_n_s_decimals, __pyx_n_s_type_description, __pyx_n_s_int_field); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__78); + __Pyx_GIVEREF(__pyx_tuple__78); + __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(9, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_add_field, 236, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(0, 236, __pyx_L1_error) + __pyx_tuple__80 = PyTuple_Pack(2, ((PyObject *)__pyx_int_0), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__80); + __Pyx_GIVEREF(__pyx_tuple__80); - /* "src/pyrfc/nwrfcsdk.pyx":270 + /* "src/pyrfc/nwrfcsdk.pyx":277 * }) * * def __repr__(self): # <<<<<<<<<<<<<< * return f"" */ - __pyx_tuple__82 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 270, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__82); - __Pyx_GIVEREF(__pyx_tuple__82); - __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_repr, 270, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(0, 270, __pyx_L1_error) + __pyx_tuple__81 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__81); + __Pyx_GIVEREF(__pyx_tuple__81); + __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_repr, 277, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 277, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":279 + /* "src/pyrfc/nwrfcsdk.pyx":286 * * * class FunctionDescription(object): # <<<<<<<<<<<<<< * """ A function description * */ - __pyx_tuple__84 = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 279, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__84); - __Pyx_GIVEREF(__pyx_tuple__84); + __pyx_tuple__83 = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__83); + __Pyx_GIVEREF(__pyx_tuple__83); - /* "src/pyrfc/nwrfcsdk.pyx":302 + /* "src/pyrfc/nwrfcsdk.pyx":309 * * """ * def __init__(self, name): # <<<<<<<<<<<<<< * self.name = name * self.parameters = [] */ - __pyx_tuple__85 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 302, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__85); - __Pyx_GIVEREF(__pyx_tuple__85); - __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_init, 302, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 302, __pyx_L1_error) + __pyx_tuple__84 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__84); + __Pyx_GIVEREF(__pyx_tuple__84); + __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_init, 309, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(0, 309, __pyx_L1_error) - /* "src/pyrfc/nwrfcsdk.pyx":306 + /* "src/pyrfc/nwrfcsdk.pyx":313 * self.parameters = [] * * def add_parameter(self, name, parameter_type, direction, nuc_length, # <<<<<<<<<<<<<< * uc_length, decimals=0, default_value="", parameter_text="", * optional=False, type_description=None): */ - __pyx_tuple__87 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_parameter_type, __pyx_n_s_direction, __pyx_n_s_nuc_length, __pyx_n_s_uc_length, __pyx_n_s_decimals, __pyx_n_s_default_value, __pyx_n_s_parameter_text, __pyx_n_s_optional, __pyx_n_s_type_description); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__87); - __Pyx_GIVEREF(__pyx_tuple__87); - __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_add_parameter, 306, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 306, __pyx_L1_error) - __pyx_tuple__89 = PyTuple_Pack(5, ((PyObject *)__pyx_int_0), ((PyObject*)__pyx_kp_s__5), ((PyObject*)__pyx_kp_s__5), ((PyObject *)Py_False), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__89); - __Pyx_GIVEREF(__pyx_tuple__89); + __pyx_tuple__86 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_parameter_type, __pyx_n_s_direction, __pyx_n_s_nuc_length, __pyx_n_s_uc_length, __pyx_n_s_decimals, __pyx_n_s_default_value, __pyx_n_s_parameter_text, __pyx_n_s_optional, __pyx_n_s_type_description); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__86); + __Pyx_GIVEREF(__pyx_tuple__86); + __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(11, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_add_parameter, 313, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(0, 313, __pyx_L1_error) + __pyx_tuple__88 = PyTuple_Pack(5, ((PyObject *)__pyx_int_0), ((PyObject*)__pyx_kp_s__5), ((PyObject*)__pyx_kp_s__5), ((PyObject *)Py_False), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__88); + __Pyx_GIVEREF(__pyx_tuple__88); - /* "src/pyrfc/nwrfcsdk.pyx":355 + /* "src/pyrfc/nwrfcsdk.pyx":362 * }) * * def __repr__(self): # <<<<<<<<<<<<<< * return f"" */ - __pyx_tuple__90 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 355, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__90); - __Pyx_GIVEREF(__pyx_tuple__90); - __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_repr, 355, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(0, 355, __pyx_L1_error) + __pyx_tuple__89 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 362, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__89); + __Pyx_GIVEREF(__pyx_tuple__89); + __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_nwrfcsdk_pyx, __pyx_n_s_repr, 362, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 362, __pyx_L1_error) /* "src/pyrfc/server.pyx":21 * @@ -43944,10 +43673,10 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * _server_log(f"authorization check for '{func_name}'", request_context['server_context']) * return RFC_OK */ - __pyx_tuple__92 = PyTuple_Pack(2, __pyx_n_s_func_name, __pyx_n_s_request_context); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(5, 21, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__92); - __Pyx_GIVEREF(__pyx_tuple__92); - __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__92, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_server_pyx, __pyx_n_s_default_auth_check, 21, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(5, 21, __pyx_L1_error) + __pyx_tuple__91 = PyTuple_Pack(2, __pyx_n_s_func_name, __pyx_n_s_request_context); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(5, 21, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__91); + __Pyx_GIVEREF(__pyx_tuple__91); + __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_server_pyx, __pyx_n_s_default_auth_check, 21, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(5, 21, __pyx_L1_error) /* "src/pyrfc/server.pyx":26 * @@ -43956,46 +43685,22 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) { * if server_context["server_log"]: * print (f"[{datetime.utcnow()} UTC] {origin} '{log_message}'") */ - __pyx_tuple__94 = PyTuple_Pack(2, __pyx_n_s_origin, __pyx_n_s_log_message); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(5, 26, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__94); - __Pyx_GIVEREF(__pyx_tuple__94); - __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__94, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_server_pyx, __pyx_n_s_server_log, 26, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(5, 26, __pyx_L1_error) - - /* "src/pyrfc/server.pyx":241 - * class BasicServer(BaseHTTPRequestHandler): - * # TODO: management-console - * def _set_response(self): # <<<<<<<<<<<<<< - * self.send_response(200) - * self.send_header('Content-type', 'text/html') - */ - __pyx_tuple__96 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(5, 241, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__96); - __Pyx_GIVEREF(__pyx_tuple__96); - __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_server_pyx, __pyx_n_s_set_response, 241, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(5, 241, __pyx_L1_error) + __pyx_tuple__93 = PyTuple_Pack(2, __pyx_n_s_origin, __pyx_n_s_log_message); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(5, 26, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__93); + __Pyx_GIVEREF(__pyx_tuple__93); + __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_server_pyx, __pyx_n_s_server_log, 26, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(5, 26, __pyx_L1_error) - /* "src/pyrfc/server.pyx":246 - * self.end_headers() - * - * def do_GET(self): # <<<<<<<<<<<<<< - * # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - * self._set_response() - */ - __pyx_tuple__98 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(5, 246, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__98); - __Pyx_GIVEREF(__pyx_tuple__98); - __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_server_pyx, __pyx_n_s_do_GET, 246, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(5, 246, __pyx_L1_error) - - /* "src/pyrfc/throughput.pyx":43 + /* "src/pyrfc/throughput.pyx":65 * * @staticmethod * def getFromConnection(Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) + * """Returns the currently attached throughput object from a connection, if any. + * */ - __pyx_tuple__100 = PyTuple_Pack(4, __pyx_n_s_connection, __pyx_n_s_errorInfo, __pyx_n_s_throughput, __pyx_n_s_t); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(1, 43, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__100); - __Pyx_GIVEREF(__pyx_tuple__100); - __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_throughput_pyx, __pyx_n_s_getFromConnection, 43, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(1, 43, __pyx_L1_error) + __pyx_tuple__95 = PyTuple_Pack(4, __pyx_n_s_connection, __pyx_n_s_errorInfo, __pyx_n_s_throughput, __pyx_n_s_t); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(1, 65, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__95); + __Pyx_GIVEREF(__pyx_tuple__95); + __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_pyrfc_throughput_pyx, __pyx_n_s_getFromConnection, 65, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(1, 65, __pyx_L1_error) __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -44025,7 +43730,6 @@ static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) { __pyx_int_64 = PyInt_FromLong(64); if (unlikely(!__pyx_int_64)) __PYX_ERR(6, 1, __pyx_L1_error) __pyx_int_100 = PyInt_FromLong(100); if (unlikely(!__pyx_int_100)) __PYX_ERR(6, 1, __pyx_L1_error) __pyx_int_128 = PyInt_FromLong(128); if (unlikely(!__pyx_int_128)) __PYX_ERR(6, 1, __pyx_L1_error) - __pyx_int_200 = PyInt_FromLong(200); if (unlikely(!__pyx_int_200)) __PYX_ERR(6, 1, __pyx_L1_error) __pyx_int_512 = PyInt_FromLong(512); if (unlikely(!__pyx_int_512)) __PYX_ERR(6, 1, __pyx_L1_error) __pyx_int_8080 = PyInt_FromLong(8080); if (unlikely(!__pyx_int_8080)) __PYX_ERR(6, 1, __pyx_L1_error) __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(6, 1, __pyx_L1_error) @@ -44119,16 +43823,16 @@ static int __Pyx_modinit_type_init_code(void) { __pyx_vtable_5pyrfc_6_cyrfc_Server.__pyx___onConfirmFunction = (RFC_RC (*)(RFC_CONNECTION_HANDLE, RFC_UNIT_IDENTIFIER const *))__pyx_f_5pyrfc_6_cyrfc_6Server___onConfirmFunction; __pyx_vtable_5pyrfc_6_cyrfc_Server.__pyx___onGetStateFunction = (RFC_RC (*)(RFC_CONNECTION_HANDLE, RFC_UNIT_IDENTIFIER const *, RFC_UNIT_STATE *))__pyx_f_5pyrfc_6_cyrfc_6Server___onGetStateFunction; __pyx_vtable_5pyrfc_6_cyrfc_Server._error = (PyObject *(*)(struct __pyx_obj_5pyrfc_6_cyrfc_Server *, RFC_ERROR_INFO *))__pyx_f_5pyrfc_6_cyrfc_6Server__error; - if (PyType_Ready(&__pyx_type_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 252, __pyx_L1_error) + if (PyType_Ready(&__pyx_type_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 242, __pyx_L1_error) #if PY_VERSION_HEX < 0x030800B1 __pyx_type_5pyrfc_6_cyrfc_Server.tp_print = 0; #endif if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_5pyrfc_6_cyrfc_Server.tp_dictoffset && __pyx_type_5pyrfc_6_cyrfc_Server.tp_getattro == PyObject_GenericGetAttr)) { __pyx_type_5pyrfc_6_cyrfc_Server.tp_getattro = __Pyx_PyObject_GenericGetAttr; } - if (__Pyx_SetVtable(__pyx_type_5pyrfc_6_cyrfc_Server.tp_dict, __pyx_vtabptr_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 252, __pyx_L1_error) - if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Server, (PyObject *)&__pyx_type_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 252, __pyx_L1_error) - if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 252, __pyx_L1_error) + if (__Pyx_SetVtable(__pyx_type_5pyrfc_6_cyrfc_Server.tp_dict, __pyx_vtabptr_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 242, __pyx_L1_error) + if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Server, (PyObject *)&__pyx_type_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 242, __pyx_L1_error) + if (__Pyx_setup_reduce((PyObject*)&__pyx_type_5pyrfc_6_cyrfc_Server) < 0) __PYX_ERR(5, 242, __pyx_L1_error) __pyx_ptype_5pyrfc_6_cyrfc_Server = &__pyx_type_5pyrfc_6_cyrfc_Server; __pyx_vtabptr_5pyrfc_6_cyrfc_Throughput = &__pyx_vtable_5pyrfc_6_cyrfc_Throughput; __pyx_vtable_5pyrfc_6_cyrfc_Throughput._destroy = (PyObject *(*)(struct __pyx_obj_5pyrfc_6_cyrfc_Throughput *))__pyx_f_5pyrfc_6_cyrfc_10Throughput__destroy; @@ -44420,9 +44124,9 @@ if (!__Pyx_RefNanny) { */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_n_s__53); - __Pyx_GIVEREF(__pyx_n_s__53); - PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s__53); + __Pyx_INCREF(__pyx_n_s__52); + __Pyx_GIVEREF(__pyx_n_s__52); + PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s__52); __pyx_t_2 = __Pyx_Import(__pyx_n_s_exception, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 11, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -45401,7 +45105,7 @@ if (!__Pyx_RefNanny) { * * def get_nwrfclib_version(): # <<<<<<<<<<<<<< * """Get SAP NW RFC Lib version - * :returns: tuple of major, minor and patch level + * :returns: tuple of major, minor and patch level and OS platform */ __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_5get_nwrfclib_version, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -45504,127 +45208,127 @@ if (!__Pyx_RefNanny) { if (PyDict_SetItem(__pyx_d, __pyx_n_s_enum_values, __pyx_t_2) < 0) __PYX_ERR(0, 154, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":193 + /* "src/pyrfc/nwrfcsdk.pyx":200 * * * class TypeDescription(object): # <<<<<<<<<<<<<< * """ A type description * */ - __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__76); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__75); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_tuple__76, __pyx_n_s_TypeDescription_2, __pyx_n_s_TypeDescription_2, (PyObject *) NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_kp_s_A_type_description_This_class_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_tuple__75, __pyx_n_s_TypeDescription_2, __pyx_n_s_TypeDescription_2, (PyObject *) NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_kp_s_A_type_description_This_class_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - /* "src/pyrfc/nwrfcsdk.pyx":218 + /* "src/pyrfc/nwrfcsdk.pyx":225 * * """ * def __init__(self, name, nuc_length, uc_length): # <<<<<<<<<<<<<< * self.fields = [] * if len(name)<1 or len(name)>30: */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_15TypeDescription_1__init__, 0, __pyx_n_s_TypeDescription___init, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 218, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_15TypeDescription_1__init__, 0, __pyx_n_s_TypeDescription___init, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__77)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 218, __pyx_L1_error) + if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":229 + /* "src/pyrfc/nwrfcsdk.pyx":236 * self.uc_length = uc_length * * def add_field(self, name, field_type, nuc_length, uc_length, nuc_offset, # <<<<<<<<<<<<<< * uc_offset, decimals=0, type_description=None): * """ Adds a field to the type description. */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_15TypeDescription_3add_field, 0, __pyx_n_s_TypeDescription_add_field, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__80)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 229, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_15TypeDescription_3add_field, 0, __pyx_n_s_TypeDescription_add_field, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__79)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__81); - if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_add_field, __pyx_t_3) < 0) __PYX_ERR(0, 229, __pyx_L1_error) + __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__80); + if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_add_field, __pyx_t_3) < 0) __PYX_ERR(0, 236, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":270 + /* "src/pyrfc/nwrfcsdk.pyx":277 * }) * * def __repr__(self): # <<<<<<<<<<<<<< * return f"" */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_15TypeDescription_5__repr__, 0, __pyx_n_s_TypeDescription___repr, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__83)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_15TypeDescription_5__repr__, 0, __pyx_n_s_TypeDescription___repr, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__82)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_repr, __pyx_t_3) < 0) __PYX_ERR(0, 270, __pyx_L1_error) + if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_repr, __pyx_t_3) < 0) __PYX_ERR(0, 277, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":193 + /* "src/pyrfc/nwrfcsdk.pyx":200 * * * class TypeDescription(object): # <<<<<<<<<<<<<< * """ A type description * */ - __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_TypeDescription_2, __pyx_tuple__76, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 193, __pyx_L1_error) + __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_TypeDescription_2, __pyx_tuple__75, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TypeDescription_2, __pyx_t_3) < 0) __PYX_ERR(0, 193, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TypeDescription_2, __pyx_t_3) < 0) __PYX_ERR(0, 200, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":279 + /* "src/pyrfc/nwrfcsdk.pyx":286 * * * class FunctionDescription(object): # <<<<<<<<<<<<<< * """ A function description * */ - __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__84); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error) + __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__83); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_tuple__84, __pyx_n_s_FunctionDescription_2, __pyx_n_s_FunctionDescription_2, (PyObject *) NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_kp_s_A_function_description_This_cla); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L1_error) + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_tuple__83, __pyx_n_s_FunctionDescription_2, __pyx_n_s_FunctionDescription_2, (PyObject *) NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_kp_s_A_function_description_This_cla); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - /* "src/pyrfc/nwrfcsdk.pyx":302 + /* "src/pyrfc/nwrfcsdk.pyx":309 * * """ * def __init__(self, name): # <<<<<<<<<<<<<< * self.name = name * self.parameters = [] */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_19FunctionDescription_1__init__, 0, __pyx_n_s_FunctionDescription___init, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__86)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 302, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_19FunctionDescription_1__init__, 0, __pyx_n_s_FunctionDescription___init, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 302, __pyx_L1_error) + if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 309, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":306 + /* "src/pyrfc/nwrfcsdk.pyx":313 * self.parameters = [] * * def add_parameter(self, name, parameter_type, direction, nuc_length, # <<<<<<<<<<<<<< * uc_length, decimals=0, default_value="", parameter_text="", * optional=False, type_description=None): */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter, 0, __pyx_n_s_FunctionDescription_add_paramete, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_19FunctionDescription_3add_parameter, 0, __pyx_n_s_FunctionDescription_add_paramete, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__89); - if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_add_parameter, __pyx_t_3) < 0) __PYX_ERR(0, 306, __pyx_L1_error) + __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_3, __pyx_tuple__88); + if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_add_parameter, __pyx_t_3) < 0) __PYX_ERR(0, 313, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":355 + /* "src/pyrfc/nwrfcsdk.pyx":362 * }) * * def __repr__(self): # <<<<<<<<<<<<<< * return f"" */ - __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_19FunctionDescription_5__repr__, 0, __pyx_n_s_FunctionDescription___repr, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 355, __pyx_L1_error) + __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_19FunctionDescription_5__repr__, 0, __pyx_n_s_FunctionDescription___repr, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__90)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_repr, __pyx_t_3) < 0) __PYX_ERR(0, 355, __pyx_L1_error) + if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_repr, __pyx_t_3) < 0) __PYX_ERR(0, 362, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "src/pyrfc/nwrfcsdk.pyx":279 + /* "src/pyrfc/nwrfcsdk.pyx":286 * * * class FunctionDescription(object): # <<<<<<<<<<<<<< * """ A function description * */ - __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_FunctionDescription_2, __pyx_tuple__84, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 279, __pyx_L1_error) + __pyx_t_3 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_FunctionDescription_2, __pyx_tuple__83, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_FunctionDescription_2, __pyx_t_3) < 0) __PYX_ERR(0, 279, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_FunctionDescription_2, __pyx_t_3) < 0) __PYX_ERR(0, 286, __pyx_L1_error) __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; @@ -45721,27 +45425,27 @@ if (!__Pyx_RefNanny) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":98 + /* "src/pyrfc/client.pyx":110 * return self._handle != NULL * * def __init__(self, config={}, **params): # <<<<<<<<<<<<<< * # set connection config, rstrip default True * self.__config = {} */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 98, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 110, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_k__23 = __pyx_t_2; __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/client.pyx":314 + /* "src/pyrfc/client.pyx":336 * return wrapFunctionDescription(funcDesc) * * def call(self, func_name, options={}, **params): # <<<<<<<<<<<<<< * """ Invokes a remote-enabled function module via RFC. * */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 314, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 336, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_k__27 = __pyx_t_2; __Pyx_GIVEREF(__pyx_t_2); @@ -45750,7 +45454,7 @@ if (!__Pyx_RefNanny) { /* "src/pyrfc/server.pyx":1 * from sys import exc_info # <<<<<<<<<<<<<< * from threading import Thread - * from http.server import BaseHTTPRequestHandler + * import socket */ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -45769,7 +45473,7 @@ if (!__Pyx_RefNanny) { /* "src/pyrfc/server.pyx":2 * from sys import exc_info * from threading import Thread # <<<<<<<<<<<<<< - * from http.server import BaseHTTPRequestHandler + * import socket * */ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 2, __pyx_L1_error) @@ -45789,23 +45493,14 @@ if (!__Pyx_RefNanny) { /* "src/pyrfc/server.pyx":3 * from sys import exc_info * from threading import Thread - * from http.server import BaseHTTPRequestHandler # <<<<<<<<<<<<<< + * import socket # <<<<<<<<<<<<<< * * ################################################################################ */ - __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 3, __pyx_L1_error) + __pyx_t_2 = __Pyx_Import(__pyx_n_s_socket, 0, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 3, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(__pyx_n_s_BaseHTTPRequestHandler); - __Pyx_GIVEREF(__pyx_n_s_BaseHTTPRequestHandler); - PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_BaseHTTPRequestHandler); - __pyx_t_1 = __Pyx_Import(__pyx_n_s_http_server, __pyx_t_2, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 3, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_socket, __pyx_t_2) < 0) __PYX_ERR(5, 3, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_BaseHTTPRequestHandler); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 3, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_BaseHTTPRequestHandler, __pyx_t_2) < 0) __PYX_ERR(5, 3, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; /* "src/pyrfc/server.pyx":13 * # "callback": Python function, @@ -45814,10 +45509,10 @@ if (!__Pyx_RefNanny) { * * # global information about served functions / callbacks */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 13, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_functions, __pyx_t_1) < 0) __PYX_ERR(5, 13, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 13, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_functions, __pyx_t_2) < 0) __PYX_ERR(5, 13, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "src/pyrfc/server.pyx":18 * # "auth_check": Default authorization check function @@ -45826,10 +45521,10 @@ if (!__Pyx_RefNanny) { * * */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 18, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_context, __pyx_t_1) < 0) __PYX_ERR(5, 18, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 18, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_context, __pyx_t_2) < 0) __PYX_ERR(5, 18, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "src/pyrfc/server.pyx":21 * @@ -45838,15 +45533,15 @@ if (!__Pyx_RefNanny) { * _server_log(f"authorization check for '{func_name}'", request_context['server_context']) * return RFC_OK */ - __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 21, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_k__36 = __pyx_t_1; - __Pyx_GIVEREF(__pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_23default_auth_check, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 21, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_auth_check, __pyx_t_1) < 0) __PYX_ERR(5, 21, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 21, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_k__36 = __pyx_t_2; + __Pyx_GIVEREF(__pyx_t_2); + __pyx_t_2 = 0; + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_23default_auth_check, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 21, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_auth_check, __pyx_t_2) < 0) __PYX_ERR(5, 21, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; /* "src/pyrfc/server.pyx":26 * @@ -45855,129 +45550,71 @@ if (!__Pyx_RefNanny) { * if server_context["server_log"]: * print (f"[{datetime.utcnow()} UTC] {origin} '{log_message}'") */ - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_25_server_log, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 26, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_log, __pyx_t_1) < 0) __PYX_ERR(5, 26, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "src/pyrfc/server.pyx":239 - * - * - * class BasicServer(BaseHTTPRequestHandler): # <<<<<<<<<<<<<< - * # TODO: management-console - * def _set_response(self): - */ - __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_BaseHTTPRequestHandler); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 239, __pyx_L1_error) + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_25_server_log, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 26, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_BasicServer, __pyx_n_s_BasicServer, (PyObject *) NULL, __pyx_n_s_pyrfc__cyrfc, (PyObject *) NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(5, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - - /* "src/pyrfc/server.pyx":241 - * class BasicServer(BaseHTTPRequestHandler): - * # TODO: management-console - * def _set_response(self): # <<<<<<<<<<<<<< - * self.send_response(200) - * self.send_header('Content-type', 'text/html') - */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_11BasicServer_1_set_response, 0, __pyx_n_s_BasicServer__set_response, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__97)); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 241, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_set_response, __pyx_t_4) < 0) __PYX_ERR(5, 241, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - - /* "src/pyrfc/server.pyx":246 - * self.end_headers() - * - * def do_GET(self): # <<<<<<<<<<<<<< - * # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - * self._set_response() - */ - __pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_5pyrfc_6_cyrfc_11BasicServer_3do_GET, 0, __pyx_n_s_BasicServer_do_GET, NULL, __pyx_n_s_pyrfc__cyrfc, __pyx_d, ((PyObject *)__pyx_codeobj__99)); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 246, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_do_GET, __pyx_t_4) < 0) __PYX_ERR(5, 246, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - - /* "src/pyrfc/server.pyx":239 - * - * - * class BasicServer(BaseHTTPRequestHandler): # <<<<<<<<<<<<<< - * # TODO: management-console - * def _set_response(self): - */ - __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_BasicServer, __pyx_t_2, __pyx_t_3, NULL, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_BasicServer, __pyx_t_4) < 0) __PYX_ERR(5, 239, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (PyDict_SetItem(__pyx_d, __pyx_n_s_server_log, __pyx_t_2) < 0) __PYX_ERR(5, 26, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/server.pyx":291 + /* "src/pyrfc/server.pyx":281 * * __bgRfcFunction = { * "check": None, # <<<<<<<<<<<<<< * "commit": None, * "rollback": None, */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 291, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 281, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_check, Py_None) < 0) __PYX_ERR(5, 291, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_check, Py_None) < 0) __PYX_ERR(5, 281, __pyx_L1_error) - /* "src/pyrfc/server.pyx":292 + /* "src/pyrfc/server.pyx":282 * __bgRfcFunction = { * "check": None, * "commit": None, # <<<<<<<<<<<<<< * "rollback": None, * "confirm": None, */ - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_commit, Py_None) < 0) __PYX_ERR(5, 291, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_commit, Py_None) < 0) __PYX_ERR(5, 281, __pyx_L1_error) - /* "src/pyrfc/server.pyx":293 + /* "src/pyrfc/server.pyx":283 * "check": None, * "commit": None, * "rollback": None, # <<<<<<<<<<<<<< * "confirm": None, * "getState": None */ - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_rollback, Py_None) < 0) __PYX_ERR(5, 291, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_rollback, Py_None) < 0) __PYX_ERR(5, 281, __pyx_L1_error) - /* "src/pyrfc/server.pyx":294 + /* "src/pyrfc/server.pyx":284 * "commit": None, * "rollback": None, * "confirm": None, # <<<<<<<<<<<<<< * "getState": None * } */ - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_confirm, Py_None) < 0) __PYX_ERR(5, 291, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_confirm, Py_None) < 0) __PYX_ERR(5, 281, __pyx_L1_error) - /* "src/pyrfc/server.pyx":295 + /* "src/pyrfc/server.pyx":285 * "rollback": None, * "confirm": None, * "getState": None # <<<<<<<<<<<<<< * } * */ - if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_getState, Py_None) < 0) __PYX_ERR(5, 291, __pyx_L1_error) - if (PyDict_SetItem((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server->tp_dict, __pyx_n_s_bgRfcFunction, __pyx_t_2) < 0) __PYX_ERR(5, 290, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_getState, Py_None) < 0) __PYX_ERR(5, 281, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Server->tp_dict, __pyx_n_s_bgRfcFunction, __pyx_t_2) < 0) __PYX_ERR(5, 280, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_5pyrfc_6_cyrfc_Server); - /* "src/pyrfc/server.pyx":298 + /* "src/pyrfc/server.pyx":288 * } * * def __cinit__(self, server_params, client_params, config={}): # <<<<<<<<<<<<<< * # cdef uintptr_t handle * */ - __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 298, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(5, 288, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_k__44 = __pyx_t_2; + __pyx_k__43 = __pyx_t_2; __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; @@ -46003,36 +45640,36 @@ if (!__Pyx_RefNanny) { */ __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_k__50 = __pyx_t_2; + __pyx_k__49 = __pyx_t_2; __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; - /* "src/pyrfc/throughput.pyx":43 + /* "src/pyrfc/throughput.pyx":65 * * @staticmethod * def getFromConnection(Connection connection): # <<<<<<<<<<<<<< - * cdef RFC_ERROR_INFO errorInfo - * cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) + * """Returns the currently attached throughput object from a connection, if any. + * */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_10Throughput_5getFromConnection, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 43, __pyx_L1_error) + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5pyrfc_6_cyrfc_10Throughput_5getFromConnection, NULL, __pyx_n_s_pyrfc__cyrfc); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput->tp_dict, __pyx_n_s_getFromConnection, __pyx_t_2) < 0) __PYX_ERR(1, 43, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput->tp_dict, __pyx_n_s_getFromConnection, __pyx_t_2) < 0) __PYX_ERR(1, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; PyType_Modified(__pyx_ptype_5pyrfc_6_cyrfc_Throughput); - /* "src/pyrfc/throughput.pyx":42 + /* "src/pyrfc/throughput.pyx":64 * self._connections.add(connection) * * @staticmethod # <<<<<<<<<<<<<< * def getFromConnection(Connection connection): - * cdef RFC_ERROR_INFO errorInfo + * """Returns the currently attached throughput object from a connection, if any. */ - __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput, __pyx_n_s_getFromConnection); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 43, __pyx_L1_error) + __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput, __pyx_n_s_getFromConnection); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 65, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 42, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 64, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput->tp_dict, __pyx_n_s_getFromConnection, __pyx_t_1) < 0) __PYX_ERR(1, 43, __pyx_L1_error) + if (PyDict_SetItem((PyObject *)__pyx_ptype_5pyrfc_6_cyrfc_Throughput->tp_dict, __pyx_n_s_getFromConnection, __pyx_t_1) < 0) __PYX_ERR(1, 65, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; PyType_Modified(__pyx_ptype_5pyrfc_6_cyrfc_Throughput); diff --git a/src/pyrfc/client.pyx b/src/pyrfc/client.pyx index f7410be..6298d6f 100644 --- a/src/pyrfc/client.pyx +++ b/src/pyrfc/client.pyx @@ -27,13 +27,17 @@ cdef class Connection: Instantiating an :class:`pyrfc.Connection` object will automatically attempt to open a connection the SAP backend. - :param config: Configuration of the instance. Allowed keys are: + :param config: Configuration of the client connection, valid for all RFC calls of given connection. Allowed keys are: - ``rstrip`` + * ``dtime`` + ABAP DATE and TIME strings are returned as Python datetime date and time objects, + instead of ABAP date and time strings (default is False) + + * ``rstrip`` right strips strings returned from RFC call (default is True) - ``return_import_params`` - importing parameters are returned by the RFC call (default is False) + * ``return_import_params`` + importing parameters are returned by the RFC call (default is False) :type config: dict or None (default) :param params: SAP connection parameters. The parameters consist of @@ -50,7 +54,6 @@ cdef class Connection: ``snc_lib``. (If ``snc_lib`` is not specified, the RFC library uses the "global" GSS library defined via environment variable SNC_LIB.) - :type params: Keyword parameters :raises: :exc:`~pyrfc.RFCError` or a subclass @@ -78,20 +81,29 @@ cdef class Connection: @property def options(self): + """Client connection configuration + + :getter: Client connection options + :setter: Set when new connection object created + :type: dict + """ return self.__config @property def handle(self): """Get client connection handle - :returns: Client connection handle + + :getter: Client connection handle + :type: uintptr_t """ return self._handle @property def alive(self): - """Get conection alive property - :returns: True when alive - :type alive: boolean + """Conection alive property + + :getter: True when alive + :type: boolean """ return self._handle != NULL @@ -138,15 +150,35 @@ cdef class Connection: self._close() def open(self): + """ Open client the connection + + :raises: :exc:`~pyrfc.RFCError` or a subclass + thereof if the connection cannot be opened. + """ self._open() def reopen(self): + """ Re-open client the connection + + :raises: :exc:`~pyrfc.RFCError` or a subclass + thereof if the connection cannot be re-opened. + """ self._reopen() def close(self): + """ Close the connection + + :raises: :exc:`~pyrfc.RFCError` or a subclass + thereof if the connection cannot be closed cleanly. + """ self._close() def cancel(self): + """ Cancels the ongoing RFC call + + :raises: :exc:`~pyrfc.RFCError` or a subclass + thereof if the connection cannot be cancelled cleanly. + """ self._cancel() def __bool__(self): @@ -164,11 +196,6 @@ cdef class Connection: self._error(&errorInfo) def _close(self): - """ Close the connection (private function) - - :raises: :exc:`~pyrfc.RFCError` or a subclass - thereof if the connection cannot be closed cleanly. - """ cdef RFC_RC rc cdef RFC_ERROR_INFO errorInfo if self._handle != NULL: @@ -178,11 +205,6 @@ cdef class Connection: self._error(&errorInfo) def _cancel(self): - """ Cancels the ongoing RFC call (private function) - - :raises: :exc:`~pyrfc.RFCError` or a subclass - thereof if the connection cannot be cancelled cleanly. - """ cdef RFC_RC rc cdef RFC_ERROR_INFO errorInfo if self._handle != NULL: @@ -317,16 +339,25 @@ cdef class Connection: :param func_name: Name of the function module that will be invoked. :type func_name: string - :param options: Call options, like 'skip', to deactivate certain parameters. + :param options: Call options for single remote ABAP function call. Allowed keys: + + - ``not_requested`` Allows to deactivate certain parameters in the function module interface. + This is particularly useful for BAPIs which have many large tables, the Python client is not interested in. + Deactivate those, to reduce network traffic and memory consumption in your application considerably. + + This functionality can be used for input and output parameters. If the parameter is an input, no data for + that parameter will be sent to the backend. If it's an output, the backend will be informed not to return + data for that parameter. + :type options: dictionary :param params: Parameter of the function module. All non optional - IMPORT, CHANGING, and TABLE parameters must be provided. + IMPORT, CHANGING, and TABLE parameters must be provided. :type params: keyword arguments :return: Dictionary with all EXPORT, CHANGING, and TABLE parameters. - The IMPORT parameters are also given, if :attr:`Connection.config.return_import_params` - is set to ``True``. + The IMPORT parameters are also given, if :attr:`Connection.config.return_import_params` + is set to ``True``. :raises: :exc:`~pyrfc.RFCError` or a subclass thereof if the RFC call fails. diff --git a/src/pyrfc/nwrfcsdk.pyx b/src/pyrfc/nwrfcsdk.pyx index 70defed..0f88ebe 100644 --- a/src/pyrfc/nwrfcsdk.pyx +++ b/src/pyrfc/nwrfcsdk.pyx @@ -18,7 +18,7 @@ def string_to_py(objstr): def get_nwrfclib_version(): """Get SAP NW RFC Lib version - :returns: tuple of major, minor and patch level + :returns: tuple of major, minor and patch level and OS platform """ cdef unsigned major = 0 cdef unsigned minor = 0 @@ -135,7 +135,7 @@ def set_cryptolib_path(path_name): def set_locale_radix(value=None): """Sets the locale radix for decimal conversions. - :param value: Locale radix like '.' or ',' + :param value: Locale radix like ``.`` or ``,`` :type path_name: string :return: New radix set @@ -160,6 +160,13 @@ def enum_values(enum_obj): cdef class ConnectionParameters: + """Connection parameters instance in SAP unicode format + + :param args: Connection parameters like ASHOST="ABC" etc + :type args: positional + + :returns: Nothing + """ cdef unsigned _params_count cdef RFC_CONNECTION_PARAMETER *_params diff --git a/src/pyrfc/server.pyx b/src/pyrfc/server.pyx index 21d662c..5f2578f 100644 --- a/src/pyrfc/server.pyx +++ b/src/pyrfc/server.pyx @@ -1,6 +1,6 @@ from sys import exc_info from threading import Thread -from http.server import BaseHTTPRequestHandler +import socket ################################################################################ # SERVER FUNCTIONALITY @@ -67,16 +67,19 @@ cdef class ServerConnection: @property def handle(self): - """Get server connection handle - :returns: Server connection handle + """Server connection handle + + :getter: Returns server connection handle + :type: uitptr_t """ return self._handle @property def alive(self): - """Get conection alive property - :returns: True when alive - :type alive: boolean + """Conection alive property + + :getter: Returns True when alive + :type: boolean """ return self._handle != NULL @@ -236,19 +239,6 @@ cdef RFC_RC genericHandler(RFC_CONNECTION_HANDLE rfcHandle, RFC_FUNCTION_HANDLE return RFC_OK -class BasicServer(BaseHTTPRequestHandler): - # TODO: management-console - def _set_response(self): - self.send_response(200) - self.send_header('Content-type', 'text/html') - self.end_headers() - - def do_GET(self): - # _server_log("HTTP GET", f"path: {self.path}\nheaders:\n{self.headers}\n") - self._set_response() - self.wfile.write("Press CTRL-C to end".encode("utf-8")) - - cdef class Server: """ An ABAP server @@ -387,16 +377,41 @@ cdef class Server: return RCStatus.RFC_EXTERNAL_FAILURE.value def bgrfc_init(self, sysId, bgRfcFunction): + """Installs the necessary callback functions for processing incoming bgRFC calls. + + These functions need to be implemented by Python application and will be used by the RFC runtime. + When no callback function is provided, the default one is used, + not necessarily matching your application requirements. + + For more info search for the ``RfcInstallBgRfcHandlers`` method in + `SAP NetWeaver RFC SDK Doxygen Documentation `_ + + :param sysId: System ID of the SAP system for which to use this set of transaction handlers, or None + When None value provided, the transaction handlers will be used for bgRFC calls from + any backend system, for which no explicit handlers have been installed. + :type sysId: string or None + + :param bgRfcFunction: Function callbacks + :type bgRfcFunction: dict(str, function) + + * "check": onCheckFunction, + * "commit": onCommitFunction, + * "rollback": onRollbackFunction, + * "confirm": onConfirmFunction, + * "getState": onGetStateFunction, + + :return: error code, zero when no error + """ for func_name in bgRfcFunction: if func_name not in Server.__bgRfcFunction: raise TypeError(f"BgRfc callback function key not supported: '{func_name}'") if not callable(bgRfcFunction[func_name]): raise TypeError(f"BgRfc callback function referenced by '{func_name}' is not callable: '{bgRfcFunction[func_name]}'") Server.__bgRfcFunction[func_name] = bgRfcFunction[func_name] - self.install_bgrfc_handlers(sysId) + return self.install_bgrfc_handlers(sysId) def install_bgrfc_handlers(self, sysId): - ucSysId = fillString(sysId) + ucSysId = fillString(sysId) if sysId is not None else NULL cdef RFC_ERROR_INFO errorInfo cdef RFC_RC rc = RfcInstallBgRfcHandlers( ucSysId, @@ -416,7 +431,7 @@ cdef class Server: """ Installs a function in the server. - :param func_name: A RFM name + :param func_name: ABAP remote function module name :type func_name: string :param callback: A callback function that implements the logic. @@ -493,6 +508,20 @@ cdef class Server: self._close() def get_server_attributes(self): + """Retrieves detailed information about a multi-count Registered Server or a TCP Socket Server. + + :returns: Dictionary with server state and attributes + :rtype: dict(str, str or int) + + * serverName: This server's name as given when creating the server. + * protocolType: This RFC server's type: + RFC_MULTI_COUNT_REGISTERED_SERVER or RFC_TCP_SOCKET_SERVER + * registrationCount: The current number of active registrations (in case of a Registered Server) + or the maximum number of parallel connections the server will accept (in case of a TCP Socket Server) + * state: Used in state information in order to indicate the current state of an RFC Server. + * currentBusyCount: The number of requests currently being processed. + * peakBusyCount: The maximum number of requests the server has been processing in parallel since it has been created + """ cdef RFC_RC rc cdef RFC_SERVER_ATTRIBUTES attributes cdef RFC_ERROR_INFO errorInfo @@ -506,7 +535,7 @@ cdef class Server: 'serverName': wrapString(attributes.serverName, -1, True) # This RFC server's type. Will be one of RFC_MULTI_COUNT_REGISTERED_SERVER or RFC_TCP_SOCKET_SERVER , 'protocolType': "multi count" if attributes.type == RFC_MULTI_COUNT_REGISTERED_SERVER - else "tcp socket" # Own host name + else socket.gethostname() # Own host name # The current number of active registrations (in case of a Registered Server) # or the maximum number of parallel connections the server will accept (in case of a TCP Socket Server) , 'registrationCount': attributes.registrationCount diff --git a/src/pyrfc/throughput.pyx b/src/pyrfc/throughput.pyx index 0c52087..5e9c1cf 100644 --- a/src/pyrfc/throughput.pyx +++ b/src/pyrfc/throughput.pyx @@ -26,13 +26,35 @@ cdef class Throughput: @property def connections(self): + """Get connections attached to throughput monitoring + + :getter: Connections' instances + :type: set of Connection + """ return self._connections @property def _handle(self): + """Get throughput object handle + + :getter: Throughput object handle + :type: uintptr_t + """ return self._throughput_handle def setOnConnection(self, Connection connection): + """Attaches a throughput object to a connection to be monitored by the throughput object. + Once attached to a connection, the throughput object collects the data statistics of + function calls invoked via this connection. + + For more info search for the ``RfcSetThroughputOnConnection`` method in + `SAP NetWeaver RFC SDK Doxygen Documentation `_ + + :param connection: Connection instance to be attached to throughput monitoring + :type connection: Connection + + :return: nothing, raises an error + """ cdef RFC_ERROR_INFO errorInfo cdef RFC_RC rc = RfcSetThroughputOnConnection(connection._handle, self._throughput_handle, &errorInfo) if rc != RFC_OK: @@ -41,6 +63,19 @@ cdef class Throughput: @staticmethod def getFromConnection(Connection connection): + """Returns the currently attached throughput object from a connection, if any. + + For more info search for the ``RfcGetThroughputFromConnection`` method in + `SAP NetWeaver RFC SDK Doxygen Documentation `_ + + :param connection: Connection instance + :type connection: Connection + + :returns: Throughput object the connection is attached to, if any + :rtype: Throughput + + :raises: :exc:`~pyrfc.RFCError` or a subclass in case of error + """ cdef RFC_ERROR_INFO errorInfo cdef RFC_THROUGHPUT_HANDLE throughput = RfcGetThroughputFromConnection(connection._handle, &errorInfo) if errorInfo.code != RFC_OK: @@ -51,6 +86,14 @@ cdef class Throughput: return None def removeFromConnection(self, Connection connection): + """Removes the throughput object from a connection. + The connection will no longer be monitored. + + :param connection: Connection instance + :type connection: Connection + :returns: Nothing + :raises: :exc:`~pyrfc.RFCError` or a subclass in case of error + """ cdef RFC_ERROR_INFO errorInfo cdef RFC_RC rc = RfcRemoveThroughputFromConnection(connection._handle, &errorInfo) if rc != RFC_OK: @@ -58,6 +101,11 @@ cdef class Throughput: self._connections.remove(connection) def reset(self): + """Resets the data so far collected and aggregated by the throughput object. + + :returns: Nothing + :raises: :exc:`~pyrfc.RFCError` or a subclass in case of error + """ cdef RFC_ERROR_INFO errorInfo cdef RFC_RC rc = RfcResetThroughput(self._throughput_handle, &errorInfo) if rc != RFC_OK: @@ -86,6 +134,19 @@ cdef class Throughput: @property def stats(self): + """Get throughput monitor statistics + + :getter: Throughput monitor counters + :type: dict(str,int) + + * numberOfCalls + * sentBytes + * receivedBytes + * applicationTime + * totalTime + * serializationTime + * deserializationTime + """ cdef RFC_ERROR_INFO errorInfo cdef RFC_RC rc cdef SAP_ULLONG numberOfCalls