CVS: tmda-cgi PendList.py,1.32,1.33

Jim Ramsay <[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-serv5351

Modified Files:
	PendList.py 
Log Message:
Fixed bug where empty pending list creates uncaught exception when %(ReadArray)s is used in template.

Greyed out forward/next buttons when there are no messages


Index: PendList.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/PendList.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- PendList.py	9 Dec 2003 18:08:02 -0000	1.32
+++ PendList.py	9 Dec 2003 22:35:17 -0000	1.33
@@ -589,6 +589,15 @@
 
   # No messages to display
   else:
+    T["ReadArray"] = ""
+    T["FirstButton1Active"]
+    T["PrevButton1Active"]
+    T["FirstButton2Active"]
+    T["PrevButton2Active"]
+    T["NextButton1Active"]
+    T["LastButton1Active"]
+    T["NextButton2Active"]
+    T["LastButton2Active"]
     if Searching:
       T["Row"] = '<tr><td colspan="%s" align="center" class="InProcess"><i>No messages match the search criteria</i></td></tr>' % NumCols
     else:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.