git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DreamInfoHandler.py: no fatal error when no language element in info tag is found...
[enigma2.git]
/
lib
/
python
/
Components
/
DreamInfoHandler.py
diff --git
a/lib/python/Components/DreamInfoHandler.py
b/lib/python/Components/DreamInfoHandler.py
index 6004e1f32f83f2e6efa3c3173b77d33b99ebefd5..6cf3b00428dd3206ae67e738919360a4503440f4 100755
(executable)
--- a/
lib/python/Components/DreamInfoHandler.py
+++ b/
lib/python/Components/DreamInfoHandler.py
@@
-50,8
+50,10
@@
class InfoHandler(xml.sax.ContentHandler):
prerequisites[name].append(str(attrs["type"]))
if name == "info":
prerequisites[name].append(str(attrs["type"]))
if name == "info":
+ self.foundTranslation = None
+ self.data = ""
if not attrs.has_key("language"):
if not attrs.has_key("language"):
- self.printError(str(name) + " tag with no language attribute")
+ print "info tag with no language attribute"
else:
if attrs["language"] == 'en': # read default translations
self.foundTranslation = False
else:
if attrs["language"] == 'en': # read default translations
self.foundTranslation = False
@@
-59,9
+61,6
@@
class InfoHandler(xml.sax.ContentHandler):
elif attrs["language"] == self.language:
self.foundTranslation = True
self.data = ""
elif attrs["language"] == self.language:
self.foundTranslation = True
self.data = ""
- else:
- self.foundTranslation = None
- self.data = ""
if name == "files":
if attrs.has_key("type"):
if name == "files":
if attrs.has_key("type"):