parameters: (self, item_method = 'getTitle')
return_statement: return '/'.join(logical_title_list)
docstring: Returns logical path, starting under base category.
docstring_summary: Returns logical path, starting under base category.
docstring_tokens: Returns logical path starting under base category .
function: def getLogicalPath(self, item_method = 'getTitle'):
        """
          Returns logical path, starting under base category.
        """
        objectlist = []
        base = self.getBaseCategory()
        current = self
        while not current is base :
          objectlist.insert(0, current)
          current = aq_parent(current)
  
        # it s better for the user to display something than only ''...
        logical_title_list = []
        for object in objectlist:
          logical_title = getattr(object, item_method)()
          if logical_title in [None, '']:
            logical_title = object.getId()
          logical_title_list.append(logical_title)
        return '/'.join(logical_title_list)
function_tokens: def getLogicalPath ( self , item_method = 'getTitle' ) : objectlist = [ ] base = self . getBaseCategory ( ) current = self while not current is base : objectlist . insert ( 0 , current ) current = aq_parent ( current ) # it s better for the user to display something than only ''... logical_title_list = [ ] for object in objectlist : logical_title = getattr ( object , item_method ) ( ) if logical_title in [ None , '' ] : logical_title = object . getId ( ) logical_title_list . append ( logical_title ) return '/' . join ( logical_title_list )