Roundup Tracker - Issues

Issue 734524

classification
Combining searches: "prop=1&prop=2&prop=1,2,3"
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : neaj, richard
Priority: normal :

Created on 2003-05-08 08:55 by neaj, last changed 2003-05-08 08:55 by neaj.

Messages
msg817 Author: [hidden] (neaj) Date: 2003-05-08 08:55
These work:

http://<server>/<tracker>/issue?:filter=status,assignedto&status=1&status=2
http://<server>/<tracker>/issue?:filter=status,assignedto&status=-1,1,2,3,4,5,6,7

This doesn't:
http://<server>/<tracker>/issue?:filter=status,assignedto&status=-1,1,2,3,4,5,6,7&status=1

It fails in the bowels of back_anydbm.filter (traceback
below), and I
couldn't easily see what the current algorithm is or
whether there's
one that would cope with the above situation. And I
don't know what
the impact for the other backends would be.

Is this kind of search something that Roundup wants to
deal with at
all? It could certainly be useful:

  <input value="5,6" type="checkbox" name="locality">Local
  <input value="1" type="checkbox" name="locality">Down
Under
  <input value="2" type="checkbox" name="locality">Up Above
  ...
  <input value="5" type="checkbox" name="locality">In
the Middle
  <input value="6" type="checkbox"
name="locality">Western Cape

So I could check "Local" and "Down Under",
instead of "Down Under", "In the Middle", and "Western
Cape".
Currently it's either predefined searches ("5,6"), or
individual
choices, but not both together.

-- 
Jean Jordaan
http://www.upfrontsystems.co.za

   1.
      Current variables:
      templates <roundup.cgi.templating.Templates
instance at 0x81d1134>
      repeat
<roundup.cgi.PageTemplates.TALES.SafeMapping instance
at 0x81d175c>
      default <roundup.cgi.PageTemplates.TALES.Default
instance at 0x8463c4c>
      db <roundup.cgi.templating.HTMLDatabase instance
at 0x81d0fc4>
      utils <roundup.cgi.templating.utils instance at
0x81d107c>
      request <roundup.cgi.templating.HTMLRequest
instance at 0x824d47c>
      tracker <module '_roundup_tracker_1' from
'/home/httpd/roundup/new_feko/__init__.pyc'>
      context <HTMLClass(0x81d11ec) issue>
      nothing None
      config <module '_roundup_tracker_1.config' from
'/home/httpd/roundup/new_feko/config.pyc'>
      options {'ok_message': [], 'error_message': []}
      loop <roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x81d175c>
      attrs {'tal:define': 'batch request/batch',
'tal:condition': 'context/is_view_ok'}
   2. A problem occurred in your template "issue.index".

Full traceback:

Traceback (most recent call last):
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/client.py",
line 374, in renderContext
    return pt.render(self, None, None, **args)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/templating.py",
line 187, in render
    getEngine().getContext(c), output, tal=1,
strictinsert=0)()
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 154, in __call__
    self.interpret(self.program)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 525, in do_useMacro
    self.interpret(macro)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 549, in do_defineSlot
    self.interpret(slot)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 402, in do_setLocal_tal
    self.engine.setLocal(name,
self.engine.evaluateValue(expr))
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 225, in evaluate
    v = expression(self)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 188, in __call__
    return self._eval(econtext)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 183, in _eval
    return render(ob, econtext.vars)
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 89, in render
    ob = ob()
  File
"/usr/lib/python2.2/site-packages/roundup/cgi/templating.py",
line 1548, in batch
    l = klass.filter(matches, filterspec, sort, group)
  File
"/usr/lib/python2.2/site-packages/roundup/backends/back_anydbm.py",
line 1574, in filter
    raise ValueError, 'property "%s": %s not a %s'%(
ValueError: property "status": -1,1,2,3,4,5,6,7 not a
status

History
Date User Action Args
2003-05-08 08:55:30neajcreate