[PATCH seda v2] Make generation of xml:id attribute configurable through an adapter

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Jun 26 10:23:09 CEST 2018


On 26/06/2018, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis.laxalde at logilab.fr>
> # Date 1529415726 -7200
> #      Tue Jun 19 15:42:06 2018 +0200
> # Node ID d945aaa3f8216f2cc3de86e54c6065573af4beb3
> # Parent  97b06a36d10468e7f69dddfae864961c138dc53d
> # Available At http://hg.logilab.org/review/cubes/seda
> #              hg pull http://hg.logilab.org/review/cubes/seda -r d945aaa3f821
> # EXP-Topic CONSEJIRA-510
> Make generation of xml:id attribute configurable through an adapter
> 
> The idea is to have the generation of xml:id attribute configurable
> based on entity context. So we create an entity adapter IXmlId that
> default to the current implementation. This will be extended in
> cubicweb-saem_ref where we'd want to use the ARK identifier to produce
> this xml:id attribute.
> 
> In profile_generation module, we rename eid2xmlid function as xmlid and
> make it accept an entity.

Applied, thanks!



More information about the saem-devel mailing list