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
Hosting: Nuxeo: Zope service provider