[CPS-devel] Searching on attached file title

Julien Anguenot ja at nuxeo.com
Mon Feb 27 15:43:25 CET 2006


Jonathan.RIBOUX at chru-strasbourg.fr 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060227/11903043/signature.pgp


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.