CVS: tmda-cgi ChangeLog,1.42,1.43 EditList.py,1.5,1.6
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-serv6976 Modified Files: ChangeLog EditList.py Log Message: Don't automatically save list on sort. Index: ChangeLog =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- ChangeLog 11 Jun 2003 22:17:19 -0000 1.42 +++ ChangeLog 12 Jun 2003 04:10:31 -0000 1.43 @@ -4,8 +4,10 @@ * Added login cookie to TODO list. - * Tweaked pending list code so it won't complain if it can't find a batch - message. + * Tweaked pending list code so it won't complain if it can't find a + batch message. + + * Don't automatically save list on sort. 2003-06-06 Gre7g Luterman <[email protected]> Index: EditList.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/EditList.py,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- EditList.py 31 May 2003 18:11:10 -0000 1.5 +++ EditList.py 12 Jun 2003 04:10:32 -0000 1.6 @@ -127,22 +127,22 @@ else: List = "" - # Make sure the list is properly formatted - List = re.sub("\r\n", "\n", List) - List = re.sub("\n*$", "", List) - List = re.sub("^\n*", "", List) - List += "\n" + # Make sure the list is properly formatted + List = re.sub("\r\n", "\n", List) + List = re.sub("\n*$", "", List) + List = re.sub("^\n*", "", List) + List += "\n" - try: - F = open(EditFile, "w") - F.write(List) - F.close() - T["FileContents"] = List - except IOError, ErrStr: - CgiUtil.TermError("Unable to save filter list.", - "Insufficient privileges", "save list", "%s<br>%s" % (ErrStr, - CgiUtil.FileDetails("Filter list", EditFile)), - "Change file permissions on <tt>%s</tt>" % EditFile) + try: + F = open(EditFile, "w") + F.write(List) + F.close() + except IOError, ErrStr: + CgiUtil.TermError("Unable to save filter list.", + "Insufficient privileges", "save list", "%s<br>%s" % (ErrStr, + CgiUtil.FileDetails("Filter list", EditFile)), + "Change file permissions on <tt>%s</tt>" % EditFile) # Display template + T["FileContents"] = List print T _______________________________________ tmda-cvs mailing list http://tmda.net/lists/listinfo/tmda-cvs