Esempio n. 1
0
 def details(self, id):
     tab = self.tabs.get(id)
     if tab is not None:
         titel = title.bind(default=id).get(tab)
         if hasattr(tab, 'title'):
             titel = tab.title
         return {
             'title': titel,
             'name': id,
             }
     return None
Esempio n. 2
0
    def update(self):
        self.__updated = True
        self.title = title.bind(default=self.__component_name__).get(self)

        # We get the real context
        menu_context = self.getMenuContext()

        # Get the MenuContext and calculate its url
        self.context_url = get_absolute_url(menu_context, self.request)

        # Get the viewlets, sort them and update them
        self.viewlets = sort_components(list(query_entries(
            menu_context, self.request, self.view, self)))
Esempio n. 3
0
 def title(self):
     return title.bind(default=self.__component_name__).get(self)
Esempio n. 4
0
 def title(self):
     return title.bind(default=u"").get(self)