1<% 2/* 3 * Copyright (C) 2005-2018 Team Kodi 4 * This file is part of Kodi - https://kodi.tv 5 * 6 * SPDX-License-Identifier: GPL-2.0-or-later 7 * See LICENSES/README.md for more information. 8 */ 9 List templateArgs = swigTypeParser.SwigType_templateparmlist(ltype) 10 valtype = templateArgs[0] 11%> 12 { 13 PyObject *pykey, *pyvalue; 14 Py_ssize_t pos = 0; 15 while(PyDict_Next(${slarg}, &pos, &pykey, &pyvalue)) 16 { 17 std::string key; 18 PyXBMCGetUnicodeString(key,pykey,false,"${api}","${method.@name}"); 19 ${swigTypeParser.SwigType_str(swigTypeParser.SwigType_ltype(valtype))} value; 20 ${helper.getInConversion(valtype, 'value', 'pyvalue' ,method)} 21 ${api}[key] = value; 22 } 23 }