[gnome-applets] invest: auto-convert stock symbols to upper case
- From: Callum McKenzie <callum src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-applets] invest: auto-convert stock symbols to upper case
- Date: Fri, 10 Jul 2009 09:01:34 +0000 (UTC)
commit 115801365e0f3f33a09bb6452d0ad60fc450983b
Author: Callum McKenzie <callum spooky-possum org>
Date: Fri Jul 10 20:58:14 2009 +1200
invest: auto-convert stock symbols to upper case
Patch from Enrico Minack. Fixes bug 450176.
invest-applet/invest/preferences.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/invest-applet/invest/preferences.py b/invest-applet/invest/preferences.py
index e823faf..a73d5bf 100644
--- a/invest-applet/invest/preferences.py
+++ b/invest-applet/invest/preferences.py
@@ -28,6 +28,8 @@ class PrefsDialog:
def on_cell_edited(cell, path, new_text, col, typ):
try:
+ if col == 0: # stock symbols must be uppercase
+ new_text = str.upper(new_text)
store[path][col] = typ(new_text)
except:
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]