Example #1
0
    def __call__(self):
        if not self.request.has_permission('edit.%s' % self.context.type_):
            return HTTPFound(self.request.current_route_path() + '.html')

        if hasattr(self, '_before'):
            self._before()

        task_resources.need()
        populate_actionmenu(self.request)
        return dict(
            context=self.context,
            title=self.title(),
            context_url=self.context_url(),
            form_config_url=self.form_config_url(),
            load_catalog_url=self.load_catalog_url(),
        )
Example #2
0
    def __call__(self):
        if not self.request.has_permission('edit.%s' % self.context.type_):
            return HTTPFound(self.request.current_route_path() + '.html')

        if hasattr(self, '_before'):
            self._before()

        self.populate_navigation()

        task_resources.need()
        # populate_actionmenu(self.request)
        return dict(
            context=self.context,
            title=self.title,
            context_url=self.context_url(),
            form_config_url=self.form_config_url(),
            load_catalog_url=self.load_catalog_url(),
        )