[PATCH saem_ref] [seda] Restrict targets of "originating agency" relation to published AutorityRecord

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Jun 26 10:44:49 CEST 2018


On 26/06/2018, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis.laxalde at logilab.fr>
> # Date 1529999035 -7200
> #      Tue Jun 26 09:43:55 2018 +0200
> # Node ID 40d9f2773a9ef27133a6a150dabca2f18d0ef5a7
> # Parent  c468d1571ad4ad6df0988f97292c31592be86f46
> # Available At http://hg.logilab.org/review/cubes/saem_ref
> #              hg pull http://hg.logilab.org/review/cubes/saem_ref -r 40d9f2773a9e
> # EXP-Topic CONSEJIRA-507
> [seda] Restrict targets of "originating agency" relation to published AutorityRecord
> 
> We add an RQL constraint on "seda_originating_agency_to" (class name
> originating_agency_originating_agency_to in cubicweb-seda) to restrict
> possible target AutorityRecord entities with a workflow state
> "published". We need to do this with a full RQL constraint (although a
> vocabulary constraint might be appropriate from a business point of
> view) because the relation widget is used in archive unit form to render
> this relation and the latter does not support vocabulary constraints.
> 
> CONSEJIRA-507.

Applied, thanks!



More information about the saem-devel mailing list