For the developer in charge of SWIG.
#16
I reread your message.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#17
Nuka, Sorry about the (int) cast. That's a bug in the template. I'll fix it and check it in. It's a bug fix so it should be ok.
Reply
#18
Ok. If you rebase on top of master (git pull --rebase xbmc master), the constant addition should work now.
Reply
#19
thank you
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#20
example:
PHP Code:
String numeric(int type, const Stringheading, const Stringdefaultt emptyString); 

Is there any way in the swig template to change defaultt -> default for the keywords?

defaultt is a really bad name. default does seem appropriate for the keyword unless you could think of another keyword that would be better.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#21
May be hacky, but is better than 'defaultt' as a keyword.

PHP Code:
diff --git a/xbmc/interfaces/python/PythonSwig.cpp.template b/xbmc/interfaces/python/PythonSwig.cpp.template
index 2ad6c77
..c0b3e9b 100644
--- a/xbmc/interfaces/python/PythonSwig.cpp.template
+++ b/xbmc/interfaces/python/PythonSwig.cpp.template
@@ -137,+137,@@ void doMethod(methodMethodType methodType)
       if (
useKeywordParsing && !doAsMappingIndex)
       { %>
     static const 
char *keywords[] = {<%
-          
params.each { %>
-          
"${it.@name}",<% } %>
+          
params.each {
+          
String kword it.@name.replace("defaultt""default") %>
+          
"${kword}",<% } %>
           
NULL};
 <%    }
       
params.each 
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#22
@Nuka1195: Mind throwing that hacky fix up as a PR and ping @jimfcarroll?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#23
(2013-06-02, 04:20)jmarshall Wrote: @Nuka1195: Mind throwing that hacky fix up as a PR and ping @jimfcarroll?

It's already there https://github.com/xbmc/xbmc/pull/2767
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
For the developer in charge of SWIG.0