[PATCH saem] [ui] Fix widget used to display ArkNameAssigningAuthority.who

Denis Laxalde denis.laxalde at logilab.fr
Thu Oct 5 11:28:37 CEST 2017


Sylvain Thenault a écrit :
> # HG changeset patch
> # User Sylvain Thénault <sylvain.thenault at logilab.fr>
> # Date 1507124320 -7200
> #      Wed Oct 04 15:38:40 2017 +0200
> # Node ID 215426b6e3415c6ac0e7b948d836eaf84eb7d719
> # Parent  9d703c668cfdc6d99dcf425cf85542d2e2a6a809
> # Available At http://hg.logilab.org/review/cubes/saem_ref
> #              hg pull http://hg.logilab.org/review/cubes/saem_ref -r 215426b6e341
> [ui] Fix widget used to display ArkNameAssigningAuthority.who
> 
> we inadvertently changed the widget of the 'what' attribute instead of 'who', while the
> former is an int and don't need a custom widget while the later does.

applied

> diff --git a/cubicweb_saem_ref/views/management.py b/cubicweb_saem_ref/views/management.py
> --- a/cubicweb_saem_ref/views/management.py
> +++ b/cubicweb_saem_ref/views/management.py
> @@ -30,11 +30,11 @@ pvs = uicfg.primaryview_section
>   afs = uicfg.autoform_section
>   affk = uicfg.autoform_field_kwargs
>   
>   pvs.tag_object_of(('*', 'ark_naa', 'ArkNameAssigningAuthority'), 'relations')
>   afs.tag_object_of(('*', 'ark_naa', 'ArkNameAssigningAuthority'), 'main', 'hidden')
> -affk.set_field_kwargs('ArkNameAssigningAuthority', 'what', widget=fw.TextInput({'size': 80}))
> +affk.set_field_kwargs('ArkNameAssigningAuthority', 'who', widget=fw.TextInput({'size': 80}))
>   
>   
>   class ManagementAddEntityComponent(AddEntityComponent):
>       __select__ = (component.CtxComponent.__select__ & has_permission('add') &
>                     is_instance('Organization', 'ArkNameAssigningAuthority'))
> 


-- 
Denis Laxalde
Logilab         http://www.logilab.fr



More information about the saem-devel mailing list