Re: UID's for entries in CPSDirectories

Florent Guillaume <[email protected]>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <[email protected]>
I'd say the cleanest way is probably to use a computed field, but use  
a different schema for the search without this computed field.
If I understand what you're trying to do.

Florent

On 21 Feb 2007, at 14:45, Santi Camps wrote:

> Hi all,
>
> I'm trying to add a group_title field to groups directory.   Then, the
> user should enter the group_title, and the group field (used as an
> id), could be computed.   I've been trying to compute the group field
> from the title using computeId.py, but also using CPSUid.    The only
> way working for me is to define a call to a counter as a default value
> in the group field. But this implies calling the counter even when
> searching, very ugly.
>
> The main problem is that
> CPSDirectory.BaseDirectory.BaseDirectory.renderCreateEntryDetailed
> has no other way to receive an id that the datastructure.
>
> Is there any way to do what I'm trying ?   If not, will be welcome a
> patch to BaseDirectory to receive a entry id as an optional parameter
> ?
>
> Thanks in advance
> -- 
> Santi Camps
> Earcon S.L. - http://www.earcon.com
>                  - http://www.kmkey.com
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel
>

-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87



_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.