[EMAIL PROTECTED] wrote:
> Hello,
>  
> I use CPS 3.2.0 and need to implement searching on attached file titles
> of "file" documents (and Flexible too, ...).
> The problem is that the attached file title is part of the file field of
> the "file" document, so it isn't just indexable by modifying the "file"
> field in the "file" schema.
> 
>  
> I tried to add the following computed field to the "file" schema :
>     'file_name': {
>         'type': 'CPS String Field',
>         'data': {
>             'default_expr': 'string:',
>             'is_searchabletext': 1,
>             'acl_write_roles': 'Nobody',
>             'read_ignore_storage': 1,
>             'read_process_expr': "python:getattr(file,'title',None)",
>             'read_process_dependent_fields': ('file',),
>             'write_ignore_storage': 1,
>         },
> But it works only when I log in as manager.
>  
> Does anybody have any clue ?
> 

What appends if you don't ignore storage ? (change the write_roles as
well for testing)

        J.

-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to