diff roundup/cgi_client.py @ 467:103f521810f7

Features added: . Multilink properties are now displayed as comma separated values in a textbox . The add user link is now only visible to the admin user . Modified the mail gateway to reject submissions from unknown addresses if ANONYMOUS_ACCESS is denied
author Roche Compaan <rochecompaan@users.sourceforge.net>
date Thu, 20 Dec 2001 15:43:01 +0000
parents a3548136f7bb
children fc44c590d4a1
line wrap: on
line diff
--- a/roundup/cgi_client.py	Thu Dec 20 06:13:24 2001 +0000
+++ b/roundup/cgi_client.py	Thu Dec 20 15:43:01 2001 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: cgi_client.py,v 1.85 2001-12-20 06:13:24 rochecompaan Exp $
+# $Id: cgi_client.py,v 1.86 2001-12-20 15:43:01 rochecompaan Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -120,11 +120,17 @@
         else:
             user_info = _('<a href="login">Login</a>')
         if self.user is not None:
-            add_links = _('''
+            if self.user == 'admin':
+                add_links = _('''
 | Add
 <a href="newissue">Issue</a>,
 <a href="newuser">User</a>
 ''')
+            else:
+                add_links = _('''
+| Add
+<a href="newissue">Issue</a>
+''')
         else:
             add_links = ''
         self.write(_('''<html><head>
@@ -1059,12 +1065,19 @@
         else:
             user_info = _('<a href="login">Login</a>')
         if self.user is not None:
-            add_links = _('''
+            if self.user == 'admin':
+                add_links = _('''
 | Add
 <a href="newissue">Issue</a>,
 <a href="newsupport">Support</a>,
 <a href="newuser">User</a>
 ''')
+            else:
+                add_links = _('''
+| Add
+<a href="newissue">Issue</a>,
+<a href="newsupport">Support</a>,
+''')
         else:
             add_links = ''
         self.write(_('''<html><head>
@@ -1163,6 +1176,16 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.85  2001/12/20 06:13:24  rochecompaan
+# Bugs fixed:
+#   . Exception handling in hyperdb for strings-that-look-like numbers got
+#     lost somewhere
+#   . Internet Explorer submits full path for filename - we now strip away
+#     the path
+# Features added:
+#   . Link and multilink properties are now displayed sorted in the cgi
+#     interface
+#
 # Revision 1.84  2001/12/18 15:30:30  rochecompaan
 # Fixed bugs:
 #  .  Fixed file creation and retrieval in same transaction in anydbm

Roundup Issue Tracker: http://roundup-tracker.org/