CVS: tmda-cgi ChangeLog,1.26,1.27 Session.py,1.28,1.29 tmda-cgi.py,1.28,1.29

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-serv22459

Modified Files:
	ChangeLog Session.py tmda-cgi.py 
Log Message:
Added a stub for decoding /var/qmail/users/assign

Minor bugfix to charset code.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ChangeLog	6 May 2003 21:50:40 -0000	1.26
+++ ChangeLog	6 May 2003 23:19:35 -0000	1.27
@@ -2,6 +2,8 @@
 
 	* Display international characters in both pending lists and e-mails.
 
+	* Added a stub for decoding /var/qmail/users/assign
+
 2003-05-04  Gre7g Luterman  <[email protected]>
 
 	* Replaced compile with new, improved configure.  Makes better guesses

Index: Session.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Session.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- Session.py	3 May 2003 17:29:38 -0000	1.28
+++ Session.py	6 May 2003 23:19:36 -0000	1.29
@@ -269,6 +269,7 @@
     os.chdir(CWD)
 
     # Get current theme
+    Template.Template.Dict["CharSet"] = self[("General", "CSEncoding")]
     self.GetTheme()
 
   def __init__(self, Form):
@@ -358,7 +359,7 @@
         VLookup = \
           CgiUtil.ParseString(os.environ["TMDA_VLOOKUP"], self.Vars["User"])
         List = Util.RunTask(VLookup[1:])
-        Sandbox = {}
+        Sandbox = {"User": self.Vars["User"]}
         Filename = os.path.join("stubs", "%s.py" % VLookup[0])
         try:
           execfile(Filename, Sandbox)

Index: tmda-cgi.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/tmda-cgi.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- tmda-cgi.py	6 May 2003 21:50:40 -0000	1.28
+++ tmda-cgi.py	6 May 2003 23:19:37 -0000	1.29
@@ -82,7 +82,6 @@
   try:
     PVars = Session.Session(Form)
     CgiUtil.ErrTemplate = "error.html"
-    Template.Template.Dict["CharSet"] = PVars[("General", "CSEncoding")]
   except CgiUtil.NotInstalled, (ErrStr, PVars):
     Template.Template.Dict["ErrMsg"] = ErrStr
     # Can log in but TMDA is not installed correctly

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
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.