Update of /cvsroot/mailman/mailman/Mailman/Cgi
In directory usw-pr-cvs1:/tmp/cvs-serv16582

Modified Files:
        admin.py 
Log Message:
change_options(): A kludge, but don't set the emergency attribute from
the form data if we're logging in.  Apparently, using a checkbox in
this way doesn't get us tri-state (i.e. None for not present, 0 and
1); it just gets us None or 1.


Index: admin.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Cgi/admin.py,v
retrieving revision 2.65
retrieving revision 2.66
diff -C2 -d -r2.65 -r2.66
*** admin.py    15 Mar 2002 03:53:34 -0000      2.65
--- admin.py    25 Mar 2002 23:48:12 -0000      2.66
***************
*** 1202,1207 ****
          else:
              doc.addError(_('Administator passwords did not match'))
!     # Handle the emergency stop button
!     mlist.emergency = safeint('emergency', 0)
      # Give the individual gui item a chance to process the form data
      categories = mlist.GetConfigCategories()
--- 1202,1209 ----
          else:
              doc.addError(_('Administator passwords did not match'))
!     # Handle the emergency stop button.  Only take its value from the form if
!     # we're not logging in.
!     if not cgidata.has_key('admlogin') and not cgidata.has_key('adminpw'):
!         mlist.emergency = safeint('emergency', 0)
      # Give the individual gui item a chance to process the form data
      categories = mlist.GetConfigCategories()


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to