[views] Fix base class for unit's agents / coordinates tabs
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 06 Dec 2017 14:53:24 +0100
changeset 2888 ad663bcecf88
parent 2887 1a8d43a9547b
child 2889 cfcfe7afe41a
[views] Fix base class for unit's agents / coordinates tabs so we're properly redirected after creation of their associated subobjects.
cubicweb_seda/views/archiveunit.py
--- a/cubicweb_seda/views/archiveunit.py	Wed Dec 06 10:22:46 2017 +0100
+++ b/cubicweb_seda/views/archiveunit.py	Wed Dec 06 14:53:24 2017 +0100
@@ -451,11 +451,12 @@
     content_vid = 'seda_content_agents'
 
 
-class ContentAgentsView(viewlib.SubObjectsTab):
+class ContentAgentsView(ContentSubObjectsView):
     """Display agents related to an archive unit content."""
 
     __regid__ = 'seda_content_agents'
     __select__ = is_instance(CONTENT_ETYPE)
+    tabid = ArchiveUnitAgentsTab.__regid__
 
     rtype_role_targets = [
         ('seda_writer_from', 'object', None),
@@ -481,11 +482,12 @@
     content_vid = 'seda_content_coverage'
 
 
-class ContentCoverageView(viewlib.SubObjectsTab):
+class ContentCoverageView(ContentSubObjectsView):
     """Display coverage information about an archive unit content."""
 
     __regid__ = 'seda_content_coverage'
     __select__ = is_instance(CONTENT_ETYPE)
+    tabid = ArchiveUnitCoverageTab.__regid__
 
     rtype_role_targets = [('seda_spatial', 'object', None),
                           ('seda_temporal', 'object', None),