aboutsummaryrefslogtreecommitdiff
path: root/RecordTimer.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-03-03 15:01:29 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-03-03 15:01:29 +0000
commitc646a9d7be631e75b8674db99e7979899f04ba68 (patch)
treed8dac5efda0ac93cb7b0275ebc85d62c0fa219b1 /RecordTimer.py
parent936ab7cdd04bfc065af53fe25fd0e58e6120c98a (diff)
downloadenigma2-c646a9d7be631e75b8674db99e7979899f04ba68.tar.gz
enigma2-c646a9d7be631e75b8674db99e7979899f04ba68.zip
move strToXML into Tools
Diffstat (limited to 'RecordTimer.py')
-rw-r--r--RecordTimer.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/RecordTimer.py b/RecordTimer.py
index a5df6725..a5c179c4 100644
--- a/RecordTimer.py
+++ b/RecordTimer.py
@@ -12,7 +12,7 @@ from Screens.SubserviceSelection import SubserviceSelection
import NavigationInstance
from time import localtime
-from Tools.XMLTools import elementsWithTag, mergeText
+from Tools.XMLTools import elementsWithTag, mergeText, filterXMLString
from ServiceReference import ServiceReference
# ok, for descriptions etc we have:
@@ -238,9 +238,6 @@ class RecordTimer(timer.Timer):
for timer in elementsWithTag(root.childNodes, "timer"):
self.record(createTimer(timer))
- def strToXML(self, str):
- return str.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace("'", '&apos;'). replace('"', '&quot;')
-
def saveTimer(self):
#doc = xml.dom.minidom.Document()
#root_element = doc.createElement('timers')
@@ -296,8 +293,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(' name="' + str(self.strToXML(timer.name)) + '"')
- list.append(' description="' + str(self.strToXML(timer.description)) + '"')
+ list.append(' name="' + str(filterXMLString(timer.name)) + '"')
+ list.append(' description="' + str(filterXMLString(timer.description)) + '"')
if timer.eit is not None:
list.append(' eit="' + str(timer.eit) + '"')
list.append(' disabled="' + str(int(timer.disabled)) + '"')