CVS: tmda-cgi CgiVersion.py, 1.12, 1.13 ChangeLog, 1.63, 1.64 TestAddr.py, 1.1, 1.2
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-serv30244 Modified Files: CgiVersion.py ChangeLog TestAddr.py Log Message: Changed timestamp call in dynamic address tester for compatibility with new member function definition introduced in TMDA 0.81. tmda-cgi now requires TMDA 0.81. Index: CgiVersion.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/CgiVersion.py,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- CgiVersion.py 9 Aug 2003 22:13:04 -0000 1.12 +++ CgiVersion.py 15 Nov 2003 17:03:54 -0000 1.13 @@ -30,7 +30,7 @@ Codename = "Magnesium" # TMDA version required -TMDAReqVer = "0.77" +TMDAReqVer = "0.81" # Python version Python = Version.PYTHON Index: ChangeLog =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v retrieving revision 1.63 retrieving revision 1.64 diff -u -r1.63 -r1.64 --- ChangeLog 4 Oct 2003 21:58:26 -0000 1.63 +++ ChangeLog 15 Nov 2003 17:03:54 -0000 1.64 @@ -1,3 +1,10 @@ +2003-11-15 Gre7g Luterman <[email protected]> + + * Changed timestamp call in dynamic address tester for compatibility + with new member function definition introduced in TMDA 0.81. + + * tmda-cgi now requires TMDA 0.81. + 2003-10-04 Gre7g Luterman <[email protected]> * Caught an extra exception in Session. Index: TestAddr.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/TestAddr.py,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TestAddr.py 20 Apr 2003 17:42:16 -0000 1.1 +++ TestAddr.py 15 Nov 2003 17:03:54 -0000 1.2 @@ -22,10 +22,14 @@ "Test dynamic addresses for tmda-cgi." import os +import time import Template from TMDA import Address from TMDA import Defaults +# Constants +DateFormat = "%a, %d %b %Y %H:%M:%S UTC" + def Show(): "Test dynamic addresses." @@ -66,14 +70,15 @@ Addr.verify(From) T["Results"] = "Valid." try: - T["Results"] = "Valid.<br>Expires: %s" % Addr.timestamp(1, None) + T["Results"] = "Valid.<br>Expires: %s" % \ + time.strftime(DateFormat, time.localtime(int(Addr.timestamp()))) except AttributeError: pass except Address.AddressError, Msg: T["Results"] = Msg try: T["Results"] = "Expired or invalid<br>Expiration: %s" % \ - Addr.timestamp(1, None) + time.strftime(DateFormat, time.localtime(int(Addr.timestamp()))) except AttributeError: pass