From ab2952e77ef993eff352295ba981e22ec6a1008f Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 4 Oct 2006 14:05:41 +0200 Subject: * po/pl.po, po/ro.po: - fix plural forms * SoftwareProperties/SoftwareProperties.py: - xml-escape comments before rendering them on a gtktreeview --- SoftwareProperties/SoftwareProperties.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SoftwareProperties/SoftwareProperties.py') diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 14ddeefc..983a8cce 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -33,8 +33,7 @@ from gettext import gettext as _ import os import string import re - -#sys.path.append("@prefix/share/update-manager/python") +from xml.sax.saxutils import escape from UpdateManager.Common.SimpleGladeApp import SimpleGladeApp from UpdateManager.Common.HelpViewer import HelpViewer @@ -46,6 +45,7 @@ import dialog_add_sources_list from dialog_apt_key import apt_key from utils import * + (LIST_MARKUP, LIST_ENABLED, LIST_ENTRY_OBJ) = range(3) CONF_MAP = { @@ -701,7 +701,7 @@ class SoftwareProperties(SimpleGladeApp): if source.template == None: if source.comment: - contents = "%s" % source.comment + contents = "%s" % escape(source.comment) # Only show the components if there are more than one if len(source.comps) > 1: for c in source.comps: -- cgit v1.2.3