comparison roundup/admin.py @ 6177:41907e1f9c3f

Fix postgres/mysql testing; test filter. Apparently I killed the testFilter test by using it for the testFind check. Also testing showed that filter issue assignedto=admin,anonymous wasn't properly mapped to be the same as assignedto=1,2. Also set all rdbms properties to allow roundup-admin to create the databses for postgres and mysql. Pulled props from test/db_test_base.py.
author John Rouillard <rouilj@ieee.org>
date Tue, 19 May 2020 00:16:21 -0400
parents d25638d1826c
children 4f45ce95f016
comparison
equal deleted inserted replaced
6176:d25638d1826c 6177:41907e1f9c3f
741 # multiple , separated values become a list 741 # multiple , separated values become a list
742 for propname, value in props.items(): 742 for propname, value in props.items():
743 if ',' in value: 743 if ',' in value:
744 values = value.split(',') 744 values = value.split(',')
745 else: 745 else:
746 values = value 746 values = [ value ]
747 747
748 props[propname] = values 748 props[propname] = []
749 for value in values:
750 val = hyperdb.rawToHyperdb(self.db, cl, None,
751 propname, value)
752 props[propname].append(val)
749 753
750 # now do the filter 754 # now do the filter
751 try: 755 try:
752 id = [] 756 id = []
753 designator = [] 757 designator = []

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