• Randall Leeds's avatar
    Overhaul horus view handling · 68518bea
    Randall Leeds authored
    Refactor the views module to limit code exposure to horus.
    
    - Implement a view mapper that acts on the horus class-based form
      views to coerce the result to a dictionary. This mapper pulls most
      of the request and response munging away from the horus view logic
      overrides, which are left as simple subclasses. Page views for horus
      now fire login/logout events and work around eventray/horus#43 for
      password resets.
    - Improve error reporting by showing flash messages only for colander
      errors, letting horus handle the rest. Remove corresponding hack in
      client-side flash handling.
    68518bea
flash.coffee 1.63 KB