code: def before_render(self):
          
          super(BatchFolderContentsView, self).before_render()
  
          if self.context.portal_type == "BatchFolder":
              self.request.set("disable_border", 1)
docs: Before template render hook