[Zope] ZCatalog and tokens properties

Alex Rice alrice@swcp.com
Sun, 25 Jul 1999 11:08:45 -0600 (MDT)


I just posted this to Collector, but am not sure it's a bug. Sure seems
like it though. Suggestions?

(using 2.0 beta1)

If I have ZClasses with properties like this:

instance	menu (tokens)

A		spam
B		spam eggs
C		spam eggs toast
D		spam eggs potatos

I can ZCatalog these objects and add 'menu' as a field index.
When I call cat.uniqueValuesFor('menu') I would expect it to return:

['spam','eggs','toast','potatos'] 

not what it does, which is:

[ ['spam','eggs'],
  ['spam','eggs','toast'],
  ['spam','eggs','potatos']
]

Is this a bug? How can I create the intended effect? Does the same
problem exist for selection type properties?

-- 
Alex Rice    |    alrice@swcp.com    |    http://www.swcp.com/~alrice
    Current Location: N. Rio Grande Bioregion, Southwestern USA