[Mailman-Developers] Little bug(?) in admindb

Barry A. Warsaw bwarsaw@cnri.reston.va.us (Barry A. Warsaw)
Fri, 8 Jan 1999 14:39:05 -0500 (EST)


>>>>> "BN" == Balazs Nagy <julian7@kva.hu> writes:

    BN> I didn't have a mouse but a simple console screen with lynx.
    BN> Here's my new test:

    BN> With one pending: OK

    BN> With two or more pendings:

I'm unable to reproduce this, but I can see how this might happen.
Please try this patch instead.

-Barry

-------------------- snip snip --------------------
Index: admindb.py
===================================================================
RCS file: /projects/cvsroot/mailman/Mailman/Cgi/admindb.py,v
retrieving revision 1.7
diff -c -r1.7 admindb.py
*** admindb.py	1998/12/19 04:43:46	1.7
--- admindb.py	1999/01/08 19:34:49
***************
*** 192,199 ****
  	ignore_subscribes = 1
  	SubscribeNone()
      for k in form.keys():
          try:
!             v = int(form[k].value)
              request_id = int(k)
          except ValueError:
              continue
--- 192,202 ----
  	ignore_subscribes = 1
  	SubscribeNone()
      for k in form.keys():
+         formv = form[k]
+         if type(formv) == types.ListType:
+             continue
          try:
!             v = int(formv.value)
              request_id = int(k)
          except ValueError:
              continue