def build(self): menu = getMenu('plone_contentmenu', self.context, self.request) menu = self.separateMenu(menu) results = self._parse(menu) context_state = getMultiAdapter((self.context, self.request), name=u'plone_context_state') actions = context_state.actions action_list = [] if context_state.is_structural_folder(): action_list = actions('folder') action_list.extend(self.filterActionlist(actions('object'))) contentaction = OrderedDict() for action in action_list: di = OrderedDict(label=translate(_p(action.get('title')), context=self.request), action=self._action(action.get('url')), icon=action.get('id'), ) contentaction[action.get('id')] = di results['contentaction'] = OrderedDict(label=translate(_('Content actions'), context=self.request), submenu=contentaction) return results
def title(self): return _('Security')
def title(self): return _('Folder')
def title(self): return _('General information')
def title(self): return _('Plone Site')
def suffix(self): return _('Subcontent')
def title(self): return _('Article')