[CPS-devel] CPSShema and managment of relations between

Thomas Beluch thomas.beluch at gmail.com
Tue Aug 8 12:48:04 CEST 2006


Thanks a lot, seems I will finally keep the CPS solution

Regards
Thomas

Message: 6
> Date: Tue, 08 Aug 2006 11:59:32 +0200
> From: Anahide Tchertchian <at at nuxeo.com>
> Subject: Re: [CPS-devel] CPSShema and managment of relations between
>        objects
> To: Santi Camps <santicamps at gmail.com>
> Cc: cps-devel at lists.nuxeo.com
> Message-ID: <44D86084.9070108 at nuxeo.com>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Hi,
>
> Sorry for answering so late... Well, CPSSchemas is not the way to go in
> my point of view, CPSRelation is way more adapted to this kind of
> feature, but if it's working for you this way, good :)
> Anyway, I'm just going to give some information about CPSRelation
> features.
>
>
> Note that there are several types of graphs used in CPSRelation, storage
> can be done in IOBTree structure or in any kind of backend provided by
> the Redland framework (bdb, mysql, postrgesql for instance).
> I think it would not be so difficult to add an sql graph if you'd like
> to do it your own way.
>
>
> The CPSComment product uses CPSRelation to store relations between
> documents: a document is commented, its comment is actually stored in
> portal_comments (and not in the hierarchy of workspaces and sections),
> and the two documents are linked via CPSRelation.
> The document docid is used as an identifier.
>
> Some additional relations can be added between comments (to state that a
> comment is a reply to another one for instance).
>
> When comments or commented documents are deleted, Z3 events allow to
> delete now useless relations.
>
> The default graph is an IOBTree graph to allow users to use the product
> without having to install the Redland framework.
>
> A commit hook has also recently been added to be able to add/remove
> relations at the end of the transaction (this is not used for CPSComment
> as relations are used to control security set on the comment, so the
> relation set is needed before the end of the transaction).
>
> If you want to have a look at it, I would advise to checkout the
> abstraction branches of the products: CPSRelation has refactored to be
> able to switch from a type of graph to another one without having to
> change third party code. See:
>
> https://svn.nuxeo.org/pub/CPS3/products/CPSRelation/branches/abstraction
> https://svn.nuxeo.org/pub/CPS3/products/CPSComment/branches/abstraction
>
> Note that to comment a document, you have to allow discussion on it
> (edit this on the metadata page).
>
> Feel free to ask for any other information.
>
> Regards,
>
> --
> Anahide Tchertchian, Nuxeo
> Mail: at at nuxeo.com - Tel: +33 (0)1 40 33 71 60
> http://www.nuxeo.com - http://www.cps-project.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060808/96f3e491/attachment.htm


More information about the cps-devel mailing list

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