CVS: tmda-cgi Install.py,1.14,1.15

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

Modified Files:
	Install.py 
Log Message:
Catch the rather strange circumstance of trying to install a TMDA account when
you do not have write permissions to the user's home directory.  (WEIRD!)


Index: Install.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Install.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Install.py	23 May 2003 22:42:10 -0000	1.14
+++ Install.py	30 May 2003 03:49:14 -0000	1.15
@@ -83,6 +83,10 @@
 
 Return 0 on success, error code on error."""
 
+  if not Util.CanWrite(os.path.join(os.environ["HOME"], Archive)):
+    CgiUtil.TermError("Can't write.", "No write permissions.",
+      "create backup", CgiUtil.FileDetails("home directory",
+      os.environ["HOME"]), "Check file permissions in home directory.")
   Files = []
   Parents = []
   for Filename in Filelist:

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