Skip to content
Snippets Groups Projects
  1. Jun 18, 2014
  2. Jun 17, 2014
  3. Jun 16, 2014
  4. Jun 13, 2014
    • Xavier Morel's avatar
      [FIX] postprocessing of request arguments in website · 1587663f
      Xavier Morel authored
      If website is installed but not used/enabled for the current controller,
      overridden methods like _get_converters will *still run* for the controller's
      dispatch.
      
      This means a ModelConverter used in a controller with website installed but
      not enabled will use website.models.ir_http.ModelConverter, not
      base.ir.ir_http.ModelConverter, and base's args postprocessing will *not* be
      able to convert the placeholder object to a real UID, only website's
      postprocessing can do so.
      
      And as far as I can see there's no reason to skip the URL building validation
      either, only the multilang stuff relies on and requires that the controller be
      website enabled (and in fact that it be multilang enabled), so only *that*
      should be gated behind a flag.
      
      Also always call super(), there's no reason not to and others might add args
      to postprocess on base rather than website, ending up after website in the
      MRO.
      1587663f
    • Martin Trigaux's avatar
      remove useless quotation marks · 5e7485ab
      Martin Trigaux authored
      5e7485ab
Loading