web/views/tabs.py
changeset 2058 7ef12c03447c
parent 1997 554eb4dd533d
child 2123 3e1d2ab5f8c0
equal deleted inserted replaced
2057:0a0cbccafcb5 2058:7ef12c03447c
    84 
    84 
    85     def prune_tabs(self, tabs):
    85     def prune_tabs(self, tabs):
    86         selected_tabs = []
    86         selected_tabs = []
    87         for tab in tabs:
    87         for tab in tabs:
    88             try:
    88             try:
    89                 self.vreg.select_view(tab, self.req, self.rset)
    89                 self.vreg.select('views', tab, self.req, rset=self.rset)
    90                 selected_tabs.append(tab)
    90                 selected_tabs.append(tab)
    91             except NoSelectableObject:
    91             except NoSelectableObject:
    92                 continue
    92                 continue
    93         return selected_tabs
    93         return selected_tabs
    94 
    94