Hi all,

CPSSchemas is fantastic, but to manage relations between objects, I
think the only available feature is the "Internal Link Widget".  This
not solve the problem when the related object is deleted.

I want to manage simple relations in a generic way with CPSSchemas,
understanding relations like in the RDBMS world.   I haven't an
special interest to manage foreign keys and referential integrity, but
I want that if a customer having invoices is deleted, the invoices
continue having the necessary customer information.

I have been thinking about how this could be acomplished.   One way
could be use CPSRelations, but this not solve the problem of deletes.
The other way, and the one that likes to me, is to use CPS Proxies.
That is, implement a Relation Widget against a Subobject Field, and
that this subobject was a Proxy with no revision (so, to the better
revision, isn't it ?).   That way, a customer could be deleted (in
fact, its proxy will be deleted), but the subobject of the invoice (a
proxy to the better revision) will remain, so the portal_repository
will detect it and the docid will be considered 'live', and will
remain in the portal_repository.

What do you think about this ?  I am reinventing the wheel ?   If not,
could this implementation be contributed to CPSSchemas ?  Or its
preferred to implement it as another product ?

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

Reply via email to