1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-02 20:04:16 +01:00

branches/experimental:

- A bunch of documentation additions/updates.
- Minor refactoring.
- Fix catching wrong exception in netentry.py
This commit is contained in:
imdano
2008-09-25 20:17:35 +00:00
parent bb1d222150
commit df0ebdb92f
11 changed files with 160 additions and 46 deletions

View File

@@ -813,6 +813,7 @@ class WirelessNetworkEntry(NetworkEntry):
self.wifides = self.connect("destroy", self.destroy_called)
def _escape(self, val):
""" Escapes special characters so they're displayed correctly. """
return val.replace("&", "&amp;").replace("<", "&lt;").\
replace(">","&gt;").replace("'", "&apos;").replace('"', "&quot;")
@@ -930,7 +931,7 @@ class WirelessNetworkEntry(NetworkEntry):
misc.LaunchAndWait([sudo_prog, msg_flag, msg,
wpath.lib + "configscript.py",
str(self.networkID), "wireless"])
except IOError:
except misc.WicdError:
error(None, "Could not find a graphical sudo program." + \
" Script editor could no be launched.")
else: