1. 09 May, 2014 3 commits
    • Randall Leeds's avatar
      Merge pull request #1186 from hypothesis/horus-overhaul · a45b9e69
      Randall Leeds authored
      Overhaul horus view handling
      a45b9e69
    • 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
    • Ujvari Gergely's avatar
      Workaround for the lack of baseURI under IE · eb47a5ff
      Ujvari Gergely authored
      IE doesn't have the document.baseURI property.
      This workaround constructs the baseURI if not present.
      eb47a5ff
  2. 08 May, 2014 2 commits
  3. 06 May, 2014 2 commits
  4. 02 May, 2014 5 commits
  5. 30 Apr, 2014 5 commits
    • Randall Leeds's avatar
      Avoid a race condition with session-based auth · d52868f1
      Randall Leeds authored
      Don't send a new search request until the logout request has returned.
      d52868f1
    • Randall Leeds's avatar
      Fetch api tokens in a separate request · ccbb67be
      Randall Leeds authored
      Instead of sending a token with the application view (which is really
      more of a session state view), fetch it separately using the tokenUrl
      option of the Auth plugin. Account for the case where known personas
      could change in the future without invalidating the current persona
      and reset the Auth plugin whenever the persona in use changes. Use the
      persona parameter to the token endpoint to get the appropriate token.
      ccbb67be
    • Randall Leeds's avatar
      Fix error introduced with previous commit · 5edd74ee
      Randall Leeds authored
      The refresh function is not defined in the scope it's called in which
      is why the event is necessary. However, unlike the original, the app
      scope is used instead of the root scope because there's no need to
      dispatch from the root scope here.
      5edd74ee
    • Randall Leeds's avatar
      Refactor to make skipAuthChangeReload unnecessary · 3f88c11f
      Randall Leeds authored
      Since the token changes whenever the list of personas changes just
      refactor the logic in the token watcher to cause exactly one search
      to happen when the token changes without consulting a separate
      property, simply by checking the tool state.
      3f88c11f
    • Randall Leeds's avatar
      2dee3f79
  6. 28 Apr, 2014 1 commit
  7. 24 Apr, 2014 9 commits
  8. 21 Apr, 2014 2 commits
  9. 20 Apr, 2014 3 commits
  10. 17 Apr, 2014 1 commit
  11. 16 Apr, 2014 4 commits
  12. 14 Apr, 2014 2 commits
  13. 13 Apr, 2014 1 commit