CVS: tmda-cgi ChangeLog,1.41,1.42 Install.py,1.19,1.20 PendList.py,1.19,1.20 Session.py,1.33,1.34 TODO,1.21,1.22
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-serv18334 Modified Files: ChangeLog Install.py PendList.py Session.py TODO Log Message: Added %(Name)s as a substitution variable during auto-install. Added login cookie to TODO list. Tweaked pending list code so it won't complain if it can't find a batch message. Index: ChangeLog =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- ChangeLog 7 Jun 2003 03:49:42 -0000 1.41 +++ ChangeLog 11 Jun 2003 22:17:19 -0000 1.42 @@ -1,3 +1,12 @@ +2003-06-11 Gre7g Luterman <[email protected]> + + * Added %(Name)s as a substitution variable during auto-install. + + * Added login cookie to TODO list. + + * Tweaked pending list code so it won't complain if it can't find a batch + message. + 2003-06-06 Gre7g Luterman <[email protected]> * Added %(RealHome)s as a substitution variable during auto-install. Index: Install.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- Install.py 7 Jun 2003 03:49:42 -0000 1.19 +++ Install.py 11 Jun 2003 22:17:19 -0000 1.20 @@ -633,6 +633,7 @@ "CryptKey": KeyGen(), "Domain": Util.gethostname(), "Home": os.environ["HOME"], + "Name": repr(PVars["NAME"]), "Parent": "..", "RealHome": pwd.getpwuid(os.geteuid())[5], "UrlDomain": os.environ["SERVER_NAME"], Index: PendList.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/PendList.py,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- PendList.py 29 May 2003 17:51:51 -0000 1.19 +++ PendList.py 11 Jun 2003 22:17:20 -0000 1.20 @@ -219,7 +219,7 @@ # Print a single message record inside list loop try: MsgObj = Pending.Message(Msg) - except IOError, ErrStr: + except (IOError, Errors.MessageError), ErrStr: continue # Message size Index: Session.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/Session.py,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- Session.py 21 May 2003 05:09:31 -0000 1.33 +++ Session.py 11 Jun 2003 22:17:20 -0000 1.34 @@ -383,11 +383,16 @@ CgiUtil.TermError("Can't load virtual user stub.", "Cannot execute %s" % Filename, "execute stub", "TMDA_VLOOKUP = %s" % os.environ["TMDA_VLOOKUP"], "Recompile CGI.") - self.Vars["HOME"], self.Vars["UID"], self.Vars["GID"] = \ - Sandbox["getuserparams"](List) + Params = Sandbox["getuserparams"](List) + self.Vars["HOME"], self.Vars["UID"], self.Vars["GID"] = Params[0:3] + if len(Params) > 3: + self.Vars["NAME"] = Params[3] + else: + self.Vars["NAME"] = None else: self.Vars["HOME"], self.Vars["UID"], self.Vars["GID"] = \ Util.getuserparams(self.Vars["User"]) + self.Vars["NAME"] = pwd.getpwuid(self.Vars["UID"])[4] except KeyError, str: Template.Template.Dict["ErrMsg"] = \ "Username %s not found in system.\nstr=%s" % (self.Vars["User"], str) @@ -395,8 +400,8 @@ # When getuserparams returns a UID of 0 or 1, assume it is a virtual user if int(self.Vars["UID"]) < 2: PasswordRecord = pwd.getpwnam(os.environ["TMDA_VUSER"]) - self.Vars["UID"] = PasswordRecord[2] - self.Vars["GID"] = PasswordRecord[3] + self.Vars["UID"] = PasswordRecord[2] + self.Vars["GID"] = PasswordRecord[3] if not int(self.Vars["UID"]): CgiUtil.TermError("TMDA_VUSER is UID 0.", "It is not safe to run " "tmda-cgi as root.", "set euid", Index: TODO =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/TODO,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- TODO 31 May 2003 18:11:10 -0000 1.21 +++ TODO 11 Jun 2003 22:17:20 -0000 1.22 @@ -13,6 +13,8 @@ * List Editor -- current editor is fine for short lists, but lacking for long lists + * Remember Me -- set a cookie to skip login + * Search -- for pending list and/or lists and filters * Tutorial -- finish section on mailing lists _______________________________________ tmda-cvs mailing list http://tmda.net/lists/listinfo/tmda-cvs