summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2012-11-21 19:07:48 +0200
committerYakov Goldberg <yakov.g@samsung.com>2012-11-21 19:07:48 +0200
commitc70904fbfacb094ad2ce55f94dee29d7699df34a (patch)
tree597db64886653683c5f6af58dbfb85583af4c8de
parentba83787093a662cebf53c5ded2e0174f7ad4aed0 (diff)
Fixing warning messages
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
-rw-r--r--eoparser/xmlparser.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/eoparser/xmlparser.py b/eoparser/xmlparser.py
index a9611f5..c0b89fb 100644
--- a/eoparser/xmlparser.py
+++ b/eoparser/xmlparser.py
@@ -109,7 +109,7 @@ class Visitor(object):
109 "char**" : "char*"} 109 "char**" : "char*"}
110 110
111 internal_types = { 111 internal_types = {
112 "void*": ["void*", "object"], 112 "void*": ["void*", "object", "ToObject"], #FIXME "ToObject?"
113 "char*": ["char*", "object", "ToString"], 113 "char*": ["char*", "object", "ToString"],
114 "Eo*": ["Eo*", "EoDefault", "ToObject"], 114 "Eo*": ["Eo*", "EoDefault", "ToObject"],
115 "short" : ["int", "int", "ToInt32"], 115 "short" : ["int", "int", "ToInt32"],
@@ -310,7 +310,7 @@ class JsVisitor(Visitor):
310 add_this_func = True 310 add_this_func = True
311 for i, (n, c_t, d, p_t) in enumerate(_o.parameters): 311 for i, (n, c_t, d, p_t) in enumerate(_o.parameters):
312 if d != direction: 312 if d != direction:
313 print "Warning wrong direction: property: %s; parameter: %s; direction: %s"%(prop_name + "_get", n, d) 313 print "Warning wrong direction: class: \"%s\"; property: \"%s\"; parameter: \"%s\"; direction: \"%s\""%(_o.cl_obj.c_name, prop_name + "_get", n, d)
314 print "Property \"%s\" will not be defined"%(prop_name + "_get") 314 print "Property \"%s\" will not be defined"%(prop_name + "_get")
315 add_this_func = False 315 add_this_func = False
316 break 316 break
@@ -324,7 +324,7 @@ class JsVisitor(Visitor):
324 js_type = self.internal_types[c_t_tmp][2] 324 js_type = self.internal_types[c_t_tmp][2]
325 params_tmp.append((c_t, n, d, c_t_internal, js_type)) 325 params_tmp.append((c_t, n, d, c_t_internal, js_type))
326 else: 326 else:
327 print "Warning: type: \"%s\" wasn't found in self.internal_types. Funct ion \"%s\" will not be defined"%(c_t_tmp, prop_name + "_get") 327 print "Warning: type: \"%s\" wasn't found in self.internal_types.\n Function \"%s\", from class \"%s\" will not be defined"%(c_t_tmp, prop_name + "_get", _o.cl_obj.c_name)
328 add_this_func = False 328 add_this_func = False
329 break 329 break
330 330
@@ -374,7 +374,7 @@ class JsVisitor(Visitor):
374 c_t_internal = self.internal_types[c_t_tmp][0] 374 c_t_internal = self.internal_types[c_t_tmp][0]
375 js_type = self.internal_types[c_t_tmp][2] 375 js_type = self.internal_types[c_t_tmp][2]
376 else: 376 else:
377 print "Warning: type: \"%s\" wasn't found in self.internal_types. Function \"%s\" will not be defined"%(c_t_tmp, m) 377 print "Warning: type: \"%s\" wasn't found in self.internal_types. Function \"%s\" from class \"%s\" will not be defined"%(c_t_tmp, n, _o.cl_obj.c_name)
378 continue 378 continue
379 379
380 if d == "in": 380 if d == "in":
@@ -825,7 +825,7 @@ class PyVisitor(Visitor):
825 c_t_internal = self.internal_types[c_t_tmp][0] 825 c_t_internal = self.internal_types[c_t_tmp][0]
826 py_type = self.internal_types[c_t_tmp][1] 826 py_type = self.internal_types[c_t_tmp][1]
827 else: 827 else:
828 print "Warning: type: \"%s\" wasn't found in self.internal_types. Function \"%s\" will not be defined"%(c_t_tmp, _o.name) 828 print "Warning: type: \"%s\" wasn't found in self.internal_types.\n Function \"%s\" from class: \"%s\" will not be defined"%(c_t_tmp, _o.name, _o.cl_obj.c_name)
829 return 829 return
830 830
831 if d == "in": 831 if d == "in":
@@ -1370,7 +1370,7 @@ class XMLparser(object):
1370 def normalize_module_names(self): 1370 def normalize_module_names(self):
1371 objects_tmp = {} 1371 objects_tmp = {}
1372 for n, o in self.objects.items(): 1372 for n, o in self.objects.items():
1373 o.c_name = normalize_names([o.c_name])[0] 1373 #o.c_name = normalize_names([o.c_name])[0]
1374 o.kl_id = normalize_names([o.kl_id])[0] 1374 o.kl_id = normalize_names([o.kl_id])[0]
1375 o.parents = normalize_names(o.parents) 1375 o.parents = normalize_names(o.parents)
1376 objects_tmp[o.kl_id] = o 1376 objects_tmp[o.kl_id] = o