CVS: tmda-cgi PendList.py,1.18,1.19 Unicode.py,1.3,1.4
Gre7g Luterman <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv10666
Modified Files:
PendList.py Unicode.py
Log Message:
Some minor tweaks to make the pending list look nicer.
Index: PendList.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/PendList.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- PendList.py 22 May 2003 17:44:41 -0000 1.18
+++ PendList.py 29 May 2003 17:51:51 -0000 1.19
@@ -114,6 +114,8 @@
if FirstMsg >= len(Msgs):
FirstMsg = len(Msgs) - \
(len(Msgs) % int(PVars[("PendingList", "PagerSize")]) )
+ if FirstMsg >= len(Msgs):
+ FirstMsg -= int(PVars[("PendingList", "PagerSize")])
if FirstMsg < 0:
FirstMsg = 0
if len(Msgs) <= int(PVars[("PendingList", "PagerSize")]):
Index: Unicode.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Unicode.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Unicode.py 21 May 2003 05:09:31 -0000 1.3
+++ Unicode.py 29 May 2003 17:51:51 -0000 1.4
@@ -67,8 +67,7 @@
"Represent a string in UTF-8."
import email.Charset
- if not CharSet:
- return Str
+ if not CharSet: CharSet = "iso-8859-1"
CS = email.Charset.Charset(CharSet)
CharSet = CS.input_charset
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs