[saem-devel] [PATCH 1 of 3 saem_ref] [views] display Organization first

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Feb 22 14:50:04 CET 2017


serie applied


Le 22/02/2017 à 11:50, Philippe Pepiot a écrit :
> # HG changeset patch
> # User Philippe Pepiot <philippe.pepiot at logilab.fr>
> # Date 1487760063 -3600
> #      Wed Feb 22 11:41:03 2017 +0100
> # Node ID baec4583644f3fde7a891d88d6a93a3a9777261d
> # Parent  b4fd0950420876bfb3b57b6840885b1dbbf1cb50
> # Available At https://hg.logilab.org/review/cubes/saem_ref
> #              hg pull https://hg.logilab.org/review/cubes/saem_ref -r baec4583644f
> # Tested at https://jenkins.logilab.org/job/cubicweb-saem_ref/92/
> [views] display Organization first
>
> In main navigation and on startup view.
>
> diff --git a/cubicweb_saem_ref/views/__init__.py b/cubicweb_saem_ref/views/__init__.py
> --- a/cubicweb_saem_ref/views/__init__.py
> +++ b/cubicweb_saem_ref/views/__init__.py
> @@ -276,11 +276,11 @@ class MainNavigationMenuComponent(baseco
>  def main_navigation_menu():
>      """Yield navigation component instance to fill the navigation menu"""
>      for order, (path, label) in enumerate([
> +        ('Organization', 'Organization_plural'),
>          ('AuthorityRecord', 'AuthorityRecord_plural'),
>          ('ConceptScheme', _('Vocabularies')),
>          ('SEDAArchiveTransfer', 'SEDAArchiveTransfer_plural'),
>          ('sedalib', _('SEDA components')),
> -        ('Organization', 'Organization_plural'),
>      ]):
>          if label is None:
>              label = path + '_plural'
> diff --git a/cubicweb_saem_ref/views/startup.py b/cubicweb_saem_ref/views/startup.py
> --- a/cubicweb_saem_ref/views/startup.py
> +++ b/cubicweb_saem_ref/views/startup.py
> @@ -130,10 +130,10 @@ class SAEMRefIndexView(startup.IndexView
>      def entities(self):
>          self.w(u'<div class="row">')
>          for etype, import_url in [
> +            ('Organization', None),
>              ('AuthorityRecord', self._cw.build_url('view', vid='eac.import')),
>              ('ConceptScheme', self._cw.build_url('add/skossource')),
>              ('SEDAArchiveTransfer', None),
> -            ('Organization', None),
>          ]:
>              self.render_box(etype, import_url)
>          self.render_seda_lib_box()
> _______________________________________________
> saem-devel mailing list
> saem-devel at lists.cubicweb.org
> http://lists.cubicweb.org/mailman/listinfo/saem-devel

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list