Fix context leaks in ActionHooks.
Review Request #5762 — Created May 2, 2014 and submitted
Context.update()implies apush(), but the ActionHooks weren't popping.
This meant that state would be leaked not only between hooks, but into
the main template as well.We now do a
pop()after rendering the template.
Unit tests pass.
- Change Summary:
-
Now handles exceptions when rendering a template for an action.
- Commit:
-
53435c67917f2c60b8a454e6dfc8ad72db7eb7170eb33be1d53c7e074db9acf22fe04692340826bd
- Change Summary:
-
-
Wrapped the whole
get_actions()loop in one exception handler (since we still want to respect generators, I didn't want to convert to a list in its owntry/except), and the rendering in another exception handler. -
Made some fixes to error text.
-
- Commit:
-
0eb33be1d53c7e074db9acf22fe04692340826bde3fa7c578b87e44674ad722bc0a969b4af3d4ed5