[CPS-devel] Searching on attached file title

Jonathan.RIBOUX at chru-strasbourg.fr Jonathan.RIBOUX at chru-strasbourg.fr
Mon Feb 27 15:30:21 CET 2006


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 ?

Thanks,

Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060227/0e87b003/attachment.htm


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.