Roundup Tracker - Issues

Message399

Author lannert
Recipients
Date 2002-10-04.15:49:00
Message-id
In-reply-to
[This refers to roundup 0.5.0; sorry, I cannot specify
this in the sf
bug submission form -- the "Group:" field only accepts
0.4.X.]

The mail gateway mailgw.py invokes db.user.filter()
with empty lists
as 'group' and 'sort' arguments. In filter(), however,
the lists are
indexed without checking for elements, and so the mail
gateway
dies.

It works for me with the following patch:

*** rdbms_common.py.orig        Wed Oct  2 07:54:08 2002
--- rdbms_common.py     Fri Oct  4 17:27:25 2002
***************
*** 1796,1802 ****
          # can modify it...)
          orderby = []
          ordercols = []
!         if group[0] is not None and group[1] is not None:
              if group[0] != '-':
                  orderby.append('_'+group[1])
                  ordercols.append('_'+group[1])
--- 1796,1802 ----
          # can modify it...)
          orderby = []
          ordercols = []
!         if group and group[0] is not None and
group[1] is not None:
              if group[0] != '-':
                  orderby.append('_'+group[1])
                  ordercols.append('_'+group[1])
***************
*** 1806,1812 ****
  
          # now add in the sorting
          group = ''
!         if sort[0] is not None and sort[1] is not None:
              direction, colname = sort
              if direction != '-':
                  if colname == 'id':
--- 1806,1812 ----
  
          # now add in the sorting
          group = ''
!         if sort and sort[0] is not None and sort[1]
is not None:
              direction, colname = sort
              if direction != '-':
                  if colname == 'id':
History
Date User Action Args
2009-02-03 14:20:05adminlinkissue618614 messages
2009-02-03 14:20:05admincreate