Changeset 1200 in products


Ignore:
Timestamp:
Jul 31, 2009 2:04:19 PM (15 years ago)
Author:
piv
Message:

implement nonfolderish items functionality

Location:
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/TODO.txt

    r1182 r1200  
    66 [ ] documentation 
    77 [ ] tests tests tests 
     8 [ ] migration from qPloneDropDownMenu 
    89 
    910 
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/menu.py

    r1199 r1200  
    1919    def __init__(self, context): 
    2020        super(DropDownMenuQueryBuilder, self).__init__(context) 
     21 
     22        # customize depth according to dropdown menu settings 
    2123        if self._settings.content_tabs_level > 0: 
    2224            self.query['path']['depth'] = self._settings.content_tabs_level 
    2325        elif self.query['path'].has_key('depth'): 
    2426            del self.query['path']['depth'] 
     27 
     28        # constrain non-folderish objects if required 
     29        if not self._settings.show_nonfolderish_tabs: 
     30            self.query['is_folderish'] = True 
    2531 
    2632    @property 
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/viewlets.py

    r1199 r1200  
    7272            # prepare data for action 
    7373            # TODO: implement current element functionality, maybe should be 
    74             #       done on a template level because of separate content and  
     74            #       done on a template level because of separate content and 
    7575            #       actions tabs are rendered separately 
    7676            currentItem = False 
     
    130130    def _content_tabs(self): 
    131131        """Return tree of tabs based on content structure""" 
    132         # TODO: make non-folderish work as proxy 
    133132        context = aq_inner(self.context) 
    134133 
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/interfaces.py

    r1199 r1200  
    2424        default=False) 
    2525 
     26     # TODO: make this and the next settings work as proxy for Navigation configlet 
    2627    show_content_tabs = schema.Bool( 
    2728        title=_(u"Show content tabs"), 
Note: See TracChangeset for help on using the changeset viewer.