Maurits van Rees <[email protected]>
writes:

> Hi,
>
> I see that getRoles is a FieldIndex.  See
> Products/remember/profiles/default/membrane_tool.xml
>
> That is not helpful for searching for members with a particular role: 
>
> (Pdb) portal.membrane_tool.unrestrictedSearchResults(getRoles='Reviewer')
> []
> (Pdb) pp [x.getRoles for x in 
> portal.membrane_tool.unrestrictedSearchResults()]
> [(),
>  ('Member'),
>  ('Member', 'Reviewer')]
>
>
> When I replace it with a KeyIndex, it works just fine:
>
> portal.membrane_tool.unrestrictedSearchResults(getRoles='Reviewer')
> [<Products.ZCatalog.Catalog.mybrains object at 0x10fc60a4>]
>
> Is anyone against changing this on trunk?

If the existing tests pass, I'd be grateful for the change.  Of course
there should be tests that exposed this as a bug previously, but I won't
hold you responsible for that.  :)

Ross



--
Archive: 
http://www.coactivate.org/projects/remember/lists/remember/archive/2009/10/1255988885268
To unsubscribe send an email with subject "unsubscribe" to 
[email protected].  Please contact 
[email protected] for questions.

Reply via email to