# HG changeset patch # User Aurelien Campeas # Date 1236081445 -3600 # Node ID ee71c2ba73e632a2c1665ace755079ad19106c85 # Parent 7b701df4dbef6980e304235eafe39a78d56f28e6 [tabs] tabbed views don't support concatenation; when vid=primary is forced, delegate to the default tab/view #32176 diff -r 7b701df4dbef -r ee71c2ba73e6 web/views/tabs.py --- a/web/views/tabs.py Mon Feb 23 19:22:59 2009 +0100 +++ b/web/views/tabs.py Tue Mar 03 12:57:25 2009 +0100 @@ -1,7 +1,7 @@ """base classes to handle tabbed views :organization: Logilab -:copyright: 2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ @@ -97,6 +97,11 @@ self.req.add_css('ui.tabs.css') self.req.add_js(('ui.core.js', 'ui.tabs.js', 'cubicweb.ajax.js', 'cubicweb.tabs.js', 'cubicweb.lazy.js')) + # tabbed views do no support concatenation + # hence we delegate to the default tab + if self.req.form.get('vid') == 'primary': + entity.view(default) + return # prune tabs : not all are to be shown tabs = self.prune_tabs(tabs) # select a tab