def python_create_foo_client_returned_record(record_id, content, some_record):
     py_rec = FooClientReturnedRecord(
         CPyPrimitive.toPy(record_id),
         CPyString.toPy(content),
         CPyRecord.toPy(FooSomeOtherRecord.c_data_set, some_record),
     )
     return CPyRecord.fromPy(FooClientReturnedRecord.c_data_set, py_rec)  # to do: can be optional?
Exemplo n.º 2
0
 def get_foo_extensible_record_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).number1)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 3
0
 def get_record_with_derivings_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).key1)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 4
0
 def get_foo_constants_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).some_integer)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 5
0
 def get_assorted_primitives_f9(cself):
     try:
         with CPyBoxedI8.fromPyOpt(CPyRecord.toPy(None, cself).o_eight) as py_obj:
             return py_obj.release_djinni_boxed()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_client_returned_record_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).record_id)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 7
0
 def get_some_const_record_f2(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).number2)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 8
0
 def get_client_returned_record_f3(cself):
     try:
         with CPyString.fromPyOpt(CPyRecord.toPy(None, cself).misc) as py_obj:
             return py_obj.release_djinni_string()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 9
0
 def get_assorted_primitives_f7(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).fsixtyfour)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_record_with_nested_derivings_f2(cself):
     try:
         _ret = CPyRecord.fromPy(RecordWithDerivings.c_data_set, CPyRecord.toPy(None, cself).rec)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 11
0
 def get_foo_containers_record_f13(cself):
     try:
         _ret = CPyObjectProxy.fromPy(SetStringHelper.c_data_set, SetStringProxy(CPyRecord.toPy(None, cself).set_string))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 12
0
 def get_foo_containers_record_f4(cself):
     try:
         _ret = CPyObject.fromPy(ListOptionalBinaryHelper.c_data_set, CPyRecord.toPy(None, cself).list_optional_binary)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 13
0
 def get_foo_containers_record_f5(cself):
     try:
         _ret = CPyObject.fromPy(ListListStringHelper.c_data_set, CPyRecord.toPy(None, cself).list_list_string)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 14
0
 def get_foo_containers_record_f6(cself):
     try:
         _ret = CPyObject.fromPy(ListRecordFooSomeOtherRecordHelper.c_data_set, CPyRecord.toPy(None, cself).list_record)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 15
0
 def get_nested_collection_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListSetStringHelper.c_data_set, CPyRecord.toPy(None, cself).set_list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 16
0
 def get_primitive_list_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListInt64THelper.c_data_set, CPyRecord.toPy(None, cself).list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_client_returned_record_f3(cself):
     try:
         _ret = CPyRecord.fromPy(FooSomeOtherRecord.c_data_set, CPyRecord.toPy(None, cself).some_record)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 18
0
 def get_set_record_f2(cself):
     try:
         _ret = CPyObjectProxy.fromPy(SetInt32THelper.c_data_set, SetInt32TProxy(CPyRecord.toPy(None, cself).iset))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_containers_record_f3(cself):
     try:
         _ret = CPyObject.fromPy(ListBinaryHelper.c_data_set,
                                 CPyRecord.toPy(None, cself).list_binary)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 20
0
 def get_all_datatypes_f11(cself):
     try:
         _ret = CPyObject.fromPy(ListBoolHelper.c_data_set,
                                 CPyRecord.toPy(None, cself).listData)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 21
0
 def get_nested_collection_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListSetStringHelper.c_data_set,
                                 CPyRecord.toPy(None, cself).set_list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_record_with_derivings_f8(cself):
     try:
         with CPyString.fromPy(CPyRecord.toPy(None, cself).s) as py_obj:
             _ret = py_obj.release_djinni_string()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_containers_record_f7(cself):
     try:
         return CPyObjectProxy.fromPyOpt(
             MapStringInt32THelper.c_data_set,
             MapStringInt32TProxy(
                 CPyRecord.toPy(None, cself).optional_map_string_int))
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 24
0
 def get_record_with_derivings_f2(cself):
     try:
         with CPyString.fromPy(CPyRecord.toPy(None, cself).key2) as py_obj:
             _ret = py_obj.release_djinni_string()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_containers_record_f12(cself):
     try:
         return CPyObjectProxy.fromPyOpt(
             SetStringHelper.c_data_set,
             SetStringProxy(
                 CPyRecord.toPy(None, cself).optional_set_string))
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 26
0
 def get_foo_client_returned_record_f3(cself):
     try:
         _ret = CPyRecord.fromPy(FooSomeOtherRecord.c_data_set,
                                 CPyRecord.toPy(None, cself).some_record)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_record_using_extended_record_f1(cself):
     try:
         _ret = CPyRecord.fromPy(ExtendedRecord.c_data_set,
                                 CPyRecord.toPy(None, cself).er)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 28
0
 def get_my_record_f8(cself):
     try:
         with CPyBinary.fromPy(CPyRecord.toPy(None, cself).test5) as py_obj:
             _ret = py_obj.release_djinni_binary()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 29
0
 def get_foo_constants_f2(cself):
     try:
         with CPyString.fromPy(CPyRecord.toPy(None, cself).some_string) as py_obj:
             _ret = py_obj.release_djinni_string()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 30
0
 def get_my_record_f12(cself):
     try:
         _ret = CPyRecord.fromPy(Rc.c_data_set,
                                 CPyRecord.toPy(None, cself).test9)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 31
0
 def get_my_record_f14(cself):
     try:
         _ret = CPyObject.fromPy(ListRecordRcHelper.c_data_set,
                                 CPyRecord.toPy(None, cself).test10_1)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 32
0
 def get_map_list_record_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListMapStringInt64THelper.c_data_set,
                                 CPyRecord.toPy(None, cself).map_list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_containers_record_f13(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             SetStringHelper.c_data_set,
             SetStringProxy(CPyRecord.toPy(None, cself).set_string))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_custom_datatype_f1(cself):
     try:
         with CPyString.fromPy(CPyRecord.toPy(None,
                                              cself).recordData) as py_obj:
             _ret = py_obj.release_djinni_string()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 35
0
 def get_set_record_f2(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             SetInt32THelper.c_data_set,
             SetInt32TProxy(CPyRecord.toPy(None, cself).iset))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_extensible_record_f2(cself):
     try:
         with CPyString.fromPy(CPyRecord.toPy(None,
                                              cself).string1) as py_obj:
             _ret = py_obj.release_djinni_string()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 37
0
 def get_enum_usage_record_f5(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             MapEnumColorEnumColorHelper.c_data_set,
             MapEnumColorEnumColorProxy(CPyRecord.toPy(None, cself).m))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 38
0
 def get_my_record_f20(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             MapEnumMyEnumInt16THelper.c_data_set,
             MapEnumMyEnumInt16TProxy(CPyRecord.toPy(None, cself).test17))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 39
0
 def get_other_record_f1(cself):
     try:
         _ret = CPyRecord.fromPy(
             CustomDatatype.c_data_set,
             CPyRecord.toPy(None, cself).customDatatypeData)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 40
0
 def get_all_datatypes_f13(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             MapInt8TBoolHelper.c_data_set,
             MapInt8TBoolProxy(CPyRecord.toPy(None, cself).mapData))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 41
0
 def get_all_datatypes_f9(cself):
     try:
         with CPyBinary.fromPy(CPyRecord.toPy(None,
                                              cself).binaryData) as py_obj:
             _ret = py_obj.release_djinni_binary()
             assert _ret != ffi.NULL
             return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 42
0
 def get_my_record_f11(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             MapInt32TStringHelper.c_data_set,
             MapInt32TStringProxy(CPyRecord.toPy(None, cself).test8))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_containers_record_f11(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             MapInt8TListDateHelper.c_data_set,
             MapInt8TListDateProxy(
                 CPyRecord.toPy(None, cself).map_int_list_date))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def get_foo_containers_record_f8(cself):
     try:
         _ret = CPyObjectProxy.fromPy(
             MapStringInt32THelper.c_data_set,
             MapStringInt32TProxy(
                 CPyRecord.toPy(None, cself).map_string_int))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 45
0
 def python_create_my_record(test, test1, test2, test3, test3_1, test4,
                             test4_1, test5, test6, test7, test8, test9,
                             test10, test10_1, test11, test13, test14,
                             test15, test16, test17):
     py_rec = MyRecord(
         CPyPrimitive.toPy(test), CPyBoxedU32.toPyOpt(test1),
         CPyObject.toPy(ListUint32THelper.c_data_set, test2),
         CPyString.toPy(test3), CPyString.toPyOpt(test3_1),
         CPyDate.toPy(test4), CPyBoxedDate.toPyOpt(test4_1),
         CPyBinary.toPy(test5),
         CPyObject.toPy(ListBinaryHelper.c_data_set, test6),
         CPyObjectProxy.toPyObj(SetInt32THelper.c_data_set, test7),
         CPyObjectProxy.toPyObj(MapInt32TStringHelper.c_data_set, test8),
         CPyRecord.toPy(Rc.c_data_set, test9),
         CPyRecord.toPyOpt(Rc.c_data_set, test10),
         CPyObject.toPy(ListRecordRcHelper.c_data_set, test10_1),
         CPyEnum.toPy(MyEnum, test11), CPyEnum.toPyOpt(MyEnum, test13),
         CPyBoxedI16.toPyOpt(test14),
         CPyObject.toPy(ListEnumMyEnumHelper.c_data_set, test15),
         CPyObjectProxy.toPyObj(SetEnumMyEnumHelper.c_data_set, test16),
         CPyObjectProxy.toPyObj(MapEnumMyEnumInt16THelper.c_data_set,
                                test17))
     return CPyRecord.fromPy(MyRecord.c_data_set,
                             py_rec)  #to do: can be optional?
Exemplo n.º 46
0
 def get_enum_usage_record_f2(cself):
     try:
         return CPyEnum.fromPyOpt(CPyRecord.toPy(None, cself).o)
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 47
0
 def get_foo_containers_record_f1(cself):
     try:
         return CPyObject.fromPyOpt(ListInt32THelper.c_data_set, CPyRecord.toPy(None, cself).optional_list_int)
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
 def __python_add(cself, el):
     CPyObject.toPy(None, cself).append(
         CPyRecord.toPy(FooSomeOtherRecord.c_data_set, el))
Exemplo n.º 49
0
 def get_containers_record(self):
     _ret_c = lib.cw__foo_containers_interface_get_containers_record(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(FooContainersRecord.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
Exemplo n.º 50
0
 def get_primitive_list():
     _ret_c = lib.cw__test_helpers_get_primitive_list()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(PrimitiveList.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
Exemplo n.º 51
0
 def get_my_record_f16(cself):
     try:
         return CPyEnum.fromPyOpt(CPyRecord.toPy(None, cself).test13)
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 52
0
 def get_extensible_record(self):
     _ret_c = lib.cw__foo_client_interface_get_extensible_record(self._cpp_impl)
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(FooExtensibleRecord.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
Exemplo n.º 53
0
 def get_nested_collection():
     _ret_c = lib.cw__test_helpers_get_nested_collection()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(NestedCollection.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
Exemplo n.º 54
0
 def get_foo_containers_record_f11(cself):
     try:
         _ret = CPyObjectProxy.fromPy(MapInt8TListDateHelper.c_data_set, MapInt8TListDateProxy(CPyRecord.toPy(None, cself).map_int_list_date))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 55
0
 def get_foo_containers_record_f12(cself):
     try:
         return CPyObjectProxy.fromPyOpt(SetStringHelper.c_data_set, SetStringProxy(CPyRecord.toPy(None, cself).optional_set_string))
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 56
0
 def assorted_primitives_id(i):
     _ret_c = lib.cw__test_helpers_assorted_primitives_id(CPyRecord.fromPy(AssortedPrimitives.c_data_set, i))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(AssortedPrimitives.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
Exemplo n.º 57
0
 def get_map_list_record():
     _ret_c = lib.cw__test_helpers_get_map_list_record()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyRecord.toPy(MapListRecord.c_data_set, _ret_c)
     assert _ret is not None
     return _ret
Exemplo n.º 58
0
 def get_foo_containers_record_f8(cself):
     try:
         _ret = CPyObjectProxy.fromPy(MapStringInt32THelper.c_data_set, MapStringInt32TProxy(CPyRecord.toPy(None, cself).map_string_int))
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
Exemplo n.º 59
0
 def python_create_other_record(customDatatypeData):
     py_rec = OtherRecord(
         CPyRecord.toPy(CustomDatatype.c_data_set, customDatatypeData))
     return CPyRecord.fromPy(OtherRecord.c_data_set, py_rec) #to do: can be optional?
Exemplo n.º 60
0
 def get_foo_containers_record_f7(cself):
     try:
         return CPyObjectProxy.fromPyOpt(MapStringInt32THelper.c_data_set, MapStringInt32TProxy(CPyRecord.toPy(None, cself).optional_map_string_int))
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL