Ignore:
Timestamp:
Jul 19, 2010 4:12:46 PM (14 years ago)
Author:
fenix
Message:

removed home tab from potential parents of current item, this was done because home tab would be parent for all content tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/viewlets.py

    r2658 r2700  
    3434        self.conf = conf = self._settings() 
    3535        self.tool = getToolByName(context, 'portal_actions') 
     36        self.site_url = getToolByName(context, 'portal_url')() 
    3637 
    3738        # fetch actions-based tabs? 
     
    100101 
    101102            url = self.context.absolute_url()         
    102             if url.startswith(info['url']): 
     103            if url.startswith(info['url']) and info['url'] != self.site_url: 
    103104                if currentParentId > -1: 
    104105                    if len(tabs[currentParentId]['getURL']) < len(info['url']):  
Note: See TracChangeset for help on using the changeset viewer.