CVS: tmda-cgi ChangeLog,1.34,1.35 Install.py,1.13,1.14 THANKS,1.11,1.12 TODO,1.18,1.19

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

Modified Files:
	ChangeLog Install.py THANKS TODO 
Log Message:
Made %(UrlDomain)s, %(ShortUrlDom)s, and %(VirtUser)d available during
auto-install.


Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ChangeLog	22 May 2003 17:14:07 -0000	1.34
+++ ChangeLog	23 May 2003 22:42:10 -0000	1.35
@@ -1,3 +1,8 @@
+2003-05-23  Gre7g Luterman  <[email protected]>
+
+	* Made %(UrlDomain)s, %(ShortUrlDom)s, and %(VirtUser)d available
+	  during auto-install.
+
 2003-05-22  Gre7g Luterman  <[email protected]>
 
 	* Added optional message filter to use before reporting messages.

Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Install.py	22 May 2003 15:58:23 -0000	1.13
+++ Install.py	23 May 2003 22:42:10 -0000	1.14
@@ -284,8 +284,10 @@
 
   # Are we supposed to ignore any of those?
   if re.search(Anomalies["VIRTUAL_TEST"], PVars["HOME"]):
+    Dict["VirtUser"] = 1
     ListDiff(FilesToInstall, Anomalies["REAL_ONLY"])
   else:
+    Dict["VirtUser"] = 0
     ListDiff(FilesToInstall, Anomalies["VIRTUAL_ONLY"])
 
   # What files will that clobber?
@@ -570,15 +572,17 @@
   global Dict
   Dict = \
   {
-    "Base":     os.path.abspath(os.environ["TMDA_BASE_DIR"]),
-    "CryptKey": KeyGen(),
-    "Domain":   Util.gethostname(),
-    "Home":     os.environ["HOME"],
-    "Parent":   "..",
-    "User":     os.environ["USER"],
-    "VPop":     PVars[("NoOverride", "VPop")],
-    "VPopBin":  PVars[("NoOverride", "VPopBin")]
+    "Base":      os.path.abspath(os.environ["TMDA_BASE_DIR"]),
+    "CryptKey":  KeyGen(),
+    "Domain":    Util.gethostname(),
+    "Home":      os.environ["HOME"],
+    "Parent":    "..",
+    "UrlDomain": os.environ["SERVER_NAME"],
+    "User":      os.environ["USER"],
+    "VPop":      PVars[("NoOverride", "VPop")],
+    "VPopBin":   PVars[("NoOverride", "VPopBin")]
   }
+  Dict["ShortUrlDom"] = re.sub("^www.", "", Dict["UrlDomain"], re.I)
 
   # Load the display template
   if Form["cmd"].value == "conf-example":

Index: THANKS
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/THANKS,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- THANKS	22 May 2003 17:14:07 -0000	1.11
+++ THANKS	23 May 2003 22:42:10 -0000	1.12
@@ -26,6 +26,9 @@
 
     * Remo Mattei -- bug finding
 
+    * Kelvin D. Olson -- suggested adding UrlDomain and ShortUrlDom to the
+                         autoinstall variable list
+
     * Jim Ramsay -- authentication, brainstorming, user interface, feature
                     plans, alternate character set stuff
 

Index: TODO
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/TODO,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- TODO	21 May 2003 17:20:19 -0000	1.18
+++ TODO	23 May 2003 22:42:10 -0000	1.19
@@ -13,4 +13,7 @@
 
     * Search -- for pending list and/or lists and filters
 
+    * Sort -- Tomasz Nidecki suggested making a "sort by domain" button for
+              list editor
+
     * Tutorial -- finish section on mailing lists

_______________________________________
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.