[Spambayes-checkins] spambayes/Outlook2000 addin.py,1.7,1.8
Tim Peters
tim_one@users.sourceforge.net
Sun, 20 Oct 2002 13:20:36 -0700
- Previous message: [Spambayes-checkins] spambayes/Outlook2000/dialogs
FilterDialog.py,1.3,1.4ManagerDialog.py,1.1,1.2
- Next message: [Spambayes-checkins]
spambayes/Outlook2000 addin.py,1.8,1.9 classify.py,1.6,1.7
filter.py,1.7,1.8 manager.py,1.13,1.14 train.py,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory usw-pr-cvs1:/tmp/cvs-serv19850
Modified Files:
addin.py
Log Message:
ShowClues(): apply cgi.escape() to words (angle brackets were confusing
Outlook's HTML display).
Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** addin.py 20 Oct 2002 18:53:06 -0000 1.7
--- addin.py 20 Oct 2002 20:20:34 -0000 1.8
***************
*** 114,117 ****
--- 114,119 ----
def ShowClues(mgr, app):
+ from cgi import escape
+
sel = app.ActiveExplorer().Selection
if sel.Count == 0:
***************
*** 143,147 ****
max_word_len = max(map(len, words))
for word, prob in zip(words, probs):
! push(word + ' ' * (max_word_len - len(word)))
push(' ' + prob + '\n')
push("</PRE>\n")
--- 145,149 ----
max_word_len = max(map(len, words))
for word, prob in zip(words, probs):
! push(escape(word) + ' ' * (max_word_len - len(word)))
push(' ' + prob + '\n')
push("</PRE>\n")
- Previous message: [Spambayes-checkins] spambayes/Outlook2000/dialogs
FilterDialog.py,1.3,1.4ManagerDialog.py,1.1,1.2
- Next message: [Spambayes-checkins]
spambayes/Outlook2000 addin.py,1.8,1.9 classify.py,1.6,1.7
filter.py,1.7,1.8 manager.py,1.13,1.14 train.py,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]