Ejemplo n.º 1
0
 def render(self, request):
     """
     Trigger any inputhandlers that were passed in to this Page,
     then delegate to the View for traversing the DOM. Finally,
     call gatheredControllers to deal with any InputHandlers that
     were constructed from any controller= tags in the
     DOM. gatheredControllers will render the page to the browser
     when it is done.
     """
     if self.addSlash and request.uri.split('?')[0][-1] != '/':
         return redirectTo(addSlash(request), request)
     for ih in self._inputhandlers:
         ih._parent = self
         ih.handle(request)
     self._inputhandlers = []
     for key, value in self._valid.items():
         key.commit(request, None, value)
     self._valid = {}
     return self.renderView(request)
Ejemplo n.º 2
0
 def render(self, request):
     return redirectTo(addSlash(request), request)