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

Philippe Pepiot philippe.pepiot at logilab.fr
Wed Feb 22 11:50:49 CET 2017


# 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()



More information about the saem-devel mailing list