projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't translate empty strings
[vuplus_dvbapp]
/
RecordTimer.py
diff --git
a/RecordTimer.py
b/RecordTimer.py
index
a257b2f
..
f9382e8
100644
(file)
--- a/
RecordTimer.py
+++ b/
RecordTimer.py
@@
-224,7
+224,10
@@
class RecordTimer(timer.Timer):
root = doc.childNodes[0]
for timer in elementsWithTag(root.childNodes, "timer"):
self.record(createTimer(timer))
root = doc.childNodes[0]
for timer in elementsWithTag(root.childNodes, "timer"):
self.record(createTimer(timer))
-
+
+ def strToXML(self, str):
+ return str.replace('&', '&').replace('<', '<').replace('>', '>').replace("'", '''). replace('"', '&qout;')
+
def saveTimer(self):
#doc = xml.dom.minidom.Document()
#root_element = doc.createElement('timers')
def saveTimer(self):
#doc = xml.dom.minidom.Document()
#root_element = doc.createElement('timers')
@@
-277,8
+280,8
@@
class RecordTimer(timer.Timer):
list.append(' end="' + str(int(timer.end)) + '"')
list.append(' serviceref="' + str(timer.service_ref) + '"')
list.append(' repeated="' + str(int(timer.repeated)) + '"')
list.append(' end="' + str(int(timer.end)) + '"')
list.append(' serviceref="' + str(timer.service_ref) + '"')
list.append(' repeated="' + str(int(timer.repeated)) + '"')
- list.append(' name="' + str(
timer.name
) + '"')
- list.append(' description="' + str(
timer.description
) + '"')
+ list.append(' name="' + str(
self.strToXML(timer.name)
) + '"')
+ list.append(' description="' + str(
self.strToXML(timer.description)
) + '"')
list.append(' eit="' + str(timer.eit) + '"')
list.append('>\n')
list.append(' eit="' + str(timer.eit) + '"')
list.append('>\n')